valentino2016

voideye fe

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