Advertisement
jasonskg1234

wait(0.2) Player = game:GetService("Players").LocalPlayer Pl

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