Advertisement
naser2345

VoidFace

Mar 25th, 2018
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 58.49 KB | None | 0 0
  1. --Leaked by me :P
  2.  
  3.  
  4. wait(0.2)
  5. Player = game:GetService("Players").LocalPlayer
  6. PlayerGui = Player.PlayerGui
  7. Cam = workspace.CurrentCamera
  8. Backpack = Player.Backpack
  9. Character = Player.Character
  10. Humanoid = Character.Humanoid
  11. Mouse = Player:GetMouse()
  12. RootPart = Character["HumanoidRootPart"]
  13. Torso = Character["Torso"]
  14. Head = Character["Head"]
  15. RightArm = Character["Right Arm"]
  16. LeftArm = Character["Left Arm"]
  17. RightLeg = Character["Right Leg"]
  18. LeftLeg = Character["Left Leg"]
  19. RootJoint = RootPart["RootJoint"]
  20. Neck = Torso["Neck"]
  21. RightShoulder = Torso["Right Shoulder"]
  22. LeftShoulder = Torso["Left Shoulder"]
  23. RightHip = Torso["Right Hip"]
  24. LeftHip = Torso["Left Hip"]
  25. local sick = Instance.new("Sound",Character)
  26. sick.SoundId = "rbxassetid://727237039"
  27. sick.Looped = true
  28. sick.Pitch = 1
  29. sick.Volume = 2
  30. sick:Play()
  31.  
  32. IT = Instance.new
  33. CF = CFrame.new
  34. VT = Vector3.new
  35. RAD = math.rad
  36. C3 = Color3.new
  37. UD2 = UDim2.new
  38. BRICKC = BrickColor.new
  39. ANGLES = CFrame.Angles
  40. EULER = CFrame.fromEulerAnglesXYZ
  41. COS = math.cos
  42. ACOS = math.acos
  43. SIN = math.sin
  44. ASIN = math.asin
  45. ABS = math.abs
  46. MRANDOM = math.random
  47. FLOOR = math.floor
  48.  
  49. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  50.     local NEWMESH = IT(MESH)
  51.     if MESH == "SpecialMesh" then
  52.         NEWMESH.MeshType = MESHTYPE
  53.         if MESHID ~= "nil" and MESHID ~= "" then
  54.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  55.         end
  56.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  57.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  58.         end
  59.     end
  60.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  61.     NEWMESH.Scale = SCALE
  62.     NEWMESH.Parent = PARENT
  63.     return NEWMESH
  64. end
  65.  
  66. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  67.     local NEWPART = IT("Part")
  68.     NEWPART.formFactor = FORMFACTOR
  69.     NEWPART.Reflectance = REFLECTANCE
  70.     NEWPART.Transparency = TRANSPARENCY
  71.     NEWPART.CanCollide = false
  72.     NEWPART.Locked = true
  73.     NEWPART.Anchored = true
  74.     if ANCHOR == false then
  75.         NEWPART.Anchored = false
  76.     end
  77.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  78.     NEWPART.Name = NAME
  79.     NEWPART.Size = SIZE
  80.     NEWPART.Position = Torso.Position
  81.     NEWPART.Material = MATERIAL
  82.     NEWPART:BreakJoints()
  83.     NEWPART.Parent = PARENT
  84.     return NEWPART
  85. end
  86.  
  87. Class_Name = "Void Face"
  88. Weapon_Name = "Add-ons"
  89.  
  90. Player_Size = 1 --Size of the player.
  91. Animation_Speed = 3
  92. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  93.  
  94. local Speed = 16
  95. local Effects2 = {}
  96.  
  97.     local function weldBetween(a, b)
  98.         local weldd = Instance.new("ManualWeld")
  99.         weldd.Part0 = a
  100.         weldd.Part1 = b
  101.         weldd.C0 = CFrame.new()
  102.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  103.         weldd.Parent = a
  104.         return weldd
  105.     end
  106.  
  107. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  108. local acs = Instance.new("Part")
  109. acs.CanCollide = false
  110. acs.Anchored = false
  111. acs.Size = Vector3.new(0,0,0)
  112. acs.CFrame = attachmentpart.CFrame
  113. acs.Parent = Character
  114. acs.BrickColor = color
  115.     local meshs = Instance.new("SpecialMesh")
  116.     meshs.MeshId = mesh
  117.     meshs.TextureId = texture
  118.     meshs.Parent = acs
  119.     meshs.Scale = scale
  120.     meshs.Offset = offset
  121. weldBetween(attachmentpart,acs)
  122. end
  123.  
  124. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  125. if TYPE == "Gem" then
  126.     local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  127.     acs.Anchored = false
  128.     acs.CanCollide = false
  129.     acs.CFrame = PART.CFrame
  130.     local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  131. weldBetween(PART,acs)
  132. elseif TYPE == "Skull" then
  133.     local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  134.     acs.Anchored = false
  135.     acs.CanCollide = false
  136.     acs.CFrame = PART.CFrame
  137.     local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  138. weldBetween(PART,acs)
  139. elseif TYPE == "Eye" then
  140.     local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  141.     acs.Anchored = false
  142.     acs.CanCollide = false
  143.     acs.CFrame = PART.CFrame
  144.     local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  145. weldBetween(PART,acs)
  146. end
  147. end
  148.  
  149. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  150. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  151. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  152. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  153. local CHANGEDEFENSE = 0
  154. local CHANGEDAMAGE = 0
  155. local CHANGEMOVEMENT = 0
  156. local ANIM = "Idle"
  157. local ATTACK = false
  158. local EQUIPPED = false
  159. local HOLD = false
  160. local COMBO = 1
  161. local Rooted = false
  162. local SINE = 0
  163. local KEYHOLD = false
  164. local CHANGE = 2 / Animation_Speed
  165. local WALKINGANIM = false
  166. local WALK = 0
  167. local VALUE1 = false
  168. local VALUE2 = false
  169. local ROBLOXIDLEANIMATION = IT("Animation")
  170. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  171. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  172. --ROBLOXIDLEANIMATION.Parent = Humanoid
  173. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  174. WEAPONGUI.Name = "Weapon GUI"
  175. local Weapon = IT("Model")
  176. Weapon.Name = Weapon_Name
  177. local Effects = IT("Folder", Weapon)
  178. Effects.Name = "Effects"
  179. local ANIMATOR = Humanoid.Animator
  180. local ANIMATE = Character.Animate
  181. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  182. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  183. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  184. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  185. local TAUNTS = {"368794227","368794903","368794985"}
  186. local UNANCHOR = true
  187.  
  188. ArtificialHB = Instance.new("BindableEvent", script)
  189. ArtificialHB.Name = "ArtificialHB"
  190.  
  191. script:WaitForChild("ArtificialHB")
  192.  
  193. frame = Frame_Speed
  194. tf = 0
  195. allowframeloss = false
  196. tossremainder = false
  197. lastframe = tick()
  198. script.ArtificialHB:Fire()
  199.  
  200. game:GetService("RunService").Heartbeat:connect(function(s, p)
  201.     tf = tf + s
  202.     if tf >= frame then
  203.         if allowframeloss then
  204.             script.ArtificialHB:Fire()
  205.             lastframe = tick()
  206.         else
  207.             for i = 1, math.floor(tf / frame) do
  208.                 script.ArtificialHB:Fire()
  209.             end
  210.         lastframe = tick()
  211.         end
  212.         if tossremainder then
  213.             tf = 0
  214.         else
  215.             tf = tf - frame * math.floor(tf / frame)
  216.         end
  217.     end
  218. end)
  219.  
  220. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  221.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  222. end
  223.  
  224. function PositiveAngle(NUMBER)
  225.     if NUMBER >= 0 then
  226.         NUMBER = 0
  227.     end
  228.     return NUMBER
  229. end
  230.  
  231. function NegativeAngle(NUMBER)
  232.     if NUMBER <= 0 then
  233.         NUMBER = 0
  234.     end
  235.     return NUMBER
  236. end
  237.  
  238. function Swait(NUMBER)
  239.     if NUMBER == 0 or NUMBER == nil then
  240.         ArtificialHB.Event:wait()
  241.     else
  242.         for i = 1, NUMBER do
  243.             ArtificialHB.Event:wait()
  244.         end
  245.     end
  246. end
  247.  
  248. function QuaternionFromCFrame(cf)
  249.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  250.     local trace = m00 + m11 + m22
  251.     if trace > 0 then
  252.         local s = math.sqrt(1 + trace)
  253.         local recip = 0.5 / s
  254.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  255.     else
  256.         local i = 0
  257.         if m11 > m00 then
  258.             i = 1
  259.         end
  260.         if m22 > (i == 0 and m00 or m11) then
  261.             i = 2
  262.         end
  263.         if i == 0 then
  264.             local s = math.sqrt(m00 - m11 - m22 + 1)
  265.             local recip = 0.5 / s
  266.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  267.         elseif i == 1 then
  268.             local s = math.sqrt(m11 - m22 - m00 + 1)
  269.             local recip = 0.5 / s
  270.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  271.         elseif i == 2 then
  272.             local s = math.sqrt(m22 - m00 - m11 + 1)
  273.             local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  274.         end
  275.     end
  276. end
  277.  
  278. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  279.     local xs, ys, zs = x + x, y + y, z + z
  280.     local wx, wy, wz = w * xs, w * ys, w * zs
  281.     local xx = x * xs
  282.     local xy = x * ys
  283.     local xz = x * zs
  284.     local yy = y * ys
  285.     local yz = y * zs
  286.     local zz = z * zs
  287.     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))
  288. end
  289.  
  290. function QuaternionSlerp(a, b, t)
  291.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  292.     local startInterp, finishInterp;
  293.     if cosTheta >= 0.0001 then
  294.         if (1 - cosTheta) > 0.0001 then
  295.             local theta = ACOS(cosTheta)
  296.             local invSinTheta = 1 / SIN(theta)
  297.             startInterp = SIN((1 - t) * theta) * invSinTheta
  298.             finishInterp = SIN(t * theta) * invSinTheta
  299.         else
  300.             startInterp = 1 - t
  301.             finishInterp = t
  302.         end
  303.     else
  304.         if (1 + cosTheta) > 0.0001 then
  305.             local theta = ACOS(-cosTheta)
  306.             local invSinTheta = 1 / SIN(theta)
  307.             startInterp = SIN((t - 1) * theta) * invSinTheta
  308.             finishInterp = SIN(t * theta) * invSinTheta
  309.         else
  310.             startInterp = t - 1
  311.             finishInterp = t
  312.         end
  313.     end
  314.     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
  315. end
  316.  
  317. function Clerp(a, b, t)
  318.     local qa = {QuaternionFromCFrame(a)}
  319.     local qb = {QuaternionFromCFrame(b)}
  320.     local ax, ay, az = a.x, a.y, a.z
  321.     local bx, by, bz = b.x, b.y, b.z
  322.     local _t = 1 - t
  323.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  324. end
  325.  
  326. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  327.     local frame = IT("Frame")
  328.     frame.BackgroundTransparency = TRANSPARENCY
  329.     frame.BorderSizePixel = BORDERSIZEPIXEL
  330.     frame.Position = POSITION
  331.     frame.Size = SIZE
  332.     frame.BackgroundColor3 = COLOR
  333.     frame.BorderColor3 = BORDERCOLOR
  334.     frame.Name = NAME
  335.     frame.Parent = PARENT
  336.     return frame
  337. end
  338.  
  339. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  340.     local label = IT("TextLabel")
  341.     label.BackgroundTransparency = 1
  342.     label.Size = UD2(1, 0, 1, 0)
  343.     label.Position = UD2(0, 0, 0, 0)
  344.     label.TextColor3 = TEXTCOLOR
  345.     label.TextStrokeTransparency = STROKETRANSPARENCY
  346.     label.TextTransparency = TRANSPARENCY
  347.     label.FontSize = TEXTFONTSIZE
  348.     label.Font = TEXTFONT
  349.     label.BorderSizePixel = BORDERSIZEPIXEL
  350.     label.TextScaled = false
  351.     label.Text = TEXT
  352.     label.Name = NAME
  353.     label.Parent = PARENT
  354.     return label
  355. end
  356.  
  357. function NoOutlines(PART)
  358.     PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  359. end
  360.  
  361.  
  362. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  363.     local NEWWELD = IT(TYPE)
  364.     NEWWELD.Part0 = PART0
  365.     NEWWELD.Part1 = PART1
  366.     NEWWELD.C0 = C0
  367.     NEWWELD.C1 = C1
  368.     NEWWELD.Parent = PARENT
  369.     return NEWWELD
  370. end
  371.  
  372. local sound = IT("Sound",nil)
  373.  
  374. function CreateSound(ID, PARENT, VOLUME, PITCH)
  375.     local NEWSOUND = nil
  376.     coroutine.resume(coroutine.create(function()
  377.         NEWSOUND = sound:Clone()
  378.         NEWSOUND.Parent = PARENT
  379.         NEWSOUND.Volume = VOLUME
  380.         NEWSOUND.Pitch = PITCH
  381.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  382.         Swait()
  383.         NEWSOUND:play()
  384.         game:GetService("Debris"):AddItem(NEWSOUND, 10)
  385.     end))
  386.     return NEWSOUND
  387. end
  388.  
  389. function CFrameFromTopBack(at, top, back)
  390.     local right = top:Cross(back)
  391.     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)
  392. end
  393.  
  394. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  395.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  396.     local mesh = IT("SpecialMesh",wave)
  397.     mesh.MeshType = "FileMesh"
  398.     mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  399.     mesh.Scale = SIZE
  400.     mesh.Offset = VT(0,0,-SIZE.X/8)
  401.     wave.CFrame = CFRAME
  402.     coroutine.resume(coroutine.create(function(PART)
  403.         for i = 1, WAIT do
  404.             Swait()
  405.             mesh.Scale = mesh.Scale + GROW
  406.             mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  407.             if DOESROT == true then
  408.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  409.             end
  410.             wave.Transparency = wave.Transparency + (0.5/WAIT)
  411.             if wave.Transparency > 0.99 then
  412.                 wave:remove()
  413.             end
  414.         end
  415.     end))
  416. end
  417.  
  418. function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  419.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  420.     local mesh = IT("SpecialMesh",wave)
  421.     mesh.MeshType = "FileMesh"
  422.     mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  423.     mesh.Scale = SIZE
  424.     mesh.Offset = VT(0,0,-SIZE.X/8)
  425.     wave.CFrame = CFRAME
  426.     coroutine.resume(coroutine.create(function(PART)
  427.         for i = 1, WAIT do
  428.             Swait()
  429.             mesh.Scale = mesh.Scale + GROW
  430.             mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  431.             if DOESROT == true then
  432.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  433.             end
  434.             wave.Transparency = wave.Transparency + (0.5/WAIT)
  435.             if wave.Transparency > 0.99 then
  436.                 wave:remove()
  437.             end
  438.         end
  439.     end))
  440. end
  441.  
  442. function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  443.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  444.     local mesh = IT("SpecialMesh",wave)
  445.     mesh.MeshType = "FileMesh"
  446.     mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  447.     mesh.Scale = SIZE
  448.     mesh.Offset = VT(0,0,-SIZE.X/8)
  449.     wave.CFrame = CFRAME
  450.     coroutine.resume(coroutine.create(function(PART)
  451.         for i = 1, WAIT do
  452.             Swait()
  453.             mesh.Scale = mesh.Scale + GROW
  454.             mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  455.             if DOESROT == true then
  456.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  457.             end
  458.             wave.Transparency = wave.Transparency + (0.5/WAIT)
  459.             if wave.Transparency > 0.99 then
  460.                 wave:remove()
  461.             end
  462.         end
  463.     end))
  464. end
  465.  
  466. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  467.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  468.     local mesh = IT("SpecialMesh",wave)
  469.     mesh.MeshType = "FileMesh"
  470.     mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  471.     mesh.Scale = SIZE
  472.     mesh.Offset = VT(0,0,-SIZE.X/8)
  473.     wave.CFrame = CFRAME
  474.     coroutine.resume(coroutine.create(function(PART)
  475.         for i = 1, WAIT do
  476.             Swait()
  477.             mesh.Scale = mesh.Scale + GROW
  478.             mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  479.             if DOESROT == true then
  480.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  481.             end
  482.             wave.Transparency = wave.Transparency + (0.5/WAIT)
  483.             if wave.Transparency > 0.99 then
  484.                 wave:remove()
  485.             end
  486.         end
  487.     end))
  488. end
  489.  
  490. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  491.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  492.     local mesh = IT("SpecialMesh",wave)
  493.     mesh.MeshType = "FileMesh"
  494.     mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  495.     mesh.Scale = SIZE
  496.     wave.CFrame = CFRAME
  497.     coroutine.resume(coroutine.create(function(PART)
  498.         for i = 1, WAIT do
  499.             Swait()
  500.             mesh.Scale = mesh.Scale + GROW
  501.             mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  502.             if DOESROT == true then
  503.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  504.             end
  505.             wave.Transparency = wave.Transparency + (0.5/WAIT)
  506.             if wave.Transparency > 0.99 then
  507.                 wave:remove()
  508.             end
  509.         end
  510.     end))
  511. end
  512.  
  513. function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  514.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  515.     local mesh = IT("SpecialMesh",wave)
  516.     mesh.MeshType = "FileMesh"
  517.     mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  518.     mesh.Scale = SIZE
  519.     wave.CFrame = CFRAME
  520.     coroutine.resume(coroutine.create(function(PART)
  521.         for i = 1, WAIT do
  522.             Swait()
  523.             mesh.Scale = mesh.Scale + GROW
  524.             if DOESROT == true then
  525.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  526.             end
  527.             wave.Transparency = wave.Transparency + (0.5/WAIT)
  528.             if wave.Transparency > 0.99 then
  529.                 wave:remove()
  530.             end
  531.         end
  532.     end))
  533. end
  534.  
  535. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  536.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  537.     local mesh = IT("SpecialMesh",wave)
  538.     mesh.MeshType = "FileMesh"
  539.     mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  540.     mesh.Scale = SIZE
  541.     mesh.Offset = VT(0,0,0)
  542.     wave.CFrame = CFRAME
  543.     coroutine.resume(coroutine.create(function(PART)
  544.         for i = 1, WAIT do
  545.             Swait()
  546.             mesh.Scale = mesh.Scale + GROW
  547.             if DOESROT == true then
  548.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  549.             end
  550.             wave.Transparency = wave.Transparency + (0.5/WAIT)
  551.             if wave.Transparency > 0.99 then
  552.                 wave:remove()
  553.             end
  554.         end
  555.     end))
  556. end
  557.  
  558. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  559.     local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  560.     local mesh = IT("SpecialMesh",wave)
  561.     mesh.MeshType = "Sphere"
  562.     mesh.Scale = SIZE
  563.     mesh.Offset = VT(0,0,0)
  564.     wave.CFrame = CFRAME
  565.     coroutine.resume(coroutine.create(function(PART)
  566.         for i = 1, WAIT do
  567.             Swait()
  568.             mesh.Scale = mesh.Scale + GROW
  569.             wave.Transparency = wave.Transparency + (1/WAIT)
  570.             if wave.Transparency > 0.99 then
  571.                 wave:remove()
  572.             end
  573.         end
  574.     end))
  575. end
  576.  
  577. function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
  578.     local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
  579.     local mesh = IT("BlockMesh",wave)
  580.     wave.CFrame = CFRAME
  581.     coroutine.resume(coroutine.create(function(PART)
  582.         for i = 1, WAIT do
  583.             Swait()
  584.             mesh.Scale = mesh.Scale + GROW
  585.             wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  586.             wave.Transparency = wave.Transparency + (1/WAIT)
  587.             if wave.Transparency > 0.99 then
  588.                 wave:remove()
  589.             end
  590.         end
  591.     end))
  592. end
  593.  
  594. function MakeForm(PART,TYPE)
  595.     if TYPE == "Cyl" then
  596.         local MSH = IT("CylinderMesh",PART)
  597.     elseif TYPE == "Ball" then
  598.         local MSH = IT("SpecialMesh",PART)
  599.         MSH.MeshType = "Sphere"
  600.     elseif TYPE == "Wedge" then
  601.         local MSH = IT("SpecialMesh",PART)
  602.         MSH.MeshType = "Wedge"
  603.     elseif TYPE == "Head" then
  604.         local MSH = IT("SpecialMesh",PART)
  605.         MSH.Scale = VT(1.25,1.25,1.25)
  606.     end
  607. end
  608.  
  609. function CheckTableForString(Table, String)
  610.     for i, v in pairs(Table) do
  611.         if string.find(string.lower(String), string.lower(v)) then
  612.             return true
  613.         end
  614.     end
  615.     return false
  616. end
  617.  
  618. function CheckIntangible(Hit)
  619.     local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  620.     if Hit and Hit.Parent then
  621.         if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  622.             return true
  623.         end
  624.     end
  625.     return false
  626. end
  627.  
  628. Debris = game:GetService("Debris")
  629.  
  630. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  631.     local Direction = CFrame.new(StartPos, Vec).lookVector
  632.     local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  633.     local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  634.     if RayHit and CheckIntangible(RayHit) then
  635.         if DelayIfHit then
  636.             wait()
  637.         end
  638.         RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  639.     end
  640.     return RayHit, RayPos, RayNormal
  641. end
  642.  
  643. function CreateMagicCircle()
  644.     local sinkhole = IT("Part")
  645.     sinkhole.Size = VT(0,0,0)
  646.     sinkhole.Parent = Effects
  647.     sinkhole.Material = "Neon"
  648.     sinkhole.Color = C3(0,0,0)
  649.     sinkhole.Anchored = true
  650.     sinkhole.CanCollide = false
  651.     sinkhole.Transparency = 1
  652.     local decal = IT("Decal",sinkhole)
  653.     decal.Face = "Top"
  654.     decal.Texture = "http://www.roblox.com/asset/?id=1260793696"
  655.     local decal2 = IT("Decal",sinkhole)
  656.     decal2.Face = "Bottom"
  657.     decal2.Texture = "http://www.roblox.com/asset/?id=1260793696"
  658.     return sinkhole
  659. end
  660.  
  661. function CreateGUICircle(TARGET)
  662.     local GUI = Instance.new("BillboardGui",Character)
  663.     GUI.Size = UDim2.new(0,0,0,0)
  664.     GUI.Adornee = TARGET
  665.     local GUI2 = IT("ImageLabel",GUI)
  666.     GUI2.BackgroundTransparency = 1
  667.     GUI2.BorderSizePixel = 0
  668.     GUI2.Size = UDim2.new(1,0,1,0)
  669.     GUI2.SizeConstraint = "RelativeYY"
  670.     GUI.AlwaysOnTop = true
  671.     GUI2.Image = "http://www.roblox.com/asset/?id=1260793696"
  672.     return GUI,GUI2
  673. end
  674.  
  675. function CastWarpOutlines(TARGET)
  676.     coroutine.resume(coroutine.create(function()
  677.         local T = TARGET:GetChildren()
  678.         for i = 1, # T do
  679.             local child = T[i]
  680.             if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  681.                 local clone = child:Clone()
  682.                 clone.Parent = Effects
  683.                 clone.Anchored = true
  684.                 clone.CanCollide = false
  685.                 clone:ClearAllChildren()
  686.                 clone.CFrame = child.CFrame
  687.                 if clone.Name == "Head" then
  688.                     clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y)
  689.                 end
  690.                 if clone.ClassName == "MeshPart" then
  691.                     clone.TextureID = ""
  692.                 end
  693.                 clone.BrickColor = BRICKC"Black"
  694.                 clone.Material = "Neon"
  695.                 coroutine.resume(coroutine.create(function()
  696.                     for i = 1, 200 do
  697.                         Swait()
  698.                         clone.Transparency = clone.Transparency + 0.005
  699.                         clone.Size = clone.Size + VT(0.001,0.001,0.001)
  700.                     end
  701.                     clone:remove()
  702.                 end))
  703.             end
  704.         end
  705.     end))
  706. end
  707.  
  708. function turnto(position)
  709.     RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  710. end
  711.  
  712. local face = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Face mask", VT(1.001,1.001,1.001),false)
  713. local weld = CreateWeldOrSnapOrMotor("Weld", face, Head, face, CF(0.02,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  714. MakeForm(face,"Head")
  715. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Eye", VT(0.4,0.25,0.2),false)
  716. local weld = CreateWeldOrSnapOrMotor("Weld", part, Head, part, CF(0.15,0.28,-0.53) * ANGLES(RAD(15), RAD(0), RAD(25)), CF(0, 0, 0))
  717. MakeForm(part,"Ball")
  718. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Eye", VT(0.1,0.1,0.15),false)
  719. local PupilWeld = CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
  720. MakeForm(Eye,"Ball")
  721.  
  722. for _, c in pairs(Weapon:GetChildren()) do
  723.     if c.ClassName == "Part" then
  724.         c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  725.     end
  726. end
  727.  
  728. Weapon.Parent = Character
  729.  
  730. Humanoid.Died:connect(function()
  731.     ATTACK = true
  732. end)
  733.  
  734. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  735.     local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  736.     STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  737.     local BODYGYRO = IT("BodyGyro", STATPART)
  738.     local BODYPOSITION = IT("BodyPosition", STATPART)
  739.     BODYPOSITION.P = 2000
  740.     BODYPOSITION.D = 100
  741.     BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  742.     BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  743.     game:GetService("Debris"):AddItem(STATPART ,5)
  744.     local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  745.     BILLBOARDGUI.Adornee = STATPART
  746.     BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  747.     BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  748.     BILLBOARDGUI.AlwaysOnTop = false
  749.     local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  750.     TEXTLABEL.BackgroundTransparency = 1
  751.     TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  752.     TEXTLABEL.Text = TEXT
  753.     TEXTLABEL.Font = "SciFi"
  754.     TEXTLABEL.FontSize="Size42"
  755.     TEXTLABEL.TextColor3 = COLOR
  756.     TEXTLABEL.TextStrokeTransparency = 1
  757.     TEXTLABEL.TextScaled = true
  758.     TEXTLABEL.TextWrapped = true
  759.     coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  760.         if LABELTYPE == "Normal" then
  761.             for i = 1, 20 do
  762.                 STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  763.                 TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  764.             end
  765.         elseif LABELTYPE == "Debuff" then
  766.             for i = 1, 20 do
  767.                 STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  768.                 TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  769.             end
  770.         elseif LABELTYPE == "Shock" then
  771.             local ORIGIN = STATPART.Position
  772.             for i = 1, 20 do
  773.                 STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  774.                 TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  775.             end
  776.         end
  777.         THEPART.Parent = nil
  778.     end),STATPART, BODYPOSITION, TEXTLABEL)
  779. end
  780.  
  781. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping,DoesWarp,Instakill,HasChain)
  782.     local dmg = math.random(min,max)
  783.     for i,v in ipairs(workspace:GetChildren()) do
  784.     if v:FindFirstChild("HitBy"..Player.Name) == nil then
  785.         local body = v:GetChildren()
  786.             for part = 1, #body do
  787.                 if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  788.                     if(body[part].Position - position).Magnitude < radius then
  789.                         if v.ClassName == "Model" then
  790.                             if v:FindFirstChildOfClass("Humanoid") then
  791.                                 local HUMAN = v:FindFirstChildOfClass("Humanoid")
  792.                                 if HUMAN.Health ~= 0 then
  793.                                     if HasChain == true then
  794.                                         local defence = Instance.new("BoolValue",v)
  795.                                         defence.Name = ("HitBy"..Player.Name)
  796.                                         game:GetService("Debris"):AddItem(defence, 1)
  797.                                             coroutine.resume(coroutine.create(function()
  798.                                                 local TORSO = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  799.                                                 if TORSO then
  800.                                                     --print("Found "..v.Name.."'s Torso")
  801.                                                     local PART = IT("Part",Effects)
  802.                                                     PART.Anchored = true
  803.                                                     PART.CanCollide = false
  804.                                                     PART.Transparency = 1
  805.                                                     PART.CFrame = CF(position)
  806.                                                     Debris:AddItem(PART,15)
  807.                                                     local A = IT("Attachment",PART)
  808.                                                     --TORSO.Anchored = true
  809.                                                     local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
  810.                                                     --print("Chain start")
  811.                                                     Front.CFrame = CF(position)
  812.                                                     Front.CanCollide = true
  813.                                                     CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1)
  814.                                                     local B = IT("Attachment",Front)
  815.                                                     local ChainLink = IT("Beam",Effects)
  816.                                                     ChainLink.Texture = "rbxassetid://1262544869"
  817.                                                     ChainLink.TextureSpeed = 0
  818.                                                     ChainLink.FaceCamera = true
  819.                                                     ChainLink.Width0 = 3
  820.                                                     ChainLink.Attachment0 = A
  821.                                                     ChainLink.Attachment1 = B
  822.                                                     ChainLink.TextureMode = "Static"
  823.                                                     local bv = Instance.new("BodyVelocity")
  824.                                                     bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  825.                                                     bv.velocity = CF(Front.Position,TORSO.Position).lookVector*500
  826.                                                     bv.Parent = Front
  827.                                                     bv.Name = "MOVE"
  828.                                                     --print("Chain made")
  829.                                                     coroutine.resume(coroutine.create(function()
  830.                                                         Swait(30)
  831.                                                         bv:remove()
  832.                                                         local POS = Front.Position
  833.                                                         Front.CanCollide = false
  834.                                                         local onefourth = POS:Lerp(position, 0.25) + Vector3.new(0,0,0)
  835.                                                         local threefourths = POS:Lerp(position, 0.75) + Vector3.new(0,0,0)
  836.                                                         for i = 0, 1, 0.07 do
  837.                                                             Swait()
  838.                                                             Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, position, i))
  839.                                                         end
  840.                                                         Front:remove()
  841.                                                         ChainLink:remove()
  842.                                                     end))
  843.                                                     local harm = Front.Touched:Connect(function(hit)
  844.                                                         impale(Front,hit)
  845.                                                     end)
  846.                                                 end
  847.                                             end))
  848.                                     elseif DoesWarp == true then
  849.                                         local defence = Instance.new("BoolValue",v)
  850.                                         defence.Name = ("HitBy"..Player.Name)
  851.                                         game:GetService("Debris"):AddItem(defence, 0.001)
  852.                                         local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  853.                                         Warp(TORSO,Instakill)
  854.                                     else
  855.                                         if CanBeDodgedByJumping == true then
  856.                                             if body[part].Position.Y < position.Y+5 then
  857.                                                 if math.random(1,100) < critrate+1 then
  858.                                                     HUMAN.Health = HUMAN.Health - dmg*critmultiplier
  859.                                                     StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  860.                                                 else
  861.                                                     HUMAN.Health = HUMAN.Health - dmg
  862.                                                     StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  863.                                                 end
  864.                                                 local defence = Instance.new("BoolValue",v)
  865.                                                 defence.Name = ("HitBy"..Player.Name)
  866.                                                 game:GetService("Debris"):AddItem(defence, 0.01)
  867.                                             end
  868.                                         else
  869.                                             if beserk == true then
  870.                                                 HUMAN.Health = 0
  871.                                             end
  872.                                             if math.random(1,100) < critrate+1 then
  873.                                                 HUMAN.Health = HUMAN.Health - dmg*critmultiplier
  874.                                                 StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  875.                                             else
  876.                                                 HUMAN.Health = HUMAN.Health - dmg
  877.                                                 StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  878.                                             end
  879.                                             local defence = Instance.new("BoolValue",v)
  880.                                             defence.Name = ("HitBy"..Player.Name)
  881.                                             game:GetService("Debris"):AddItem(defence, 0.01)
  882.                                         end
  883.                                     end
  884.                                 end
  885.                             end
  886.                         end
  887.                         --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  888.                     end
  889.                 end
  890.             end
  891.             if v.ClassName == "Part" then
  892.                 if v.Anchored == false and (v.Position - position).Magnitude < radius then
  893.                     v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  894.                 end
  895.             end
  896.         end
  897.     end
  898. end
  899.  
  900. function Warp(Victim,WarpToVoid)
  901.     print("Warping "..Victim.Name.."...")
  902.     Victim.Anchored = true
  903.     coroutine.resume(coroutine.create(function()
  904.         local GUI,GUI2 = CreateGUICircle(Victim)
  905.         CreateSound("1208650519", Victim, 10, 1)
  906.         for i = 1, 100 do
  907.             Swait()
  908.             GUI.Size = GUI.Size + UDim2.new(0.2,0,0.2,0)
  909.             GUI2.Rotation = GUI2.Rotation + 4
  910.         end
  911.             CastWarpOutlines(Victim.Parent)
  912.             if WarpToVoid == false then
  913.             Victim.CFrame = Victim.CFrame * CF(MRANDOM(-65,65),0,MRANDOM(-65,65))
  914.             CreateSound("1177785010", Victim, 10, 1)
  915.             local HUMANOID = Victim.Parent:FindFirstChildOfClass("Humanoid")
  916.             if HUMANOID ~= nil then
  917.                 local dmg = MRANDOM(75,95)
  918.                 HUMANOID.Health = HUMANOID.Health - dmg
  919.                 StatLabel("Normal", Victim.CFrame * CF(0, 0 + (Victim.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3))
  920.             end
  921.             for i = 1, 50 do
  922.                 Swait()
  923.                 GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  924.                 GUI2.Rotation = GUI2.Rotation - 8
  925.             end
  926.             Victim.Anchored = false
  927.             GUI:remove()
  928.         elseif WarpToVoid == true then
  929.             CastWarpOutlines(Victim.Parent)
  930.             q = Victim.Parent:GetChildren()
  931.             for i = 1, #q do
  932.                 if q[i] ~= Victim then
  933.                     q[i]:remove()
  934.                 end
  935.             end
  936.             CreateSound("1177785010", Victim, 10, 1)
  937.             Victim.Transparency = 1
  938.             for i = 1, 50 do
  939.                 Swait()
  940.                 GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  941.                 GUI2.Rotation = GUI2.Rotation - 8
  942.             end
  943.             Victim.Parent:remove()
  944.         end
  945.     end))
  946. end
  947.  
  948. function killnearest(position,range,maxstrength)
  949.     for i,v in ipairs(workspace:GetChildren()) do
  950.     local body = v:GetChildren()
  951.         for part = 1, #body do
  952.             if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  953.                 if(body[part].Position - position).Magnitude < range then
  954.                     if v.ClassName == "Model" then
  955.                         v:BreakJoints()
  956.                     end
  957.                     --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  958.                     body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  959.                 end
  960.             end
  961.         end
  962.         if v.ClassName == "Part" then
  963.             if v.Anchored == false and (v.Position - position).Magnitude < range then
  964.                 --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  965.                 v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  966.             end
  967.         end
  968.     end
  969. end
  970.  
  971. function AttackTemplate()
  972.     ATTACK = true
  973.     Rooted = false
  974.     for i=0, 1, 0.1 / Animation_Speed do
  975.         Swait()
  976.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  977.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  978.         PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  979.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  980.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  981.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  982.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  983.     end
  984.     ATTACK = false
  985.     Rooted = false
  986. end
  987.  
  988. function VoidWarp()
  989.     ATTACK = true
  990.     Rooted = false
  991.     for i=0, 0.2, 0.1 / Animation_Speed do
  992.         Swait()
  993.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  994.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  995.         PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  996.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  997.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  998.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  999.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1000.     end
  1001.     AoEDamage(Torso.Position,15,0,0,0,false,0,0,false,true,false)
  1002.     CreateSound("1208650519", Torso, 10, 2.5)
  1003.     local GUI,GUI2 = CreateGUICircle(Torso)
  1004.     for i = 1, 50 do
  1005.         Swait()
  1006.         GUI.Size = GUI.Size + UDim2.new(i/60,0,i/60,0)
  1007.         GUI2.Rotation = GUI2.Rotation + i/10
  1008.     end
  1009.     CastWarpOutlines(Character)
  1010.     local POS = Torso.Position
  1011.     RootPart.CFrame = CF(CF(Mouse.Hit.p)*CF(0,2,0).p,POS)
  1012.     Swait()
  1013.     CreateSound("1177785010", Torso, 10, 1)
  1014.     coroutine.resume(coroutine.create(function()
  1015.         for i = 1, 50 do
  1016.             Swait()
  1017.             GUI.Size = GUI.Size - UDim2.new(i/60,0,i/60,0)
  1018.             GUI2.Rotation = GUI2.Rotation - i/10
  1019.         end
  1020.     end))
  1021.     ATTACK = false
  1022.     Rooted = false
  1023. end
  1024.  
  1025. local asd = Instance.new("ParticleEmitter")
  1026. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1027. asd.LightEmission = .1
  1028. asd.Size = NumberSequence.new(0.2)
  1029. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  1030. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1031. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1032. asd.Transparency = bbb
  1033. asd.Size = aaa
  1034. asd.ZOffset = .9
  1035. asd.Acceleration = Vector3.new(0, -15, 0)
  1036. asd.LockedToPart = false
  1037. asd.EmissionDirection = "Back"
  1038. asd.Lifetime = NumberRange.new(1, 2)
  1039. asd.Rotation = NumberRange.new(-100, 100)
  1040. asd.RotSpeed = NumberRange.new(-100, 100)
  1041. asd.Speed = NumberRange.new(25,35)
  1042. asd.Enabled = false
  1043. asd.VelocitySpread = 5
  1044.  
  1045. function getbloody(victim,amount)
  1046. local PART = IT("Part",Effects)
  1047. PART.Transparency = 1
  1048. PART.Size = victim.Size
  1049. PART.Anchored = true
  1050. PART.CanCollide = false
  1051. PART.CFrame = CF(victim.Position,Torso.Position)
  1052. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1053. Debris:AddItem(PART,5)
  1054. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1055. local prtcl = asd:Clone()
  1056. prtcl.Parent = PART
  1057. prtcl:Emit(amount*10)
  1058. end
  1059.  
  1060. function impale(chain,hit)
  1061.     if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") then
  1062.         local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1063.         if humanoid.Health ~= 0 then
  1064.             hit.Parent:BreakJoints()
  1065.             getbloody(hit,15)
  1066.             local prtcl = asd:Clone()
  1067.             prtcl.Parent = chain
  1068.             prtcl.Enabled = true
  1069.             prtcl.Speed = NumberRange.new(0)
  1070.             prtcl.Size = NumberSequence.new(0.2)
  1071.         end
  1072.     end
  1073. end
  1074.  
  1075. function clerp(a, b, t)
  1076.   return a:lerp(b, t)
  1077. end
  1078.  
  1079. function newBezier(startpos, pos2, pos3, endpos, t)
  1080.   local A = clerp(startpos, pos2, t)
  1081.   local B = clerp(pos2, pos3, t)
  1082.   local C = clerp(pos3, endpos, t)
  1083.   local lerp1 = clerp(A, B, t)
  1084.   local lerp2 = clerp(B, C, t)
  1085.   local cubic = clerp(lerp1, lerp2, t)
  1086.   return cubic
  1087. end
  1088.  
  1089. function VoidChain()
  1090.     ATTACK = true
  1091.     Rooted = false
  1092.     for i=0, 2, 0.1 / Animation_Speed do
  1093.         turnto(Mouse.Hit.p)
  1094.         Swait()
  1095.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.25 / Animation_Speed)
  1096.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.25 / Animation_Speed)
  1097.         PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.2,0.30,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1098.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1099.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1100.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1101.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1102.     end
  1103.     CreateSound("1208650519", RightArm, 10, 2)
  1104.     local RING = CreateMagicCircle()
  1105.     RING.CFrame = RightArm.CFrame * CF(0,-1.1,0)
  1106.     for i = 1, 5 do
  1107.         turnto(Mouse.Hit.p)
  1108.         Swait()
  1109.         local FRAME = CF(RightArm.CFrame * CF(MRANDOM(-5,5),MRANDOM(0,7.5),MRANDOM(-5,5)).p,RightArm.Position)
  1110.         MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
  1111.         MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
  1112.         RING.CFrame = RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(0),RAD(i*2),RAD(0))
  1113.         RING.Size = RING.Size + VT(1,0,1)
  1114.     end
  1115.     coroutine.resume(coroutine.create(function()
  1116.         local POS = Mouse.Hit.p
  1117.         local A = IT("Attachment",RING)
  1118.         for i = 1, 15 do
  1119.             Swait(MRANDOM(0,5))
  1120.             coroutine.resume(coroutine.create(function()
  1121.                 local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
  1122.                 --print("Chain start")
  1123.                 Front.CFrame = RING.CFrame*CF(MRANDOM(-3,3),0,MRANDOM(-3,3))
  1124.                 Front.CanCollide = true
  1125.                 CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1)
  1126.                 local B = IT("Attachment",Front)
  1127.                 local ChainLink = IT("Beam",RING)
  1128.                 ChainLink.Texture = "rbxassetid://1262544869"
  1129.                 ChainLink.TextureSpeed = 0
  1130.                 ChainLink.FaceCamera = true
  1131.                 ChainLink.Width0 = 3
  1132.                 ChainLink.Attachment0 = A
  1133.                 ChainLink.Attachment1 = B
  1134.                 ChainLink.CurveSize0 = MRANDOM(-5,5)
  1135.                 ChainLink.CurveSize1 = MRANDOM(-5,5)
  1136.                 ChainLink.TextureMode = "Static"
  1137.                 local bv = Instance.new("BodyVelocity")
  1138.                 bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1139.                 bv.velocity = CF(Front.Position,VT(POS.X+MRANDOM(-3,3),POS.Y+MRANDOM(-3,3),POS.Z+MRANDOM(-3,3))).lookVector*500
  1140.                 bv.Parent = Front
  1141.                 bv.Name = "MOVE"
  1142.                 --print("Chain made")
  1143.                 coroutine.resume(coroutine.create(function()
  1144.                     Swait(50)
  1145.                     bv:remove()
  1146.                     local POS = Front.Position
  1147.                     Front.CanCollide = false
  1148.                     local onefourth = POS:Lerp(RING.Position, 0.25) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
  1149.                     local threefourths = POS:Lerp(RING.Position, 0.75) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
  1150.                     for i = 0, 1, 0.07 do
  1151.                         Swait()
  1152.                         Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, RING.Position, i))
  1153.                     end
  1154.                     Front:remove()
  1155.                     ChainLink:remove()
  1156.                 end))
  1157.                 local harm = Front.Touched:Connect(function(hit)
  1158.                     impale(Front,hit)
  1159.                 end)
  1160.             end))
  1161.         end
  1162.         Swait(60)
  1163.         for i = 1, 5 do
  1164.             Swait()
  1165.             RING.Size = RING.Size - VT(1,0,1)
  1166.         end
  1167.         RING:remove()
  1168.     end))
  1169.     ATTACK = false
  1170.     Rooted = false
  1171. end
  1172.  
  1173. function VortexLeash()
  1174.     ATTACK = true
  1175.     Rooted = true
  1176.     for i=0, 1, 0.1 / Animation_Speed do
  1177.         Swait()
  1178.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1179.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1180.         PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.2,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1181.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -1) * ANGLES(RAD(60), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1182.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 , 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed/8)
  1183.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 * Player_Size, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.5 / Animation_Speed/8)
  1184.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, 0) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.5 / Animation_Speed/8)
  1185.     end
  1186.     local RING = CreateMagicCircle()
  1187.     CreateSound("1208650519", RING, 10, 1.5)
  1188.     RING.CFrame = RootPart.CFrame * CF(0,-2.8,0)
  1189.     local FRAME = RootPart.CFrame * CF(0,-2.8,0)
  1190.     for i = 1, 75 do
  1191.         Swait()
  1192.         local FRAME = CF(RightArm.CFrame * CF(MRANDOM(-5,5),MRANDOM(0,7.5),MRANDOM(-5,5)).p,RightArm.Position)
  1193.         MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
  1194.         MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
  1195.         RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(i/5),RAD(0))
  1196.         RING.Size = RING.Size + VT(1,0,1)
  1197.     end
  1198.     coroutine.resume(coroutine.create(function()
  1199.         for i = 1, 450 do
  1200.             Swait(2)
  1201.             local FRAME = CF(RING.CFrame * CF(MRANDOM(-25,25),MRANDOM(0,35),MRANDOM(-25,25)).p,RING.Position)
  1202.             MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
  1203.             MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
  1204.             MagicSphere(VT(0,0,0),10,RING.CFrame,"Royal purple",VT(2,4,2))
  1205.             MagicSphere(VT(0,0,0),10,RING.CFrame,"Really black",VT(1.8,3.8,1.8))
  1206.             local A = IT("Attachment",RING)
  1207.             local POS = RING.CFrame * CF(MRANDOM(-150,150),MRANDOM(5,50),MRANDOM(-150,150)).p
  1208.             coroutine.resume(coroutine.create(function()
  1209.                 local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
  1210.                 --print("Chain start")
  1211.                 Front.CFrame = RING.CFrame*CF(MRANDOM(-3,3),0,MRANDOM(-3,3))
  1212.                 Front.CanCollide = false
  1213.                 CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 2, 1)
  1214.                 local B = IT("Attachment",Front)
  1215.                 local ChainLink = IT("Beam",RING)
  1216.                 ChainLink.Texture = "rbxassetid://1262544869"
  1217.                 ChainLink.TextureSpeed = 0
  1218.                 ChainLink.FaceCamera = true
  1219.                 ChainLink.Width0 = 3
  1220.                 ChainLink.Attachment0 = A
  1221.                 ChainLink.Attachment1 = B
  1222.                 ChainLink.CurveSize0 = MRANDOM(-5,5)
  1223.                 ChainLink.CurveSize1 = MRANDOM(-5,5)
  1224.                 ChainLink.TextureMode = "Static"
  1225.                 local bv = Instance.new("BodyVelocity")
  1226.                 bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1227.                 bv.velocity = CF(Front.Position,VT(POS.X+MRANDOM(-3,3),POS.Y+MRANDOM(-3,3),POS.Z+MRANDOM(-3,3))).lookVector*500
  1228.                 bv.Parent = Front
  1229.                 bv.Name = "MOVE"
  1230.                 --print("Chain made")
  1231.                 coroutine.resume(coroutine.create(function()
  1232.                     Swait(50)
  1233.                     bv:remove()
  1234.                     local POS = Front.Position
  1235.                     Front.CanCollide = false
  1236.                     local onefourth = POS:Lerp(RING.Position, 0.25) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
  1237.                     local threefourths = POS:Lerp(RING.Position, 0.75) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
  1238.                     for i = 0, 1, 0.07 do
  1239.                         Swait()
  1240.                         Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, RING.Position, i))
  1241.                     end
  1242.                     Front:remove()
  1243.                     ChainLink:remove()
  1244.                 end))
  1245.                 local harm = Front.Touched:Connect(function(hit)
  1246.                     impale(Front,hit)
  1247.                 end)
  1248.             end))
  1249.             AoEDamage(RING.Position,75,0,0,0,0,0,0,0,0,0,true)
  1250.             RING.CFrame = RING.CFrame* ANGLES(RAD(0),RAD(5),RAD(0))
  1251.         end
  1252.         Swait(65)
  1253.         for i = 1, 75 do
  1254.             Swait()
  1255.             RING.CFrame = RING.CFrame* ANGLES(RAD(0),RAD(-i/5),RAD(0))
  1256.             RING.Size = RING.Size - VT(1,0,1)
  1257.         end
  1258.         RING:remove()
  1259.     end))
  1260.     ATTACK = false
  1261.     Rooted = false
  1262. end
  1263.  
  1264. function VortexBarrier()
  1265.     ATTACK = true
  1266.     Rooted = true
  1267.     for i=0, 2, 0.1 / Animation_Speed do
  1268.         Swait()
  1269.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1270.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1271.         PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1272.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1273.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1274.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1275.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1276.     end
  1277.     for i=0, 0.5, 0.1 / Animation_Speed do
  1278.         Swait()
  1279.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1280.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1281.         PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.27,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1282.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1283.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1284.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  1285.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1286.     end
  1287.     CreateSound("1208650519", Effects, 10, 1)
  1288.     local GUI,GUI2 = CreateGUICircle(Torso)
  1289.     local GUI3,GUI4 = CreateGUICircle(Torso)
  1290.     for i = 1, 200 do
  1291.         Swait()
  1292.         local FRAME = CF(Torso.CFrame * CF(MRANDOM(-35,35),MRANDOM(-35,35),MRANDOM(-35,35)).p,Torso.Position)
  1293.         MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
  1294.         MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
  1295.         local FRAME = CF(Torso.CFrame * CF(MRANDOM(-35,35),MRANDOM(-35,35),MRANDOM(-35,35)).p,Torso.Position)
  1296.         MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
  1297.         MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
  1298.         GUI.Size = GUI.Size + UDim2.new(i/60,0,i/60,0)
  1299.         GUI2.Rotation = GUI2.Rotation + i/10
  1300.         GUI3.Size = GUI3.Size + UDim2.new(i/120,0,i/120,0)
  1301.         GUI4.Rotation = GUI4.Rotation - i/10
  1302.     end
  1303.     AoEDamage(Torso.Position,150,0,0,0,false,0,0,false,true,true)
  1304.     Swait(25)
  1305.     for i = 1, 100 do
  1306.         Swait()
  1307.         GUI.Size = GUI.Size - UDim2.new(i/15,0,i/15,0)
  1308.         GUI2.Rotation = GUI2.Rotation - i/5
  1309.         GUI3.Size = GUI3.Size - UDim2.new(i/30,0,i/30,0)
  1310.         GUI4.Rotation = GUI4.Rotation + i/5
  1311.     end
  1312.     GUI:remove()
  1313.     GUI3:remove()
  1314.     ATTACK = false
  1315.     Rooted = false
  1316. end
  1317.  
  1318. function MouseDown(Mouse)
  1319.     if ATTACK == false then
  1320.     end
  1321. end
  1322.  
  1323. function MouseUp(Mouse)
  1324. HOLD = false
  1325. end
  1326.  
  1327. function KeyDown(Key)
  1328.     KEYHOLD = true
  1329.     if Key == "z" and ATTACK == false then
  1330.         VoidWarp()
  1331.     end
  1332.  
  1333.     if Key == "b" and ATTACK == false then
  1334.         VoidChain()
  1335.     end
  1336.  
  1337.     if Key == "c" and ATTACK == false then
  1338.         VortexLeash()
  1339.     end
  1340.  
  1341.     if Key == "v" and ATTACK == false then
  1342.         VortexBarrier()
  1343.     end
  1344.  
  1345.     if Key == "x" and ATTACK == false then
  1346.     end
  1347.  
  1348.     if Key == "t" and ATTACK == false then
  1349.         CreateSound(TAUNTS[MRANDOM(1,#TAUNTS)], Head, 10, 1)
  1350.     end
  1351. end
  1352.  
  1353. function KeyUp(Key)
  1354.     KEYHOLD = false
  1355. end
  1356.  
  1357.     Mouse.Button1Down:connect(function(NEWKEY)
  1358.         MouseDown(NEWKEY)
  1359.     end)
  1360.     Mouse.Button1Up:connect(function(NEWKEY)
  1361.         MouseUp(NEWKEY)
  1362.     end)
  1363.     Mouse.KeyDown:connect(function(NEWKEY)
  1364.         KeyDown(NEWKEY)
  1365.     end)
  1366.     Mouse.KeyUp:connect(function(NEWKEY)
  1367.         KeyUp(NEWKEY)
  1368.     end)
  1369.  
  1370. function unanchor()
  1371.     if UNANCHOR == true then
  1372.         g = Character:GetChildren()
  1373.         for i = 1, #g do
  1374.             if g[i].ClassName == "Part" then
  1375.                 g[i].Anchored = false
  1376.             end
  1377.         end
  1378.     end
  1379. end
  1380.  
  1381. local FF = IT("ForceField",Character)
  1382. FF.Visible = false
  1383.  
  1384. Humanoid.Changed:connect(function(Jump)
  1385.     if Jump == "Jump" and (Disable_Jump == true) then
  1386.         Humanoid.Jump = false
  1387.     end
  1388. end)
  1389.  
  1390. Speed = 45
  1391.  
  1392. while true do
  1393.     Swait()
  1394.     ANIMATE.Parent = nil
  1395.     local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1396.     IDLEANIMATION:Play()
  1397.     SINE = SINE + CHANGE
  1398.     local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1399.     local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1400.     local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1401.     local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1402.     local WALKSPEEDVALUE = 3
  1403.     if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1404.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1405.         Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1406.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1407.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1408.     elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1409.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1410.         Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1411.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1412.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1413.     end
  1414.     if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1415.         ANIM = "Jump"
  1416.         if ATTACK == false then
  1417.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1418.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1419.             PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.3,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1420.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1421.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1., 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1422.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1423.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1424.            end
  1425.     elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1426.         ANIM = "Fall"
  1427.         if ATTACK == false then
  1428.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1429.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1430.             PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.22,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1431.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1432.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1433.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1434.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1435.         end
  1436.     elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1437.         ANIM = "Idle"
  1438.         if ATTACK == false then
  1439.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1440.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1441.             PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.2,0.25,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1442.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1443.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1444.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1445.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1446.         end
  1447.     elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1448.         ANIM = "Walk"
  1449.         WALK = WALK + 1 / Animation_Speed
  1450.         if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1451.             WALK = 0
  1452.             if WALKINGANIM == true then
  1453.                 WALKINGANIM = false
  1454.             elseif WALKINGANIM == false then
  1455.                 WALKINGANIM = true
  1456.             end
  1457.         end
  1458.         --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1459.         --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1460.         if ATTACK == false then
  1461.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1462.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1463.             PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.26,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1464.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1465.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-120 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1466.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1467.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1468.         end
  1469.     end
  1470. if #Effects2>0 then
  1471. for e=1,#Effects2 do
  1472. if Effects2[e]~=nil then
  1473. local Thing=Effects2[e]
  1474. if Thing~=nil then
  1475. local Part=Thing[1]
  1476. local Mode=Thing[2]
  1477. local Delay=Thing[3]
  1478. local IncX=Thing[4]
  1479. local IncY=Thing[5]
  1480. local IncZ=Thing[6]
  1481. local Part2=Thing[8]
  1482. if Thing[1].Transparency<=1 then
  1483. if Thing[2]=="Block1" then
  1484. Thing[1].CFrame=Thing[1].CFrame
  1485. Mesh=Thing[1].Mesh
  1486. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1487. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1488. elseif Thing[2]=="Cylinder" then
  1489. Mesh=Thing[1].Mesh
  1490. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1491. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1492. elseif Thing[2]=="Blood" then
  1493. Mesh=Thing[7]
  1494. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1495. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1496. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1497. elseif Thing[2]=="Elec" then
  1498. Mesh=Thing[1].Mesh
  1499. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1500. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1501. elseif Thing[2]=="Disappear" then
  1502. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1503. end
  1504. else
  1505. Part.Parent=nil
  1506. table.remove(Effects2,e)
  1507. end
  1508. end
  1509. end
  1510. end
  1511. end
  1512. unanchor()
  1513. Humanoid.MaxHealth = "inf"
  1514. Humanoid.Health = "inf"
  1515. if Rooted == false then
  1516.     Disable_Jump = false
  1517.     Humanoid.WalkSpeed = Speed
  1518. elseif Rooted == true then
  1519.     Disable_Jump = true
  1520.     Humanoid.WalkSpeed = 0
  1521. end
  1522. q = Character:GetChildren()
  1523.     for u = 1, #q do
  1524.         if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1525.             if q[u].Handle:FindFirstChild("FaceFrontAttachment") or q[u].Handle:FindFirstChild("HatAttachment") then
  1526.                 q[u].Handle.Transparency = 1
  1527.             end
  1528.         end
  1529.     end
  1530. local MATHS = {"0","1"}
  1531. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  1532. Humanoid.PlatformStand = false
  1533. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement