Advertisement
kqdragon

Black

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