Advertisement
Zebula_The_Scripter

Green Cyber Vonarch

Sep 15th, 2018
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.10 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. --//====================================================\\--
  85. --|| CREATED BY SHACKLUSTER
  86. --\\====================================================//--
  87.  
  88. wait(0.2)
  89.  
  90. Player = owner
  91. PlayerGui = Player.PlayerGui
  92. Cam = workspace.CurrentCamera
  93. Backpack = Player.Backpack
  94. Character = Player.Character
  95. Humanoid = Character.Humanoid
  96. RootPart = Character["HumanoidRootPart"]
  97. Torso = Character["Torso"]
  98. Head = Character["Head"]
  99. RightArm = Character["Right Arm"]
  100. LeftArm = Character["Left Arm"]
  101. RightLeg = Character["Right Leg"]
  102. LeftLeg = Character["Left Leg"]
  103. RootJoint = RootPart["RootJoint"]
  104. Neck = Torso["Neck"]
  105. RightShoulder = Torso["Right Shoulder"]
  106. LeftShoulder = Torso["Left Shoulder"]
  107. RightHip = Torso["Right Hip"]
  108. LeftHip = Torso["Left Hip"]
  109. local sick = Instance.new("Sound",Character)
  110. sick.SoundId = "rbxassetid://170282324"
  111. sick.Looped = true
  112. sick.Volume = 1
  113.  
  114. IT = Instance.new
  115. CF = CFrame.new
  116. VT = Vector3.new
  117. RAD = math.rad
  118. C3 = Color3.new
  119. UD2 = UDim2.new
  120. BRICKC = BrickColor.new
  121. ANGLES = CFrame.Angles
  122. EULER = CFrame.fromEulerAnglesXYZ
  123. COS = math.cos
  124. ACOS = math.acos
  125. SIN = math.sin
  126. ASIN = math.asin
  127. ABS = math.abs
  128. MRANDOM = math.random
  129. FLOOR = math.floor
  130.  
  131. --//=================================\\
  132. --|| USEFUL VALUES
  133. --\\=================================//
  134.  
  135. Animation_Speed = 3
  136. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  137. local Speed = 45
  138. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  139. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  140. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  141. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  142. local DAMAGEMULTIPLIER = 1
  143. local ANIM = "Idle"
  144. local ATTACK = false
  145. local EQUIPPED = false
  146. local HOLD = false
  147. local COMBO = 1
  148. local Rooted = false
  149. local SINE = 0
  150. local KEYHOLD = false
  151. local CHANGE = 2 / Animation_Speed
  152. local WALKINGANIM = false
  153. local VALUE1 = false
  154. local VALUE2 = false
  155. local ROBLOXIDLEANIMATION = IT("Animation")
  156. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  157. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  158. --ROBLOXIDLEANIMATION.Parent = Humanoid
  159. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  160. WEAPONGUI.Name = "Weapon GUI"
  161. local Effects = IT("Folder", Character)
  162. Effects.Name = "Effects"
  163. local ANIMATOR = Humanoid.Animator
  164. local ANIMATE = Character.Animate
  165. local UNANCHOR = true
  166. local HITPOS = nil
  167. local HITFLOOR = nil
  168. local LEFTWINGS = {}
  169. local RIGHTWINGS = {}
  170. local BODY = {}
  171.  
  172. --//=================================\\
  173. --\\=================================//
  174.  
  175.  
  176. --//=================================\\
  177. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  178. --\\=================================//
  179.  
  180. ArtificialHB = Instance.new("BindableEvent", script)
  181. ArtificialHB.Name = "ArtificialHB"
  182.  
  183. script:WaitForChild("ArtificialHB")
  184.  
  185. frame = Frame_Speed
  186. tf = 0
  187. allowframeloss = false
  188. tossremainder = false
  189. lastframe = tick()
  190. script.ArtificialHB:Fire()
  191.  
  192. game:GetService("RunService").Heartbeat:connect(function(s, p)
  193. tf = tf + s
  194. if tf >= frame then
  195. if allowframeloss then
  196. script.ArtificialHB:Fire()
  197. lastframe = tick()
  198. else
  199. for i = 1, math.floor(tf / frame) do
  200. script.ArtificialHB:Fire()
  201. end
  202. lastframe = tick()
  203. end
  204. if tossremainder then
  205. tf = 0
  206. else
  207. tf = tf - frame * math.floor(tf / frame)
  208. end
  209. end
  210. end)
  211.  
  212. --//=================================\\
  213. --\\=================================//
  214.  
  215. --//=================================\\
  216. --|| SOME FUNCTIONS
  217. --\\=================================//
  218.  
  219. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  220. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  221. end
  222.  
  223. function PositiveAngle(NUMBER)
  224. if NUMBER >= 0 then
  225. NUMBER = 0
  226. end
  227. return NUMBER
  228. end
  229.  
  230. function NegativeAngle(NUMBER)
  231. if NUMBER <= 0 then
  232. NUMBER = 0
  233. end
  234. return NUMBER
  235. end
  236.  
  237. function Swait(NUMBER)
  238. if NUMBER == 0 or NUMBER == nil then
  239. ArtificialHB.Event:wait()
  240. else
  241. for i = 1, NUMBER do
  242. ArtificialHB.Event:wait()
  243. end
  244. end
  245. end
  246.  
  247. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  248. local NEWMESH = IT(MESH)
  249. if MESH == "SpecialMesh" then
  250. NEWMESH.MeshType = MESHTYPE
  251. if MESHID ~= "nil" and MESHID ~= "" then
  252. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  253. end
  254. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  255. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  256. end
  257. end
  258. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  259. NEWMESH.Scale = SCALE
  260. NEWMESH.Parent = PARENT
  261. return NEWMESH
  262. end
  263.  
  264. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  265. local NEWPART = IT("Part")
  266. NEWPART.formFactor = FORMFACTOR
  267. NEWPART.Reflectance = REFLECTANCE
  268. NEWPART.Transparency = TRANSPARENCY
  269. NEWPART.CanCollide = false
  270. NEWPART.Locked = true
  271. NEWPART.Anchored = true
  272. if ANCHOR == false then
  273. NEWPART.Anchored = false
  274. end
  275. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  276. NEWPART.Name = NAME
  277. NEWPART.Size = SIZE
  278. NEWPART.Position = Torso.Position
  279. NEWPART.Material = MATERIAL
  280. NEWPART:BreakJoints()
  281. NEWPART.Parent = PARENT
  282. return NEWPART
  283. end
  284.  
  285. local function weldBetween(a, b)
  286. local weldd = Instance.new("ManualWeld")
  287. weldd.Part0 = a
  288. weldd.Part1 = b
  289. weldd.C0 = CFrame.new()
  290. weldd.C1 = b.CFrame:inverse() * a.CFrame
  291. weldd.Parent = a
  292. return weldd
  293. end
  294.  
  295.  
  296. function QuaternionFromCFrame(cf)
  297. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  298. local trace = m00 + m11 + m22
  299. if trace > 0 then
  300. local s = math.sqrt(1 + trace)
  301. local recip = 0.5 / s
  302. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  303. else
  304. local i = 0
  305. if m11 > m00 then
  306. i = 1
  307. end
  308. if m22 > (i == 0 and m00 or m11) then
  309. i = 2
  310. end
  311. if i == 0 then
  312. local s = math.sqrt(m00 - m11 - m22 + 1)
  313. local recip = 0.5 / s
  314. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  315. elseif i == 1 then
  316. local s = math.sqrt(m11 - m22 - m00 + 1)
  317. local recip = 0.5 / s
  318. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  319. elseif i == 2 then
  320. local s = math.sqrt(m22 - m00 - m11 + 1)
  321. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  322. end
  323. end
  324. end
  325.  
  326. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  327. local xs, ys, zs = x + x, y + y, z + z
  328. local wx, wy, wz = w * xs, w * ys, w * zs
  329. local xx = x * xs
  330. local xy = x * ys
  331. local xz = x * zs
  332. local yy = y * ys
  333. local yz = y * zs
  334. local zz = z * zs
  335. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  336. end
  337.  
  338. function QuaternionSlerp(a, b, t)
  339. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  340. local startInterp, finishInterp;
  341. if cosTheta >= 0.0001 then
  342. if (1 - cosTheta) > 0.0001 then
  343. local theta = ACOS(cosTheta)
  344. local invSinTheta = 1 / SIN(theta)
  345. startInterp = SIN((1 - t) * theta) * invSinTheta
  346. finishInterp = SIN(t * theta) * invSinTheta
  347. else
  348. startInterp = 1 - t
  349. finishInterp = t
  350. end
  351. else
  352. if (1 + cosTheta) > 0.0001 then
  353. local theta = ACOS(-cosTheta)
  354. local invSinTheta = 1 / SIN(theta)
  355. startInterp = SIN((t - 1) * theta) * invSinTheta
  356. finishInterp = SIN(t * theta) * invSinTheta
  357. else
  358. startInterp = t - 1
  359. finishInterp = t
  360. end
  361. end
  362. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  363. end
  364.  
  365. function Clerp(a, b, t)
  366. local qa = {QuaternionFromCFrame(a)}
  367. local qb = {QuaternionFromCFrame(b)}
  368. local ax, ay, az = a.x, a.y, a.z
  369. local bx, by, bz = b.x, b.y, b.z
  370. local _t = 1 - t
  371. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  372. end
  373.  
  374. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  375. local frame = IT("Frame")
  376. frame.BackgroundTransparency = TRANSPARENCY
  377. frame.BorderSizePixel = BORDERSIZEPIXEL
  378. frame.Position = POSITION
  379. frame.Size = SIZE
  380. frame.BackgroundColor3 = COLOR
  381. frame.BorderColor3 = BORDERCOLOR
  382. frame.Name = NAME
  383. frame.Parent = PARENT
  384. return frame
  385. end
  386.  
  387. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  388. local label = IT("TextLabel")
  389. label.BackgroundTransparency = 1
  390. label.Size = UD2(1, 0, 1, 0)
  391. label.Position = UD2(0, 0, 0, 0)
  392. label.TextColor3 = TEXTCOLOR
  393. label.TextStrokeColor3 = BRICKC"Really red".Color
  394. label.TextStrokeTransparency = STROKETRANSPARENCY
  395. label.TextTransparency = TRANSPARENCY
  396. label.FontSize = TEXTFONTSIZE
  397. label.Font = TEXTFONT
  398. label.BorderSizePixel = BORDERSIZEPIXEL
  399. label.TextScaled = false
  400. label.Text = TEXT
  401. label.Name = NAME
  402. label.Parent = PARENT
  403. return label
  404. end
  405.  
  406. function NoOutlines(PART)
  407. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  408. end
  409.  
  410. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  411. local NEWWELD = IT(TYPE)
  412. NEWWELD.Part0 = PART0
  413. NEWWELD.Part1 = PART1
  414. NEWWELD.C0 = C0
  415. NEWWELD.C1 = C1
  416. NEWWELD.Parent = PARENT
  417. return NEWWELD
  418. end
  419.  
  420. local S = IT("Sound")
  421. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  422. local NEWSOUND = nil
  423. coroutine.resume(coroutine.create(function()
  424. NEWSOUND = S:Clone()
  425. NEWSOUND.Parent = PARENT
  426. NEWSOUND.Volume = VOLUME
  427. NEWSOUND.Pitch = PITCH
  428. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  429. NEWSOUND:play()
  430. NEWSOUND.Name = "Audio"
  431. if DOESLOOP == true then
  432. NEWSOUND.Looped = true
  433. else
  434. repeat Swait() until NEWSOUND.Playing == false
  435. NEWSOUND:remove()
  436. end
  437. end))
  438. return NEWSOUND
  439. end
  440.  
  441. function CFrameFromTopBack(at, top, back)
  442. local right = top:Cross(back)
  443. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  444. end
  445.  
  446. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  447. function WACKYEFFECT(Table)
  448. local TYPE = (Table.EffectType or "Sphere")
  449. local SIZE = (Table.Size or VT(1,1,1))
  450. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  451. local TRANSPARENCY = (Table.Transparency or 0)
  452. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  453. local CFRAME = (Table.CFrame or Torso.CFrame)
  454. local MOVEDIRECTION = (Table.MoveToPos or nil)
  455. local ROTATION1 = (Table.RotationX or 0)
  456. local ROTATION2 = (Table.RotationY or 0)
  457. local ROTATION3 = (Table.RotationZ or 0)
  458. local MATERIAL = (Table.Material or "Neon")
  459. local COLOR = (Table.Color or C3(1,1,1))
  460. local TIME = (Table.Time or 45)
  461. local SOUNDID = (Table.SoundID or nil)
  462. local SOUNDPITCH = (Table.SoundPitch or nil)
  463. local SOUNDVOLUME = (Table.SoundVolume or nil)
  464. coroutine.resume(coroutine.create(function()
  465. local PLAYSSOUND = false
  466. local SOUND = nil
  467. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  468. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  469. PLAYSSOUND = true
  470. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  471. end
  472. EFFECT.Color = COLOR
  473. local MSH = nil
  474. if TYPE == "Sphere" then
  475. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  476. elseif TYPE == "Block" then
  477. MSH = IT("BlockMesh",EFFECT)
  478. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  479. elseif TYPE == "Box" then
  480. MSH = IT("BlockMesh",EFFECT)
  481. MSH.Scale = SIZE
  482. elseif TYPE == "Wave" then
  483. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  484. elseif TYPE == "Ring" then
  485. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  486. elseif TYPE == "Slash" then
  487. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  488. elseif TYPE == "Round Slash" then
  489. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  490. elseif TYPE == "Swirl" then
  491. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  492. elseif TYPE == "Skull" then
  493. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  494. elseif TYPE == "Crystal" then
  495. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  496. end
  497. if MSH ~= nil then
  498. local MOVESPEED = nil
  499. if MOVEDIRECTION ~= nil then
  500. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  501. end
  502. local GROWTH = SIZE - ENDSIZE
  503. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  504. if TYPE == "Block" then
  505. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  506. else
  507. EFFECT.CFrame = CFRAME
  508. end
  509. for LOOP = 1, TIME do
  510. Swait()
  511. MSH.Scale = MSH.Scale - GROWTH/TIME
  512. if TYPE == "Wave" then
  513. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  514. end
  515. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  516. if TYPE == "Block" then
  517. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  518. else
  519. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  520. end
  521. if MOVEDIRECTION ~= nil then
  522. local ORI = EFFECT.Orientation
  523. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  524. EFFECT.Orientation = ORI
  525. end
  526. end
  527. if PLAYSSOUND == false then
  528. EFFECT:remove()
  529. else
  530. repeat Swait() until SOUND.Playing == false
  531. EFFECT:remove()
  532. end
  533. else
  534. if PLAYSSOUND == false then
  535. EFFECT:remove()
  536. else
  537. repeat Swait() until SOUND.Playing == false
  538. EFFECT:remove()
  539. end
  540. end
  541. end))
  542. end
  543.  
  544. function Shatter(Part)
  545. if Part.Transparency == 0 then
  546. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0))
  547. Debris:AddItem(SOUNDPART,5)
  548. CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false)
  549. local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z
  550. local SIZESET = SIZE/4
  551. local XOffset = Part.Size.X*1.5/SIZESET
  552. local YOffset = Part.Size.Y*1.5/SIZESET
  553. local ZOffset = Part.Size.Z*1.5/SIZESET
  554. for x = 1, math.ceil(XOffset) do
  555. for y = 1, math.ceil(YOffset) do
  556. for z = 1, math.ceil(ZOffset) do
  557. local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false)
  558. SHARD.CanCollide = true
  559. SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4))
  560. SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3
  561. Debris:AddItem(SHARD,MRANDOM(10,25)/3)
  562. end
  563. end
  564. end
  565. end
  566. Part:remove()
  567. end
  568.  
  569. function MakeForm(PART,TYPE)
  570. if TYPE == "Cyl" then
  571. local MSH = IT("CylinderMesh",PART)
  572. elseif TYPE == "Ball" then
  573. local MSH = IT("SpecialMesh",PART)
  574. MSH.MeshType = "Sphere"
  575. elseif TYPE == "Wedge" then
  576. local MSH = IT("SpecialMesh",PART)
  577. MSH.MeshType = "Wedge"
  578. end
  579. end
  580.  
  581. Debris = game:GetService("Debris")
  582.  
  583. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  584. local DIRECTION = CF(StartPos,EndPos).lookVector
  585. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  586. end
  587.  
  588. function turnto(position)
  589. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  590. end
  591.  
  592. --//=================================\\
  593. --|| WEAPON CREATION
  594. --\\=================================//
  595.  
  596. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(1-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  597. FACE.Color = C3(0,0,0)
  598. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  599. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(1-1)/35,0), CF(0, 0, 0))
  600.  
  601. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
  602. MakeForm(HAT1,"Cyl")
  603. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  604. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false)
  605. BELT.Color = C3(15/255,15/255,15/255)
  606. MakeForm(BELT,"Cyl")
  607. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  608. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false)
  609. MakeForm(HAT2,"Cyl")
  610. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  611. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
  612. BELT.Color = C3(15/255,15/255,15/255)
  613. MakeForm(BELT,"Cyl")
  614. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  615. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Gem", VT(0.25,0.25,0.1),false)
  616. MakeForm(GEM,"Ball")
  617. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  618. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Gem", VT(0.25,0.25,0.1),false)
  619. MakeForm(GEM,"Ball")
  620. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  621. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Gem", VT(0.1,0.25,0.25),false)
  622. MakeForm(GEM,"Ball")
  623. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  624. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Gem", VT(0.1,0.25,0.25),false)
  625. MakeForm(GEM,"Ball")
  626. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  627. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  628. BELT.Color = C3(15/255,15/255,15/255)
  629. MakeForm(BELT,"Cyl")
  630. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  631. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  632. BELT.Color = C3(15/255,15/255,15/255)
  633. MakeForm(BELT,"Cyl")
  634. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  635. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  636. BELT.Color = C3(15/255,15/255,15/255)
  637. MakeForm(BELT,"Cyl")
  638. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  639. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  640. BELT.Color = C3(15/255,15/255,15/255)
  641. MakeForm(BELT,"Cyl")
  642. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  643. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
  644. MakeForm(BELT,"Ball")
  645. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  646.  
  647.  
  648. local Back = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Wing", VT(1,1,0.35),false)
  649. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0))
  650.  
  651. local ANGLE = 35
  652. for i = 1, 5 do
  653. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Wing", VT(0.15,2+(i/2),0.15),false)
  654. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  655. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Wing", VT(0.25,1,0.25),false)
  656. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  657. ANGLE = ANGLE - 15
  658. table.insert(LEFTWINGS,WingWeld)
  659. end
  660. ANGLE = 35
  661. for i = 1, 5 do
  662. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Wing", VT(0.15,2+(i/2),0.15),false)
  663. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  664. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Wing", VT(0.25,1,0.25),false)
  665. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  666. ANGLE = ANGLE - 15
  667. table.insert(RIGHTWINGS,WingWeld)
  668. end
  669. local FLOOR = CreatePart(3, Effects, "Neon", 0, 0, "White", "Floor", VT(15, 0, 15), true)
  670. FLOOR.Color = C3(0, 0, 0)
  671. MakeForm(FLOOR, "Cyl")
  672. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.3, 0.2, 0.1), false)
  673. MakeForm(EYE, "Ball")
  674. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0.2, 0, -0.5) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
  675. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.3, 0.2, 0.1), false)
  676. MakeForm(EYE, "Ball")
  677. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(-0.2, 0, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
  678.  
  679. local SKILLTEXTCOLOR = BRICKC"Lime green".Color
  680. local SKILLFONT = "SciFi"
  681. local SKILLTEXTSIZE = 6
  682.  
  683. local naeeym2 = Instance.new("BillboardGui",Character)
  684. naeeym2.AlwaysOnTop = true
  685. naeeym2.Size = UDim2.new(5,35,2,15)
  686. naeeym2.StudsOffset = Vector3.new(0,1.2,0)
  687. naeeym2.Adornee = Character.Head
  688. naeeym2.Name = "Name"
  689. naeeym2.PlayerToHideFrom = Player
  690. local tecks2 = Instance.new("TextLabel",naeeym2)
  691. tecks2.BackgroundTransparency = 1
  692. tecks2.TextScaled = true
  693. tecks2.BorderSizePixel = 0
  694. tecks2.Text = "Cyber Monarch"
  695. tecks2.Font = SKILLFONT
  696. tecks2.TextSize = 30
  697. tecks2.TextStrokeTransparency = 0
  698. tecks2.TextColor3 = C3(0,0,0)
  699. tecks2.TextStrokeColor3 = BRICKC"Lime green".Color
  700. tecks2.Size = UDim2.new(1,0,0.5,0)
  701. tecks2.Parent = naeeym2
  702.  
  703. for _, c in pairs(Character:GetChildren()) do
  704. if c.ClassName == "Part" then
  705. table.insert(BODY,{c,Character})
  706. for _, q in pairs(c:GetChildren()) do
  707. if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then
  708. table.insert(BODY,{q,c})
  709. end
  710. end
  711. end
  712. end
  713.  
  714. function refit()
  715. Character.Parent = workspace
  716. for e = 1, #BODY do
  717. if BODY[e] ~= nil then
  718. local STUFF = BODY[e]
  719. local PART = STUFF[1]
  720. local PARENT = STUFF[2]
  721. PART.Parent = PARENT
  722. end
  723. end
  724. end
  725.  
  726. Humanoid.HealthChanged:connect(function()
  727. Humanoid.Parent = nil
  728. Humanoid.MaxHealth = "inf"
  729. Humanoid.Health = "inf"
  730. refit()
  731. Humanoid.Parent = Character
  732. end)
  733.  
  734. Humanoid.Died:connect(function()
  735. Humanoid.Parent = nil
  736. Humanoid.MaxHealth = "inf"
  737. Humanoid.Health = "inf"
  738. refit()
  739. Humanoid.Parent = Character
  740. end)
  741.  
  742. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  743. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  744. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  745. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  746.  
  747. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Cyber Out-Burst", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  748. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Techno Beam", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  749. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Techno Warp", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  750. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Cyber Smash", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  751.  
  752. --//=================================\\
  753. --|| DAMAGING
  754. --\\=================================//
  755.  
  756. function killnearest(position,range,EFFECT)
  757. for i,v in ipairs(workspace:GetChildren()) do
  758. local body = v:GetChildren()
  759. for part = 1, #body do
  760. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  761. local SIZE = body[part].Size.Magnitude
  762. if(body[part].Position - position).Magnitude < range + SIZE/2 then
  763. if v.ClassName == "Model" then
  764. if v:FindFirstChildOfClass("Humanoid") ~= nil then
  765. if v:FindFirstChildOfClass("Humanoid").Health > 0 then
  766. v:BreakJoints()
  767. if EFFECT == "Glitch" then
  768. coroutine.resume(coroutine.create(function()
  769. local ORIGINPOS = body[part].CFrame
  770. local SIZE = body[part].Size
  771. for i = 1, 100 do
  772. Swait()
  773. local PART = body[part]
  774. PART.Anchored = true
  775. PART.Size = SIZE*MRANDOM(5,15)/10
  776. PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15)
  777. end
  778. body[part]:remove()
  779. end))
  780. elseif EFFECT == "Shatter" then
  781. for _, c in pairs(v:GetChildren()) do
  782. if c.ClassName == "Part" or c.ClassName == "MeshPart" then
  783. Shatter(c)
  784. end
  785. end
  786. end
  787. end
  788. end
  789. end
  790. end
  791. end
  792. end
  793. end
  794. end
  795.  
  796. --//=================================\\
  797. --|| ATTACK FUNCTIONS AND STUFF
  798. --\\=================================//
  799.  
  800. function CyberOutburst()
  801. if HITFLOOR ~= nil then
  802. ATTACK = true
  803. Rooted = true
  804. for i=0, 2, 0.1 / Animation_Speed do
  805. Swait()
  806. WACKYEFFECT({EffectType = "Box", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0), MoveToPos = Torso.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  807. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  808. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  809. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  810. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  811. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  812. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  813. end
  814. for i=0, 2, 0.1 / Animation_Speed do
  815. Swait()
  816. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  817. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  818. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  819. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  820. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  821. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  822. end
  823. WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(25,25,25), Transparency = 0.25, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 0.6, SoundVolume = 6})
  824. WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(35,35,35), Transparency = 0.5, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 178452241, SoundPitch = 0.8, SoundVolume = 4})
  825. WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(40,40,40), Transparency = 0.75, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 2})
  826. for i=0, 0.4, 0.1 / Animation_Speed do
  827. Swait()
  828. killnearest(Torso.Position,45,"Glitch")
  829. WACKYEFFECT({Time = 75, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  830. WACKYEFFECT({Time = 45, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0))*CF(0,0,55).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  831. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  832. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  833. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  834. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  835. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(20.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  836. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(20.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  837. end
  838. ATTACK = false
  839. Rooted = false
  840. end
  841. end
  842.  
  843. function Technobeam()
  844. ATTACK = true
  845. Rooted = false
  846. local GYRO = IT("BodyGyro",RootPart)
  847. GYRO.D = 100
  848. GYRO.P = 2000
  849. GYRO.MaxTorque = VT(0,4000000,0)
  850. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  851. CreateSound("93724183", RightArm, 5, 1, false)
  852. for i=1, 35 do
  853. Swait()
  854. WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  855. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  856. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
  857. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  858. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  859. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  860. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  861. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  862. end
  863. local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Lime green", "Lazer", VT(0,0,0))
  864. local LOOP = CreateSound("415700134", RightArm, 5, 1, false)
  865. local TOCH = BEAM.Touched:Connect(function(hit)
  866. if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
  867. Shatter(hit)
  868. end
  869. end)
  870. local I = 0
  871. repeat
  872. Swait()
  873. I = I + 1
  874. if I <= 10 then
  875. BEAM.Transparency = BEAM.Transparency - 0.1
  876. end
  877. local STARTPOS = RightArm.CFrame*CF(0,-4,0).p
  878. local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character)
  879. local DISTANCE = (STARTPOS - ENDPOS).Magnitude
  880. BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5))
  881. BEAM.Size = VT(2,2,DISTANCE)
  882. WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(ENDPOS), MoveToPos = CF(ENDPOS)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  883. WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-4,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  884. WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  885. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  886. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
  887. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  888. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  889. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  890. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  891. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  892. if ENDHIT ~= nil then
  893. if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then
  894. Shatter(ENDHIT)
  895. end
  896. end
  897. until LOOP.Playing == false
  898. GYRO:remove()
  899. BEAM:remove()
  900. ATTACK = false
  901. Rooted = false
  902. end
  903.  
  904. function Technowarp()
  905. local FRAME = RootPart.Position
  906. for i = 1, 6 do
  907. WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})
  908. end
  909. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z))
  910. for i = 1, 6 do
  911. WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})
  912. end
  913. end
  914.  
  915. function Taunt()
  916. ATTACK = true
  917. Rooted = false
  918. CreateSound(649634100, Head, 4, 0.8, false)
  919. for i = 0, 1, 0.1 / Animation_Speed do
  920. Swait()
  921. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  922. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  923. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(180), RAD(35 - 2.5 * SIN(SINE / 12)), RAD(-35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  924. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(35 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  925. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  926. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  927. end
  928. ATTACK = false
  929. Rooted = false
  930. end
  931.  
  932. function CyberSmash()
  933. ATTACK = true
  934. Rooted = false
  935. local GYRO = IT("BodyGyro",RootPart)
  936. GYRO.D = 100
  937. GYRO.P = 2000
  938. GYRO.MaxTorque = VT(0,4000000,0)
  939. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  940. local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Lime green", "Block", VT(25,25,25))
  941. SMASH.CanCollide = true
  942. SMASH.Color = C3(0,0,0)
  943. local EF = Instance.new("SelectionBox",SMASH)
  944. EF.Adornee = SMASH
  945. EF.Color = BrickColor.new("Lime green")
  946. EF.LineThickness = 0.2
  947. EF.Transparency = 1
  948. coroutine.resume(coroutine.create(function()
  949. for i = 1, 20 do
  950. Swait()
  951. SMASH.Transparency = SMASH.Transparency - 0.05
  952. EF.Transparency = SMASH.Transparency
  953. end
  954. end))
  955. repeat
  956. SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0)
  957. Swait()
  958. GYRO.cframe = CF(RootPart.Position,SMASH.Position)
  959. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
  960. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  961. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(130), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  962. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  963. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  964. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  965. until HOLD == true and SMASH.Transparency < 0.99
  966. for i = 1, 25 do
  967. Swait()
  968. SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0)
  969. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
  970. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  971. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(160), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  972. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  973. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  974. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  975. end
  976. local TOCH = SMASH.Touched:Connect(function(hit)
  977. if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
  978. Shatter(hit)
  979. end
  980. end)
  981. local n0 = nil
  982. local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character)
  983. if HITFLOOR ~= nil then
  984. if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then
  985. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  986. if HITFLOOR.Parent.ClassName == "Model" then
  987. HITFLOOR.Parent:BreakJoints()
  988. elseif HITFLOOR.Parent.Parent.ClassName == "Model" then
  989. HITFLOOR.Parent.Parent:BreakJoints()
  990. end
  991. end
  992. local POS = HITPOS
  993. n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent)
  994. end
  995. end
  996. killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter")
  997. SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0))
  998. WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10})
  999. for i = 1, 25 do
  1000. Swait()
  1001. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
  1002. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  1003. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(30), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1004. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1005. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1006. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1007. end
  1008. coroutine.resume(coroutine.create(function()
  1009. wait(0.2)
  1010. TOCH:disconnect()
  1011. wait(1.8)
  1012. for i = 1, 100 do
  1013. Swait()
  1014. SMASH.Transparency = i/100
  1015. end
  1016. for i = 1, 10 do
  1017. Swait()
  1018. EF.Transparency = EF.Transparency + 0.1
  1019. end
  1020. SMASH:remove()
  1021. end))
  1022. GYRO:remove()
  1023. ATTACK = false
  1024. Rooted = false
  1025. end
  1026.  
  1027. --//=================================\\
  1028. --|| ASSIGN THINGS TO KEYS
  1029. --\\=================================//
  1030.  
  1031. function MouseDown(Mouse)
  1032. HOLD = true
  1033. if ATTACK == false then
  1034. end
  1035. end
  1036.  
  1037. function MouseUp(Mouse)
  1038. HOLD = false
  1039. end
  1040.  
  1041. function KeyDown(Key)
  1042. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  1043. KEYHOLD = true
  1044. if Key == "z" and ATTACK == false then
  1045. CyberOutburst()
  1046. end
  1047.  
  1048. if Key == "b" and ATTACK == false then
  1049. Technobeam()
  1050. end
  1051.  
  1052. if Key == "c" and ATTACK == false then
  1053. Technowarp()
  1054. end
  1055.  
  1056. if Key == "v" and ATTACK == false then
  1057. CyberSmash()
  1058. end
  1059.  
  1060. if Key == "t" and ATTACK == false then
  1061. Taunt()
  1062. end
  1063. end
  1064. end
  1065.  
  1066. function KeyUp(Key)
  1067. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  1068. KEYHOLD = false
  1069. end
  1070. end
  1071.  
  1072. Mouse.Button1Down:connect(function(NEWKEY)
  1073. MouseDown(NEWKEY)
  1074. end)
  1075. Mouse.Button1Up:connect(function(NEWKEY)
  1076. MouseUp(NEWKEY)
  1077. end)
  1078. Mouse.KeyDown:connect(function(NEWKEY)
  1079. KeyDown(NEWKEY)
  1080. end)
  1081. Mouse.KeyUp:connect(function(NEWKEY)
  1082. KeyUp(NEWKEY)
  1083. end)
  1084.  
  1085. --//=================================\\
  1086. --\\=================================//
  1087.  
  1088.  
  1089. function unanchor()
  1090. if UNANCHOR == true then
  1091. g = Character:GetChildren()
  1092. for i = 1, #g do
  1093. if g[i].ClassName == "Part" then
  1094. g[i].Anchored = false
  1095. end
  1096. end
  1097. end
  1098. end
  1099.  
  1100.  
  1101. --//=================================\\
  1102. --|| WRAP THE WHOLE SCRIPT UP
  1103. --\\=================================//
  1104.  
  1105. Humanoid.Changed:connect(function(Jump)
  1106. if Jump == "Jump" and (Disable_Jump == true) then
  1107. Humanoid.Jump = false
  1108. end
  1109. end)
  1110.  
  1111. Humanoid.HipHeight = 2
  1112.  
  1113. while true do
  1114. Swait()
  1115. refit()
  1116. Character.Parent = workspace
  1117. Humanoid.Parent = Character
  1118. ANIMATE.Parent = nil
  1119. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1120. IDLEANIMATION:Play()
  1121. SINE = SINE + CHANGE
  1122. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1123. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1124. HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character)
  1125. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1126. for LW = 1, #LEFTWINGS do
  1127. if LEFTWINGS[LW] ~= nil then
  1128. LEFTWINGS[LW].C1 = Clerp(LEFTWINGS[LW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(-3 + 3 * SIN(SINE / 12))), 1 / Animation_Speed)
  1129. end
  1130. end
  1131. for RW = 1, #RIGHTWINGS do
  1132. if RIGHTWINGS[RW] ~= nil then
  1133. RIGHTWINGS[RW].C1 = Clerp(RIGHTWINGS[RW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(3 - 3 * SIN(SINE / 12))), 1 / Animation_Speed)
  1134. end
  1135. end
  1136. if ATTACK == false then
  1137. if TORSOVELOCITY < 1 then
  1138. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1139. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  1140. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1141. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1142. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1143. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1144. elseif TORSOVELOCITY > 1 then
  1145. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1146. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-2.5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1147. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1148. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1149. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1150. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1151. end
  1152. end
  1153. for _, c in pairs(Character:GetChildren()) do
  1154. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1155. c.Material = "Neon"
  1156. if c:FindFirstChildOfClass("ParticleEmitter") then
  1157. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1158. end
  1159. if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then
  1160. local EF = Instance.new("SelectionBox",c)
  1161. EF.Adornee = c
  1162. EF.Color = BrickColor.new("Lime green")
  1163. EF.LineThickness = 0.01
  1164. EF.Transparency = 0
  1165. EF.Name = "BoxEffect"
  1166. end
  1167. c.Color = C3(0,0,0)
  1168. if c == Head then
  1169. --[[if c:FindFirstChild("Dominus") == nil then
  1170. local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0))
  1171. M.Name = "Dominus"
  1172. end]]--
  1173. if c:FindFirstChild("face") then
  1174. c.face:remove()
  1175. end
  1176. end
  1177. elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1178. c:remove()
  1179. end
  1180. end
  1181. if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then
  1182. local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p
  1183. local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character)
  1184. if BOXFLOOR ~= nil then
  1185. WACKYEFFECT({EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,15,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(BOXPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1186. end
  1187. end
  1188. unanchor()
  1189. Humanoid.MaxHealth = "inf"
  1190. Humanoid.Health = "inf"
  1191. if Rooted == false then
  1192. Disable_Jump = false
  1193. Humanoid.WalkSpeed = Speed
  1194. elseif Rooted == true then
  1195. Disable_Jump = true
  1196. Humanoid.WalkSpeed = 0
  1197. end
  1198. for _, c in pairs(workspace:GetChildren()) do
  1199. if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then
  1200. end
  1201. end
  1202. script.Parent = WEAPONGUI
  1203. Humanoid.Name = "Monarch"
  1204. sick.Parent = Effects
  1205. sick.Pitch = 0.85
  1206. sick.Playing = true
  1207. for _, q in pairs(Head:GetChildren()) do
  1208. if q.ClassName == "Sound" and q.Name ~= "Audio" then
  1209. q:remove()
  1210. end
  1211. end
  1212. Humanoid.DisplayDistanceType = "None"
  1213. end
  1214.  
  1215. --//=================================\\
  1216. --\\=================================//
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222. --//====================================================\\--
  1223. --|| END OF SCRIPT
  1224. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement