Advertisement
doryna2281337

Untitled

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