zombieslayerwtf

Void Power script [E:Void Eye]

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