Advertisement
ii_Dxson

Roblox OP Script

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