Advertisement
xdfromxd

Untitled

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