Advertisement
McRoblox132

Lord Of Void (ⱠØⱤĐ Ø₣ VØłĐ)

May 18th, 2018
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.38 KB | None | 0 0
  1. --//================================================================\\--
  2. --|| CREATED BY SHACKLUSTER | EDITED BY SHYIME
  3. --\\================================================================//--
  4.  
  5.  
  6.  
  7. wait(0.2)
  8.  
  9.  
  10.  
  11. Player = game:GetService("Players").LocalPlayer
  12. PlayerGui = Player.PlayerGui
  13. Cam = workspace.CurrentCamera
  14. Backpack = Player.Backpack
  15. Character = Player.Character
  16. Humanoid = Character.Humanoid
  17. Mouse = Player:GetMouse()
  18. RootPart = Character["HumanoidRootPart"]
  19. Torso = Character["Torso"]
  20. Head = Character["Head"]
  21. RightArm = Character["Right Arm"]
  22. LeftArm = Character["Left Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LeftLeg = Character["Left Leg"]
  25. RootJoint = RootPart["RootJoint"]
  26. Neck = Torso["Neck"]
  27. RightShoulder = Torso["Right Shoulder"]
  28. LeftShoulder = Torso["Left Shoulder"]
  29. RightHip = Torso["Right Hip"]
  30. LeftHip = Torso["Left Hip"]
  31. local sick = Instance.new("Sound",Character)
  32. sick.SoundId = "rbxassetid://608671887"
  33. sick.Looped = true
  34. sick.Pitch = 1
  35. sick.Volume = 1
  36. sick:Play()
  37.  
  38. local naeeym2 = Instance.new("BillboardGui",Character)
  39. naeeym2.AlwaysOnTop = true
  40. naeeym2.Size = UDim2.new(5,35,2,35)
  41. naeeym2.StudsOffset = Vector3.new(0,3,0)
  42. naeeym2.Adornee = Character.Head
  43. naeeym2.Name = "Name"
  44. --naeeym2.PlayerToHideFrom = Player
  45. naeeym2.MaxDistance = 200
  46. local tecks2 = Instance.new("TextLabel",naeeym2)
  47. tecks2.BackgroundTransparency = 1
  48. tecks2.TextScaled = true
  49. tecks2.BorderSizePixel = 0
  50. tecks2.Text = "VØ łĐ"
  51. tecks2.Font = "SciFi"
  52. tecks2.TextSize = 30
  53. tecks2.TextStrokeTransparency = 1
  54. tecks2.TextColor3 = Color3.new(255,255,255)
  55. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  56. tecks2.Size = UDim2.new(1,0,0.5,0)
  57. tecks2.Parent = naeeym2
  58.  
  59. IT = Instance.new
  60. CF = CFrame.new
  61. VT = Vector3.new
  62. RAD = math.rad
  63. C3 = Color3.new
  64. UD2 = UDim2.new
  65. BRICKC = BrickColor.new
  66. ANGLES = CFrame.Angles
  67. EULER = CFrame.fromEulerAnglesXYZ
  68. COS = math.cos
  69. ACOS = math.acos
  70. SIN = math.sin
  71. ASIN = math.asin
  72. ABS = math.abs
  73. MRANDOM = math.random
  74. FLOOR = math.floor
  75.  
  76. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  77. local NEWMESH = IT(MESH)
  78. if MESH == "SpecialMesh" then
  79. NEWMESH.MeshType = MESHTYPE
  80. if MESHID ~= "nil" and MESHID ~= "" then
  81. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  82. end
  83. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  84. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  85. end
  86. end
  87. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  88. NEWMESH.Scale = SCALE
  89. NEWMESH.Parent = PARENT
  90. return NEWMESH
  91. end
  92.  
  93. local char = game.Players.LocalPlayer.Character
  94.  
  95. shirt = Instance.new("Shirt", char)
  96. pants = Instance.new("Pants", char)
  97. pants.Name = "Pants"
  98. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1713259377"
  99. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=1713208457"
  100.  
  101. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  102. local NEWPART = IT("Part")
  103. NEWPART.formFactor = FORMFACTOR
  104. NEWPART.Reflectance = REFLECTANCE
  105. NEWPART.Transparency = TRANSPARENCY
  106. NEWPART.CanCollide = false
  107. NEWPART.Locked = true
  108. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  109. NEWPART.Name = NAME
  110. NEWPART.Size = SIZE
  111. NEWPART.Position = Torso.Position
  112. NEWPART.Material = MATERIAL
  113. NEWPART:BreakJoints()
  114. NEWPART.Parent = PARENT
  115. return NEWPART
  116. end
  117.  
  118.  
  119. --//=================================\\
  120. --|| CUSTOMIZATION
  121. --\\=================================//
  122.  
  123. Class_Name = "VØłĐ.exe"
  124. Editor_Name = "SHYIME"
  125. Weapon_Name = "Add-ons"
  126.  
  127. Custom_Colors = {
  128. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  129. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  130.  
  131. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  132. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  133. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  134. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  135. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  136.  
  137. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  138. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  139. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  140. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  141. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  142. }
  143.  
  144.  
  145. Player_Size = 1 --Size of the player.
  146. Animation_Speed = 3
  147. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  148.  
  149. local Speed = 16
  150. local Effects2 = {}
  151.  
  152. --//=================================\\
  153. --|| END OF CUSTOMIZATION
  154. --\\=================================//
  155.  
  156. local function weldBetween(a, b)
  157. local weldd = Instance.new("ManualWeld")
  158. weldd.Part0 = a
  159. weldd.Part1 = b
  160. weldd.C0 = CFrame.new()
  161. weldd.C1 = b.CFrame:inverse() * a.CFrame
  162. weldd.Parent = a
  163. return weldd
  164. end
  165.  
  166. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  167. local acs = Instance.new("Part")
  168. acs.CanCollide = false
  169. acs.Anchored = false
  170. acs.Size = Vector3.new(0,0,0)
  171. acs.CFrame = attachmentpart.CFrame
  172. acs.Parent = Character
  173. acs.BrickColor = color
  174. local meshs = Instance.new("SpecialMesh")
  175. meshs.MeshId = mesh
  176. meshs.TextureId = texture
  177. meshs.Parent = acs
  178. meshs.Scale = scale
  179. meshs.Offset = offset
  180. weldBetween(attachmentpart,acs)
  181. end
  182.  
  183. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  184. if TYPE == "Gem" then
  185. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  186. acs.Anchored = false
  187. acs.CanCollide = false
  188. acs.CFrame = PART.CFrame
  189. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  190. weldBetween(PART,acs)
  191. elseif TYPE == "Skull" then
  192. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  193. acs.Anchored = false
  194. acs.CanCollide = false
  195. acs.CFrame = PART.CFrame
  196. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  197. weldBetween(PART,acs)
  198. elseif TYPE == "Eye" then
  199. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  200. acs.Anchored = false
  201. acs.CanCollide = false
  202. acs.CFrame = PART.CFrame
  203. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  204. weldBetween(PART,acs)
  205. end
  206. end
  207.  
  208. --//=================================\\
  209. --|| USEFUL VALUES
  210. --\\=================================//
  211.  
  212. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  213. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  214. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  215. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  216. local CO1 = 0
  217. local CO2 = 0
  218. local CO3 = 0
  219. local CO4 = 0
  220. local CHANGEDEFENSE = 0
  221. local CHANGEDAMAGE = 0
  222. local CHANGEMOVEMENT = 0
  223. local ANIM = "Idle"
  224. local ATTACK = false
  225. local EQUIPPED = false
  226. local HOLD = false
  227. local COMBO = 1
  228. local LASTPOINT = nil
  229. local BLCF = nil
  230. local SCFR = nil
  231. local STAGGERHITANIM = false
  232. local STAGGERANIM = false
  233. local STUNANIM = false
  234. local CRITCHANCENUMBER = 0
  235. local IDLENUMBER = 0
  236. local DONUMBER = 0
  237. local HANDIDLE = false
  238. local SINE = 0
  239. local CHANGE = 2 / Animation_Speed
  240. local WALKINGANIM = false
  241. local WALK = 0
  242. local KEYHOLD = false
  243. local DISABLEJUMPING = false
  244. local HASBEENBLOCKED = false
  245. local STUNDELAYNUMBER = 0
  246. local MANADELAYNUMBER = 0
  247. local SECONDARYMANADELAYNUMBER = 0
  248. local ROBLOXIDLEANIMATION = IT("Animation")
  249. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  250. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  251. --ROBLOXIDLEANIMATION.Parent = Humanoid
  252. local WEAPONGUI = IT("ScreenGui", nil)
  253. WEAPONGUI.Name = "Weapon GUI"
  254. local WEAPONTOOL = IT("HopperBin", nil)
  255. WEAPONTOOL.Name = Weapon_Name
  256. local Weapon = IT("Model")
  257. Weapon.Name = Weapon_Name
  258. local Effects = IT("Folder", Weapon)
  259. Effects.Name = "Effects"
  260. local ANIMATOR = Humanoid.Animator
  261. local ANIMATE = Character.Animate
  262. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  263. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  264. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  265. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  266. local CUTSOUNDS = {"645750958","645747150"}
  267. local VICIOUSWOOSH = "658941933"
  268. local RELEASESOUND = "565538688"
  269. local CHARGESOUND = "565538601"
  270. local UNANCHOR = true
  271. local MAGICPARTICLE = "1792441528"
  272.  
  273. --//=================================\\
  274. --\\=================================//
  275.  
  276. --//=================================\\
  277. --|| STATS
  278. --\\=================================//
  279.  
  280. if Character:FindFirstChild("Stats") ~= nil then
  281. Character:FindFirstChild("Stats").Parent = nil
  282. end
  283.  
  284. local Stats = IT("Folder", nil)
  285. Stats.Name = "Stats"
  286. local ChangeStat = IT("Folder", Stats)
  287. ChangeStat.Name = "ChangeStat"
  288. local Defense = IT("NumberValue", Stats)
  289. Defense.Name = "Defense"
  290. Defense.Value = 1
  291. local Movement = IT("NumberValue", Stats)
  292. Movement.Name = "Movement"
  293. Movement.Value = 1
  294. local Damage = IT("NumberValue", Stats)
  295. Damage.Name = "Damage"
  296. Damage.Value = 1
  297. local Mana = IT("NumberValue", Stats)
  298. Mana.Name = "Mana"
  299. Mana.Value = 0
  300. local SecondaryMana = IT("NumberValue", Stats)
  301. SecondaryMana.Name = "SecondaryMana"
  302. SecondaryMana.Value = 0
  303. local CanCrit = IT("BoolValue", Stats)
  304. CanCrit.Name = "CanCrit"
  305. CanCrit.Value = false
  306. local CritChance = IT("NumberValue", Stats)
  307. CritChance.Name = "CritChance"
  308. CritChance.Value = 20
  309. local CanPenetrateArmor = IT("BoolValue", Stats)
  310. CanPenetrateArmor.Name = "CanPenetrateArmor"
  311. CanPenetrateArmor.Value = false
  312. local AntiTeamKill = IT("BoolValue", Stats)
  313. AntiTeamKill.Name = "AntiTeamKill"
  314. AntiTeamKill.Value = false
  315. local Rooted = IT("BoolValue", Stats)
  316. Rooted.Name = "Rooted"
  317. Rooted.Value = false
  318. local Block = IT("BoolValue", Stats)
  319. Block.Name = "Block"
  320. Block.Value = false
  321. local RecentEnemy = IT("ObjectValue", Stats)
  322. RecentEnemy.Name = "RecentEnemy"
  323. RecentEnemy.Value = nil
  324. local StaggerHit = IT("BoolValue", Stats)
  325. StaggerHit.Name = "StaggerHit"
  326. StaggerHit.Value = false
  327. local Stagger = IT("BoolValue", Stats)
  328. Stagger.Name = "Stagger"
  329. Stagger.Value = false
  330. local Stun = IT("BoolValue", Stats)
  331. Stun.Name = "Stun"
  332. Stun.Value = false
  333. local StunValue = IT("NumberValue", Stats)
  334. StunValue.Name = "StunValue"
  335. StunValue.Value = 0
  336.  
  337.  
  338. --//=================================\\
  339. --\\=================================//
  340.  
  341.  
  342.  
  343.  
  344.  
  345. --//=================================\\
  346. --|| DEBUFFS / BUFFS
  347. --\\=================================//
  348.  
  349. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  350. DEFENSECHANGE1.Name = "ChangeDefense"
  351. DEFENSECHANGE1.Value = 0
  352.  
  353. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  354. MOVEMENTCHANGE1.Name = "ChangeMovement"
  355. MOVEMENTCHANGE1.Value = 0
  356.  
  357. --//=================================\\
  358. --\\=================================//
  359.  
  360.  
  361.  
  362.  
  363.  
  364. --//=================================\\
  365. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  366. --\\=================================//
  367.  
  368. ArtificialHB = Instance.new("BindableEvent", script)
  369. ArtificialHB.Name = "ArtificialHB"
  370.  
  371. script:WaitForChild("ArtificialHB")
  372.  
  373. frame = Frame_Speed
  374. tf = 0
  375. allowframeloss = false
  376. tossremainder = false
  377. lastframe = tick()
  378. script.ArtificialHB:Fire()
  379.  
  380. game:GetService("RunService").Heartbeat:connect(function(s, p)
  381. tf = tf + s
  382. if tf >= frame then
  383. if allowframeloss then
  384. script.ArtificialHB:Fire()
  385. lastframe = tick()
  386. else
  387. for i = 1, math.floor(tf / frame) do
  388. script.ArtificialHB:Fire()
  389. end
  390. lastframe = tick()
  391. end
  392. if tossremainder then
  393. tf = 0
  394. else
  395. tf = tf - frame * math.floor(tf / frame)
  396. end
  397. end
  398. end)
  399.  
  400. --//=================================\\
  401. --\\=================================//
  402.  
  403.  
  404.  
  405.  
  406.  
  407. --//=================================\\
  408. --|| SOME FUNCTIONS
  409. --\\=================================//
  410.  
  411. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  412. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  413. end
  414.  
  415. function PositiveAngle(NUMBER)
  416. if NUMBER >= 0 then
  417. NUMBER = 0
  418. end
  419. return NUMBER
  420. end
  421.  
  422. function NegativeAngle(NUMBER)
  423. if NUMBER <= 0 then
  424. NUMBER = 0
  425. end
  426. return NUMBER
  427. end
  428.  
  429. function Swait(NUMBER)
  430. if NUMBER == 0 or NUMBER == nil then
  431. ArtificialHB.Event:wait()
  432. else
  433. for i = 1, NUMBER do
  434. ArtificialHB.Event:wait()
  435. end
  436. end
  437. end
  438.  
  439. function QuaternionFromCFrame(cf)
  440. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  441. local trace = m00 + m11 + m22
  442. if trace > 0 then
  443. local s = math.sqrt(1 + trace)
  444. local recip = 0.5 / s
  445. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  446. else
  447. local i = 0
  448. if m11 > m00 then
  449. i = 1
  450. end
  451. if m22 > (i == 0 and m00 or m11) then
  452. i = 2
  453. end
  454. if i == 0 then
  455. local s = math.sqrt(m00 - m11 - m22 + 1)
  456. local recip = 0.5 / s
  457. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  458. elseif i == 1 then
  459. local s = math.sqrt(m11 - m22 - m00 + 1)
  460. local recip = 0.5 / s
  461. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  462. elseif i == 2 then
  463. local s = math.sqrt(m22 - m00 - m11 + 1)
  464. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  465. end
  466. end
  467. end
  468.  
  469. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  470. local xs, ys, zs = x + x, y + y, z + z
  471. local wx, wy, wz = w * xs, w * ys, w * zs
  472. local xx = x * xs
  473. local xy = x * ys
  474. local xz = x * zs
  475. local yy = y * ys
  476. local yz = y * zs
  477. local zz = z * zs
  478. 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))
  479. end
  480.  
  481. function QuaternionSlerp(a, b, t)
  482. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  483. local startInterp, finishInterp;
  484. if cosTheta >= 0.0001 then
  485. if (1 - cosTheta) > 0.0001 then
  486. local theta = ACOS(cosTheta)
  487. local invSinTheta = 1 / SIN(theta)
  488. startInterp = SIN((1 - t) * theta) * invSinTheta
  489. finishInterp = SIN(t * theta) * invSinTheta
  490. else
  491. startInterp = 1 - t
  492. finishInterp = t
  493. end
  494. else
  495. if (1 + cosTheta) > 0.0001 then
  496. local theta = ACOS(-cosTheta)
  497. local invSinTheta = 1 / SIN(theta)
  498. startInterp = SIN((t - 1) * theta) * invSinTheta
  499. finishInterp = SIN(t * theta) * invSinTheta
  500. else
  501. startInterp = t - 1
  502. finishInterp = t
  503. end
  504. end
  505. 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
  506. end
  507.  
  508. function Clerp(a, b, t)
  509. local qa = {QuaternionFromCFrame(a)}
  510. local qb = {QuaternionFromCFrame(b)}
  511. local ax, ay, az = a.x, a.y, a.z
  512. local bx, by, bz = b.x, b.y, b.z
  513. local _t = 1 - t
  514. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  515. end
  516.  
  517. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  518. local frame = IT("Frame")
  519. frame.BackgroundTransparency = TRANSPARENCY
  520. frame.BorderSizePixel = BORDERSIZEPIXEL
  521. frame.Position = POSITION
  522. frame.Size = SIZE
  523. frame.BackgroundColor3 = COLOR
  524. frame.BorderColor3 = BORDERCOLOR
  525. frame.Name = NAME
  526. frame.Parent = PARENT
  527. return frame
  528. end
  529.  
  530. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  531. local label = IT("TextLabel")
  532. label.BackgroundTransparency = 1
  533. label.Size = UD2(1, 0, 1, 0)
  534. label.Position = UD2(0, 0, 0, 0)
  535. label.TextColor3 = C3(255, 255, 255)
  536. label.TextStrokeTransparency = STROKETRANSPARENCY
  537. label.TextTransparency = TRANSPARENCY
  538. label.FontSize = TEXTFONTSIZE
  539. label.Font = TEXTFONT
  540. label.BorderSizePixel = BORDERSIZEPIXEL
  541. label.TextScaled = true
  542. label.Text = TEXT
  543. label.Name = NAME
  544. label.Parent = PARENT
  545. return label
  546. end
  547.  
  548. function NoOutlines(PART)
  549. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  550. end
  551.  
  552.  
  553. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  554. local NEWWELD = IT(TYPE)
  555. NEWWELD.Part0 = PART0
  556. NEWWELD.Part1 = PART1
  557. NEWWELD.C0 = C0
  558. NEWWELD.C1 = C1
  559. NEWWELD.Parent = PARENT
  560. return NEWWELD
  561. end
  562.  
  563. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  564. local NEWSOUND = nil
  565. coroutine.resume(coroutine.create(function()
  566. NEWSOUND = IT("Sound", PARENT)
  567. NEWSOUND.Volume = VOLUME
  568. NEWSOUND.Pitch = PITCH
  569. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  570. --Swait()
  571. NEWSOUND:play()
  572. if DOESLOOP == false then
  573. repeat Swait() until NEWSOUND.Playing == false
  574. NEWSOUND:remove()
  575. elseif DOESLOOP == true then
  576. NEWSOUND.Looped = true
  577. end
  578. end))
  579. return NEWSOUND
  580. end
  581.  
  582. function CFrameFromTopBack(at, top, back)
  583. local right = top:Cross(back)
  584. 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)
  585. end
  586.  
  587. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  588. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  589. local mesh = IT("SpecialMesh",wave)
  590. mesh.MeshType = "FileMesh"
  591. wave.Anchored = true
  592. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  593. mesh.Scale = VT(size,size,size)
  594. mesh.Offset = VT(0,0,-size/8)
  595. wave.CFrame = CF(part.p) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  596. coroutine.resume(coroutine.create(function(PART)
  597. for i = 1, waitt do
  598. Swait()
  599. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  600. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  601. if doesrotate == true then
  602. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  603. end
  604. wave.Transparency = wave.Transparency + (0.5/waitt)
  605. if wave.Transparency > 0.99 then
  606. wave:remove()
  607. end
  608. end
  609. end))
  610. end
  611.  
  612. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  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. wave.Anchored = true
  617. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  618. mesh.Scale = VT(size,size,size)
  619. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  620. coroutine.resume(coroutine.create(function(PART)
  621. for i = 1, waitt do
  622. Swait()
  623. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  624. if doesrotate == true then
  625. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  626. end
  627. wave.Transparency = wave.Transparency + (0.5/waitt)
  628. if wave.Transparency > 0.99 then
  629. wave:remove()
  630. end
  631. end
  632. end))
  633. end
  634.  
  635. function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  636. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  637. local mesh = IT("SpecialMesh",wave)
  638. mesh.MeshType = "FileMesh"
  639. wave.Anchored = true
  640. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  641. mesh.Scale = VT(size,size,size)
  642. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  643. coroutine.resume(coroutine.create(function(PART)
  644. for i = 1, waitt do
  645. Swait()
  646. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  647. if doesrotate == true then
  648. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  649. end
  650. wave.Transparency = wave.Transparency + (0.5/waitt)
  651. if wave.Transparency > 0.99 then
  652. wave:remove()
  653. end
  654. end
  655. end))
  656. end
  657.  
  658. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2,color)
  659. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  660. local mesh = IT("SpecialMesh",wave)
  661. mesh.MeshType = "FileMesh"
  662. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  663. mesh.Scale = VT(size,size,size)
  664. wave.Anchored = true
  665. mesh.Offset = VT(0,0,0)
  666. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  667. coroutine.resume(coroutine.create(function(PART)
  668. for i = 1, waitt do
  669. Swait()
  670. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  671. if doesrotate == true then
  672. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  673. end
  674. wave.Transparency = wave.Transparency + (0.5/waitt)
  675. if wave.Transparency > 0.99 then
  676. wave:remove()
  677. end
  678. end
  679. end))
  680. end
  681.  
  682. function MagicSphere(size,waitt,part,color)
  683. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(0,0,0))
  684. local mesh = IT("SpecialMesh",wave)
  685. mesh.MeshType = "Sphere"
  686. wave.Anchored = true
  687. mesh.Scale = VT(size,size,size)
  688. mesh.Offset = VT(0,0,0)
  689. wave.CFrame = part * ANGLES(RAD(0),RAD(0),RAD(0))
  690. coroutine.resume(coroutine.create(function(PART)
  691. for i = 1, waitt do
  692. Swait()
  693. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  694. wave.Transparency = wave.Transparency + (1/waitt)
  695. if wave.Transparency > 0.99 then
  696. wave:remove()
  697. end
  698. end
  699. end))
  700. end
  701.  
  702. function MagicBlock(size,waitt,part,offset,color)
  703. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  704. local mesh = IT("BlockMesh",wave)
  705. wave.Anchored = true
  706. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  707. coroutine.resume(coroutine.create(function(PART)
  708. for i = 1, waitt do
  709. Swait()
  710. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  711. wave.CFrame = CF(wave.Position) * ANGLES(RAD(math(-360,360)),RAD(math(-360,360)),RAD(math(-360,360)))
  712. wave.Transparency = wave.Transparency + (1/waitt)
  713. if wave.Transparency > 0.99 then
  714. wave:remove()
  715. end
  716. end
  717. end))
  718. end
  719.  
  720. local EyeSizes={
  721. NumberSequenceKeypoint.new(0,0.5,0),
  722. NumberSequenceKeypoint.new(1,0.2,0)
  723. }
  724. local EyeTrans={
  725. NumberSequenceKeypoint.new(0,0,0),
  726. NumberSequenceKeypoint.new(1,1,0)
  727. }
  728. local PE=Instance.new("ParticleEmitter")
  729. PE.LightEmission=0.3
  730. PE.Size=NumberSequence.new(EyeSizes)
  731. PE.Transparency=NumberSequence.new(EyeTrans)
  732. PE.Rotation=NumberRange.new(0,360)
  733. PE.LockedToPart = false
  734. PE.Speed = NumberRange.new(0,0,0)
  735. PE.ZOffset = 0.3
  736. PE.Rate = 999
  737. PE.Name = "Particles"
  738.  
  739. function CreateParticles(art,text,accel,drag,lifetime,type,isenabledbydefault,locked)
  740. local particle = nil
  741. coroutine.resume(coroutine.create(function(PART)
  742. particle = PE:Clone()
  743. Swait()
  744. particle.Rate = 999
  745. particle.Parent = art
  746. particle.Acceleration = accel
  747. if type == "Fire" then
  748. local EyeSizes={
  749. NumberSequenceKeypoint.new(0,0.5,0.3),
  750. NumberSequenceKeypoint.new(1,0.2,0.2)
  751. }
  752. particle.Size = NumberSequence.new(EyeSizes)
  753. elseif type == "Smoke" then
  754. local EyeSizes={
  755. NumberSequenceKeypoint.new(0,0.5,0),
  756. NumberSequenceKeypoint.new(1,5,0.5)
  757. }
  758. particle.Size = NumberSequence.new(EyeSizes)
  759. elseif type == "Solid" then
  760. local EyeSizes={
  761. NumberSequenceKeypoint.new(0,0.5,0),
  762. NumberSequenceKeypoint.new(1,0.5,0)
  763. }
  764. particle.Size = NumberSequence.new(EyeSizes)
  765. end
  766. particle.Lifetime=NumberRange.new(lifetime)
  767. particle.Drag = drag
  768. if locked == true then
  769. particle.LockedToPart = true
  770. end
  771. particle.Texture = "http://www.roblox.com/asset/?id="..text
  772. particle.Enabled = isenabledbydefault
  773. end))
  774. return particle
  775. end
  776.  
  777. local EyeSizes={
  778. NumberSequenceKeypoint.new(0,0.5,0),
  779. NumberSequenceKeypoint.new(1,0.2,0)
  780. }
  781. local EyeTrans={
  782. NumberSequenceKeypoint.new(0,0,0),
  783. NumberSequenceKeypoint.new(1,1,0)
  784. }
  785. local PE2=Instance.new("ParticleEmitter")
  786. PE2.LightEmission=0.8
  787. PE2.Size=NumberSequence.new(EyeSizes)
  788. PE2.Transparency=NumberSequence.new(EyeTrans)
  789. PE2.Rotation=NumberRange.new(0,360)
  790. PE2.LockedToPart = false
  791. PE2.Speed = NumberRange.new(0,0,0)
  792. PE2.ZOffset = 0.3
  793. PE2.Rate = 999
  794. PE2.VelocitySpread = 90000
  795. PE2.Name = "Particles"
  796.  
  797. function CreateParticles2(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed)
  798. local particle = nil
  799. coroutine.resume(coroutine.create(function(PART)
  800. particle = PE2:Clone()
  801. Swait()
  802. particle.Rate = 999
  803. particle.Parent = art
  804. particle.Acceleration = accel
  805. if type == "Fire" then
  806. local EyeSizes={
  807. NumberSequenceKeypoint.new(0,size,size/2),
  808. NumberSequenceKeypoint.new(1,size/4,size/8)
  809. }
  810. particle.Size = NumberSequence.new(EyeSizes)
  811. elseif type == "Smoke" then
  812. local EyeSizes={
  813. NumberSequenceKeypoint.new(0,0.5,0),
  814. NumberSequenceKeypoint.new(1,5,0.5)
  815. }
  816. particle.Size = NumberSequence.new(EyeSizes)
  817. elseif type == "Solid" then
  818. local EyeSizes={
  819. NumberSequenceKeypoint.new(0,0.5,0),
  820. NumberSequenceKeypoint.new(1,0.5,0)
  821. }
  822. particle.Size = NumberSequence.new(EyeSizes)
  823. end
  824. particle.Lifetime=NumberRange.new(lifetime)
  825. particle.Drag = drag
  826. if locked == true then
  827. particle.LockedToPart = true
  828. end
  829. particle.Speed = NumberRange.new(speed,speed,speed)
  830. particle.Texture = "http://www.roblox.com/asset/?id="..MAGICPARTICLE
  831. particle.Enabled = isenabledbydefault
  832. --particle.Color = ColorSequence.new(Color3.new(255, 255, 255))
  833. end))
  834. return particle
  835. end
  836.  
  837. local Decal = IT("Decal")
  838.  
  839. function CreateMagicCircle(size,doesrotate,rotatedirection,waitt,cframe,alwaysfade)
  840. local sinkhole = IT("Part")
  841. sinkhole.Size = VT(size,0,size)
  842. sinkhole.CFrame = cframe
  843. --sinkhole.Orientation = VT(0,0,0)
  844. sinkhole.Parent = Effects
  845. sinkhole.Material = "Neon"
  846. sinkhole.Color = C3(255, 255, 255)
  847. sinkhole.Anchored = true
  848. sinkhole.CanCollide = false
  849. sinkhole.Transparency = 1
  850. local decal = Decal:Clone()
  851. decal.Parent = sinkhole
  852. decal.Face = "Top"
  853. decal.Texture = "http://www.roblox.com/asset/?id=1792308797"
  854. local decal2 = Decal:Clone()
  855. decal2.Parent = sinkhole
  856. decal2.Face = "Bottom"
  857. decal2.Texture = "http://www.roblox.com/asset/?id=1792308797"
  858. coroutine.resume(coroutine.create(function(PART)
  859. for i = 1, waitt do
  860. Swait()
  861. if doesrotate == true then
  862. sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  863. end
  864. if alwaysfade == true then
  865. decal.Transparency = decal.Transparency + (1/waitt)
  866. decal2.Transparency = decal.Transparency + (1/waitt)
  867. end
  868. if i > waitt-11 and (alwaysfade ~= true) then
  869. decal.Transparency = decal.Transparency + 0.1
  870. decal2.Transparency = decal.Transparency + 0.1
  871. end
  872. end
  873. sinkhole.Parent = nil
  874. end))
  875. return sinkhole
  876. end
  877.  
  878. --//=================================\\
  879. --\\=================================//
  880.  
  881.  
  882. --//=================================\\
  883. --|| WEAPON CREATION
  884. --\\=================================//
  885.  
  886. if Player_Size ~= 1 then
  887. for _, v in pairs (Weapon:GetChildren()) do
  888. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  889. local p1 = v.Part1
  890. v.Part1 = nil
  891. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  892. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  893. v.Part1 = p1
  894. elseif v.ClassName == "Part" then
  895. for _, b in pairs (v:GetChildren()) do
  896. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  897. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  898. end
  899. end
  900. end
  901. end
  902. end
  903.  
  904. Swait()
  905.  
  906. local Plate = IT("Part",Weapon)
  907. Plate.Size = VT(1,0.1,1)
  908. Plate.Transparency = 1
  909. Plate.CanCollide = false
  910. Plate.CFrame = LeftLeg.CFrame * CF(0,-1.1,0)
  911. CreateParticles(Plate,MAGICPARTICLE,VT(0,2,0),2,2,"Fire",true,true)
  912. weldBetween(LeftLeg,Plate)
  913.  
  914. local Plate = IT("Part",Weapon)
  915. Plate.Size = VT(1,0.1,1)
  916. Plate.Transparency = 1
  917. Plate.CanCollide = false
  918. Plate.CFrame = RightLeg.CFrame * CF(0,-1.1,0)
  919. CreateParticles(Plate,MAGICPARTICLE,VT(0,2,0),2,2,"Fire",true,true)
  920. weldBetween(RightLeg,Plate)
  921.  
  922. local Plate = IT("Part",Weapon)
  923. Plate.Size = VT(1,0.1,1)
  924. Plate.Transparency = 1
  925. Plate.CanCollide = false
  926. Plate.CFrame = RightArm.CFrame * CF(0,-1.1,0)
  927. CreateParticles(Plate,MAGICPARTICLE,VT(0,2,0),2,2,"Fire",true,true)
  928. weldBetween(RightArm,Plate)
  929.  
  930. local Plate = IT("Part",Weapon)
  931. Plate.Size = VT(1,0.1,1)
  932. Plate.Transparency = 1
  933. Plate.CanCollide = false
  934. Plate.CFrame = LeftArm.CFrame * CF(0,-1.1,0)
  935. CreateParticles(Plate,MAGICPARTICLE,VT(0,2,0),2,2,"Fire",true,true)
  936. weldBetween(LeftArm,Plate)
  937.  
  938. local eye = IT("Part",Weapon)
  939. eye.Size = VT(0.2,0.2,0.2)
  940. eye.Shape = "Ball"
  941. eye.CFrame = Head.CFrame * CF(0.125,0.2,-0.55)
  942. eye.Material = "Neon"
  943. eye.BrickColor = BRICKC("Dark indigo")
  944. weldBetween(Head,eye)
  945.  
  946.  
  947.  
  948. for _, c in pairs(Weapon:GetChildren()) do
  949. if c.ClassName == "Part" then
  950. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  951. end
  952. end
  953.  
  954. Weapon.Parent = Character
  955.  
  956. Humanoid.Died:connect(function()
  957. ATTACK = true
  958. end)
  959.  
  960. print(Class_Name.." loaded.")
  961. print(Editor_Name.." Edited This.")
  962.  
  963. --//=================================\\
  964. --|| RESPAWN
  965. --\\=================================//
  966.  
  967. local BODY = {}
  968. for _, c in pairs(Character:GetDescendants()) do
  969. if c:IsA("BasePart") and c.Name ~= "Handle" then
  970. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  971. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  972. end
  973. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
  974. elseif c:IsA("JointInstance") then
  975. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
  976. end
  977. end
  978. function refit()
  979. Character.Parent = workspace
  980. for e = 1, #BODY do
  981. if BODY[e] ~= nil then
  982. local STUFF = BODY[e]
  983. local PART = STUFF[1]
  984. local PARENT = STUFF[2]
  985. local MATERIAL = STUFF[3]
  986. local COLOR = STUFF[4]
  987. local TRANSPARENCY = STUFF[5]
  988. --local SIZE = STUFF[6]
  989. local NAME = STUFF[7]
  990. if PART.ClassName == "Part" and PART ~= RootPart then
  991. PART.Material = MATERIAL
  992. PART.Transparency = TRANSPARENCY
  993. PART.Name = NAME
  994. end
  995. if PART.Parent ~= PARENT then
  996. Humanoid:remove()
  997. PART.Parent = PARENT
  998. Humanoid = IT("Humanoid",Character)
  999. end
  1000. end
  1001. end
  1002. end
  1003.  
  1004. Humanoid.Died:connect(function()
  1005. refit()
  1006. end)
  1007.  
  1008. --//=================================\\
  1009. --|| DAMAGE FUNCTIONS
  1010. --\\=================================//
  1011.  
  1012. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1013. local STATPART = CreatePart(3, Effects, "Neon", 0, 1, "Institutional white", "Effect", VT())
  1014. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1015. local BODYGYRO = IT("BodyGyro", STATPART)
  1016. local BODYPOSITION = IT("BodyPosition", STATPART)
  1017. BODYPOSITION.P = 2000
  1018. BODYPOSITION.D = 100
  1019. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1020. if LABELTYPE == "Normal" then
  1021. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1022. elseif LABELTYPE == "Debuff" then
  1023. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  1024. elseif LABELTYPE == "Interruption" then
  1025. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  1026. end
  1027. game:GetService("Debris"):AddItem(STATPART ,5)
  1028. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1029. BILLBOARDGUI.Adornee = STATPART
  1030. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1031. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1032. BILLBOARDGUI.AlwaysOnTop = false
  1033. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1034. TEXTLABEL.BackgroundTransparency = 1
  1035. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1036. TEXTLABEL.Text = TEXT
  1037. TEXTLABEL.Font = "SciFi"
  1038. TEXTLABEL.FontSize="Size42"
  1039. TEXTLABEL.TextColor3 = COLOR
  1040. TEXTLABEL.TextStrokeTransparency = 1
  1041. TEXTLABEL.TextScaled = true
  1042. TEXTLABEL.TextWrapped = true
  1043. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1044. wait(0.2)
  1045. for i=1, 5 do
  1046. wait()
  1047. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  1048. end
  1049. wait(1.2)
  1050. for i=1, 5 do
  1051. wait()
  1052. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  1053. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  1054. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1055. end
  1056. THEPART.Parent = nil
  1057. end),STATPART, BODYPOSITION, TEXTLABEL)
  1058. end
  1059.  
  1060.  
  1061. --//=================================\\
  1062. --|| DAMAGING
  1063. --\\=================================//
  1064.  
  1065. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  1066. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  1067. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1068. local dmg = math.random(min,max)
  1069. if humanoid.Health > 0 then
  1070. if beserk == true then
  1071. humanoid.Health = 0
  1072. else
  1073. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  1074. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  1075. if math.random(1,100) < critrate+1 then
  1076. humanoid.Health = humanoid.Health - dmg*critmultiplier
  1077. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1078. else
  1079. humanoid.Health = humanoid.Health - dmg
  1080. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  1081. end
  1082. local defence = Instance.new("BoolValue",hit.Parent)
  1083. defence.Name = ("HitBy"..Player.Name)
  1084. game:GetService("Debris"):AddItem(defence, 0.5)
  1085. end
  1086. end
  1087. end
  1088. end
  1089.  
  1090. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  1091. local dmg = math.random(min,max)
  1092. for i,v in ipairs(workspace:GetChildren()) do
  1093. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1094. local body = v:GetChildren()
  1095. for part = 1, #body do
  1096. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1097. if(body[part].Position - position).Magnitude < radius then
  1098. if v.ClassName == "Model" then
  1099. if v:FindFirstChild("Humanoid") then
  1100. if v.Humanoid.Health ~= 0 then
  1101. if CanBeDodgedByJumping == true then
  1102. if body[part].Position.Y < position.Y+5 then
  1103. if math.random(1,100) < critrate+1 then
  1104. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1105. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1106. else
  1107. v.Humanoid.Health = v.Humanoid.Health - dmg
  1108. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1109. end
  1110. local defence = Instance.new("BoolValue",v)
  1111. defence.Name = ("HitBy"..Player.Name)
  1112. game:GetService("Debris"):AddItem(defence, 0.5)
  1113. end
  1114. else
  1115. if beserk == true then
  1116. v.Humanoid.Health = 0
  1117. end
  1118. if math.random(1,100) < critrate+1 then
  1119. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1120. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1121. else
  1122. v.Humanoid.Health = v.Humanoid.Health - dmg
  1123. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1124. end
  1125. local defence = Instance.new("BoolValue",v)
  1126. defence.Name = ("HitBy"..Player.Name)
  1127. game:GetService("Debris"):AddItem(defence, 0.5)
  1128. end
  1129. end
  1130. end
  1131. end
  1132. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1133. end
  1134. end
  1135. end
  1136. if v.ClassName == "Part" then
  1137. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  1138. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1139. end
  1140. end
  1141. end
  1142. end
  1143. end
  1144.  
  1145. function attractnearest(postype,position,range,maxstrength,last)
  1146. if postype == "Vector" then
  1147. for i,v in ipairs(workspace:GetChildren()) do
  1148. local body = v:GetChildren()
  1149. for part = 1, #body do
  1150. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1151. if(body[part].Position - position).Magnitude < range then
  1152. if body[part]:FindFirstChild("ATTRACT") == nil then
  1153. local bv = Instance.new("BodyVelocity")
  1154. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1155. bv.velocity = CF(body[part].Position,position).lookVector*maxstrength
  1156. bv.Parent = body[part]
  1157. bv.Name = "ATTRACT"
  1158. else
  1159. coroutine.resume(coroutine.create(function()
  1160. for i = 1, last/5 do
  1161. Swait(5)
  1162. body[part].ATTRACT.velocity = CF(body[part].Position,position).lookVector*maxstrength
  1163. end
  1164. body[part].ATTRACT:remove()
  1165. end))
  1166. end
  1167. end
  1168. end
  1169. end
  1170. if v.ClassName == "Part" then
  1171. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1172. if v:FindFirstChild("ATTRACT") == nil then
  1173. local bv = Instance.new("BodyVelocity")
  1174. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1175. bv.velocity = CF(v.Position,position).lookVector*maxstrength
  1176. bv.Parent = v
  1177. bv.Name = "ATTRACT"
  1178. else
  1179. coroutine.resume(coroutine.create(function()
  1180. for i = 1, last/5 do
  1181. Swait(5)
  1182. v.ATTRACT.velocity = CF(v.Position,position).lookVector*maxstrength
  1183. end
  1184. v.ATTRACT:remove()
  1185. end))
  1186. end
  1187. end
  1188. end
  1189. end
  1190. elseif postype == "Part" then
  1191. for i,v in ipairs(workspace:GetChildren()) do
  1192. local body = v:GetChildren()
  1193. for part = 1, #body do
  1194. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1195. if(body[part].Position - position.Position).Magnitude < range then
  1196. if body[part]:FindFirstChild("ATTRACT") == nil then
  1197. local bv = Instance.new("BodyVelocity")
  1198. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1199. bv.velocity = CF(body[part].Position,position.Position).lookVector*maxstrength
  1200. bv.Parent = body[part]
  1201. bv.Name = "ATTRACT"
  1202. else
  1203. coroutine.resume(coroutine.create(function()
  1204. for i = 1, last/5 do
  1205. Swait(5)
  1206. body[part].ATTRACT.velocity = CF(body[part].Position,position.Position).lookVector*maxstrength
  1207. end
  1208. body[part].ATTRACT:remove()
  1209. end))
  1210. end
  1211. end
  1212. end
  1213. end
  1214. if v.ClassName == "Part" then
  1215. if v.Anchored == false and (v.Position - position.Position).Magnitude < range then
  1216. if v:FindFirstChild("ATTRACT") == nil then
  1217. local bv = Instance.new("BodyVelocity")
  1218. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1219. bv.velocity = CF(v.Position,position.Position).lookVector*maxstrength
  1220. bv.Parent = v
  1221. bv.Name = "ATTRACT"
  1222. else
  1223. coroutine.resume(coroutine.create(function()
  1224. for i = 1, last/5 do
  1225. Swait(5)
  1226. v.ATTRACT.velocity = CF(v.Position,position.Position).lookVector*maxstrength
  1227. end
  1228. v.ATTRACT:remove()
  1229. end))
  1230. end
  1231. end
  1232. end
  1233. end
  1234. end
  1235. end
  1236.  
  1237. function killnearest(position,range,maxstrength,candestroy)
  1238. for i,v in ipairs(workspace:GetChildren()) do
  1239. local body = v:GetChildren()
  1240. for part = 1, #body do
  1241. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1242. if(body[part].Position - position).Magnitude < range then
  1243. if v.ClassName == "Model" then
  1244. v:BreakJoints()
  1245. end
  1246. if candestroy == true then
  1247. table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1248. end
  1249. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1250. end
  1251. end
  1252. end
  1253. if v.ClassName == "Part" then
  1254. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1255. if candestroy == true then
  1256. table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1257. end
  1258. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1259. end
  1260. end
  1261. end
  1262. end
  1263.  
  1264. --//=================================\\
  1265. --|| ATTACK FUNCTIONS AND STUFF
  1266. --\\=================================//
  1267.  
  1268. function CheckTableForString(Table, String)
  1269. for i, v in pairs(Table) do
  1270. if string.find(string.lower(String), string.lower(v)) then
  1271. return true
  1272. end
  1273. end
  1274. return false
  1275. end
  1276.  
  1277. function CheckIntangible(Hit)
  1278. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  1279. if Hit and Hit.Parent then
  1280. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  1281. return true
  1282. end
  1283. end
  1284. return false
  1285. end
  1286.  
  1287. Debris = game:GetService("Debris")
  1288.  
  1289. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1290. local Direction = CFrame.new(StartPos, Vec).lookVector
  1291. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1292. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1293. if RayHit and CheckIntangible(RayHit) then
  1294. if DelayIfHit then
  1295. wait()
  1296. end
  1297. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1298. end
  1299. return RayHit, RayPos, RayNormal
  1300. end
  1301.  
  1302. function turnto(pos)
  1303. RootPart.CFrame = CF(RootPart.Position,VT(pos.X,RootPart.Position.Y,pos.Z))
  1304. end
  1305.  
  1306. function GraviBomb()
  1307. ATTACK = true
  1308. for i=0, 1, 0.1 / Animation_Speed do
  1309. Swait()
  1310. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  1311. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1312. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1313. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1314. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1315. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1316. end
  1317. MagicSphere(25,25,LeftArm.CFrame*CF(0,-1,0),"Dark indigo")
  1318. MagicSphere(20,25,LeftArm.CFrame*CF(0,-1,0),"Dark indigo")
  1319. coroutine.resume(coroutine.create(function()
  1320. local cframe = CF(Mouse.Hit.p)
  1321. local circle = CreateMagicCircle(75,true,0.05,120,cframe,false)
  1322. for i = 1, 5 do
  1323. CreateSound(CUTSOUNDS[MRANDOM(1, #CUTSOUNDS)], Effects, 2, 1)
  1324. local sphere = IT("Part",Effects)
  1325. sphere.Shape = "Ball"
  1326. sphere.Size = VT(50,50,50)
  1327. sphere.Anchored = true
  1328. sphere.CanCollide = false
  1329. sphere.Material = "Neon"
  1330. sphere.BrickColor = BRICKC("Dark indigo")
  1331. sphere.Transparency = 0
  1332. sphere.CFrame = cframe
  1333. for i = 1, 10 do
  1334. Swait(2)
  1335. attractnearest("Vector",cframe.p,75,50,10)
  1336. sphere.CFrame = cframe
  1337. sphere.Size = sphere.Size - VT(5,5,5)
  1338. sphere.CFrame = cframe
  1339. end
  1340. sphere:remove()
  1341. end
  1342. local scale = 5
  1343. coroutine.resume(coroutine.create(function()
  1344. CreateSound(RELEASESOUND, Effects, 2, 1)
  1345. MagicSphere(100,125,cframe,"Dark indigo")
  1346. MagicSphere(75,125,cframe,"Dark indigo")
  1347. CreateSwirl(180,6,true,0.3,225,circle,0,"Dark indigo")
  1348. CreateSwirl(180,4,true,0.3,225,circle,0,"Dark indigo")
  1349. CreateSwirl(180,2,true,0.3,225,circle,0,"Dark indigo")
  1350. for i = 1, 15 do
  1351. Swait()
  1352. killnearest(cframe.p,25,150)
  1353. end
  1354. end))
  1355. end))
  1356. for i=0, 1, 0.1 / Animation_Speed do
  1357. Swait()
  1358. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  1359. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1360. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1361. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1362. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1363. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1364. end
  1365. ATTACK = false
  1366. end
  1367.  
  1368. function GraviSpear()
  1369. ATTACK = true
  1370. for i=0, 1.5, 0.1 / Animation_Speed do
  1371. Swait()
  1372. turnto(Mouse.Hit.p)
  1373. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.4 / Animation_Speed)
  1374. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  1375. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1376. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1377. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1378. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1379. end
  1380. local spear = IT("Part",Effects)
  1381. spear.Anchored = true
  1382. spear.CanCollide = false
  1383. spear.Shape = "Ball"
  1384. spear.Size = VT(0,0,0)
  1385. spear.Material = "Neon"
  1386. spear.Transparency = 0.2
  1387. spear.BrickColor = BRICKC("Dark indigo")
  1388. spear.CFrame = RightArm.CFrame * CF(0,-4,0)
  1389. local inner = spear:Clone()
  1390. inner.Parent = spear
  1391. inner.Size = VT(0,0,0)
  1392. inner.BrickColor = BRICKC("Dark indigo")
  1393. inner.CFrame = spear.CFrame
  1394. for i = 1, 10 do
  1395. Swait()
  1396. turnto(Mouse.Hit.p)
  1397. spear.CFrame = RightArm.CFrame * CF(0,-4,0)
  1398. inner.CFrame = spear.CFrame
  1399. spear.Size = spear.Size + VT(0.4,0.4,0.4)
  1400. inner.Size = inner.Size + VT(0.35,0.35,0.35)
  1401. end
  1402. CreateParticles2(inner,VT(0,0,0),5,1,"Smoke",true,true,1,8)
  1403. MagicSphere(25,25,RightArm.CFrame*CF(0,-1,0),"Dark indigo")
  1404. MagicSphere(20,25,RightArm.CFrame*CF(0,-1,0),"Dark indigo")
  1405. CreateSound(CUTSOUNDS[MRANDOM(1, #CUTSOUNDS)], RightArm, 6, 1)
  1406. local bv = Instance.new("BodyVelocity")
  1407. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1408. bv.velocity = CF(spear.Position,Mouse.Hit.p).lookVector*65
  1409. bv.Parent = spear
  1410. bv.Name = "MOVE"
  1411. weldBetween(spear,inner)
  1412. spear.Anchored = false
  1413. inner.Anchored = false
  1414. local harm = spear.Touched:Connect(function(hit)
  1415. if hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
  1416. local cframe = spear.CFrame
  1417. coroutine.resume(coroutine.create(function()
  1418. spear.Parent = nil
  1419. coroutine.resume(coroutine.create(function()
  1420. CreateSound(RELEASESOUND, Effects, 2, 1)
  1421. MagicSphere(60,125,cframe,"Dark indigo")
  1422. MagicSphere(50,125,cframe,"Dark indigo")
  1423. CreateSwirl(0,6,true,0.3,125,spear,0,"Dark indigo")
  1424. CreateSwirl(0,4,true,0.3,125,spear,0,"Dark indigo")
  1425. CreateSwirl(0,2,true,0.3,125,spear,0,"Dark indigo")
  1426. for i = 1, 15 do
  1427. Swait()
  1428. killnearest(cframe.p,15,150)
  1429. end
  1430. end))
  1431. end))
  1432. end
  1433. end)
  1434. coroutine.resume(coroutine.create(function()
  1435. repeat
  1436. Swait()
  1437. CreateSwirl(0,2,true,0.3,25,spear,0,"Dark indigo")
  1438. attractnearest("Part",spear,65,70,5)
  1439. until spear.Parent == nil
  1440. end))
  1441. ATTACK = false
  1442. end
  1443.  
  1444. function WarpSpear()
  1445. ATTACK = true
  1446. for i=0, 1.5, 0.1 / Animation_Speed do
  1447. Swait()
  1448. turnto(Mouse.Hit.p)
  1449. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.4 / Animation_Speed)
  1450. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  1451. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1452. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1453. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1454. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1455. end
  1456. local spear = IT("Part",Effects)
  1457. spear.Anchored = true
  1458. spear.CanCollide = false
  1459. spear.Shape = "Ball"
  1460. spear.Size = VT(0,0,0)
  1461. spear.Material = "Neon"
  1462. spear.Transparency = 0.2
  1463. spear.BrickColor = BRICKC("Dark indigo")
  1464. spear.CFrame = RightArm.CFrame * CF(0,-4,0)
  1465. local inner = spear:Clone()
  1466. inner.Parent = spear
  1467. inner.Size = VT(0,0,0)
  1468. inner.BrickColor = BRICKC("Dark indigo")
  1469. inner.CFrame = spear.CFrame
  1470. for i = 1, 5 do
  1471. Swait()
  1472. turnto(Mouse.Hit.p)
  1473. spear.CFrame = RightArm.CFrame * CF(0,-4,0)
  1474. inner.CFrame = spear.CFrame
  1475. spear.Size = spear.Size + VT(0.4,0.4,0.4)
  1476. inner.Size = inner.Size + VT(0.35,0.35,0.35)
  1477. end
  1478. MagicSphere(25,25,RightArm.CFrame*CF(0,-1,0),"Dark indigo")
  1479. MagicSphere(20,25,RightArm.CFrame*CF(0,-1,0),"Dark indigo")
  1480. CreateSound(CUTSOUNDS[MRANDOM(1, #CUTSOUNDS)], RightArm, 6, 1)
  1481. local bv = Instance.new("BodyVelocity")
  1482. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1483. bv.velocity = CF(spear.Position,Mouse.Hit.p).lookVector*100
  1484. bv.Parent = spear
  1485. bv.Name = "MOVE"
  1486. weldBetween(spear,inner)
  1487. spear.Anchored = false
  1488. inner.Anchored = false
  1489. local HIT = false
  1490. local harm = spear.Touched:Connect(function(hit)
  1491. if HIT == false and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
  1492. local cframe = spear.CFrame
  1493. HIT = true
  1494. coroutine.resume(coroutine.create(function()
  1495. spear.Parent = nil
  1496. RootPart.CFrame = CF(spear.Position,Mouse.Hit.p)
  1497. coroutine.resume(coroutine.create(function()
  1498. CreateSound(RELEASESOUND, Effects, 2, 1.5)
  1499. MagicSphere(30,105,cframe,"Dark indigo")
  1500. MagicSphere(25,105,cframe,"Dark indigo")
  1501. for i = 1, 15 do
  1502. Swait()
  1503. killnearest(cframe.p,7.5,150)
  1504. end
  1505. end))
  1506. end))
  1507. end
  1508. end)
  1509. coroutine.resume(coroutine.create(function()
  1510. Swait(75)
  1511. if HIT == false then
  1512. local cframe = spear.CFrame
  1513. HIT = true
  1514. coroutine.resume(coroutine.create(function()
  1515. spear.Parent = nil
  1516. RootPart.CFrame = CF(spear.Position,Mouse.Hit.p)
  1517. coroutine.resume(coroutine.create(function()
  1518. CreateSound(RELEASESOUND, Effects, 2, 1.5)
  1519. MagicSphere(30,105,cframe,"Dark indigo")
  1520. MagicSphere(25,105,cframe,"Dark indigo")
  1521. for i = 1, 15 do
  1522. Swait()
  1523. killnearest(cframe.p,7.5,150)
  1524. end
  1525. end))
  1526. end))
  1527. end
  1528. end))
  1529. coroutine.resume(coroutine.create(function()
  1530. local loop = 0
  1531. repeat
  1532. Swait()
  1533. loop = loop + 1
  1534. if loop == 4 then
  1535. MagicSphere(25,15,spear.CFrame,"Dark indigo")
  1536. end
  1537. if loop == 7 then
  1538. loop = 0
  1539. MagicSphere(25,15,spear.CFrame,"Dark indigo")
  1540. end
  1541. attractnearest("Part",spear,12.5,50,5)
  1542. until spear.Parent == nil
  1543. end))
  1544. ATTACK = false
  1545. end
  1546.  
  1547. function GravityGlobe()
  1548. ATTACK = true
  1549. Rooted = true
  1550. for i=0, 1, 0.1 / Animation_Speed do
  1551. Swait()
  1552. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  1553. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1554. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1555. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1556. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1557. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1558. end
  1559. coroutine.resume(coroutine.create(function()
  1560. CreateMagicCircle(100,true,0.02,50,CF(RootPart.Position) * CF(0,-2.8,0),true)
  1561. local cframe = RootPart.CFrame
  1562. CreateSound(RELEASESOUND, Effects, 2, 1)
  1563. local sphere = IT("Part",Effects)
  1564. sphere.Shape = "Ball"
  1565. sphere.Size = VT(0,0,0)
  1566. sphere.Anchored = true
  1567. sphere.CanCollide = false
  1568. sphere.Material = "Neon"
  1569. sphere.Transparency = 0.5
  1570. sphere.BrickColor = BRICKC("Dark indigo")
  1571. sphere.CFrame = cframe
  1572. local sphere2 = IT("Part",Effects)
  1573. sphere2.Shape = "Ball"
  1574. sphere2.Size = VT(0,0,0)
  1575. sphere2.Anchored = true
  1576. sphere2.CanCollide = false
  1577. sphere2.Material = "Neon"
  1578. sphere2.Transparency = 0.3
  1579. sphere2.BrickColor = BRICKC("Dark indigo")
  1580. sphere2.CFrame = cframe
  1581. for i = 1, 10 do
  1582. Swait(2)
  1583. attractnearest("Vector",cframe.p,50,50,10)
  1584. sphere.CFrame = cframe
  1585. sphere.Size = sphere.Size + VT(4,4,4)
  1586. sphere2.CFrame = cframe
  1587. sphere2.Size = sphere2.Size + VT(3.5,3.5,3.5)
  1588. killnearest(cframe.p,15,0)
  1589. end
  1590. local scale = 0.2
  1591. local mode = "shrink"
  1592. for i = 1, 350 do
  1593. Swait()
  1594. if mode == "shrink" then
  1595. scale = scale + scale
  1596. if scale >= - 65 then
  1597. mode = "grow"
  1598. end
  1599. elseif mode == "grow" then
  1600. scale = scale + -scale*2
  1601. if scale <= - 65 then
  1602. mode = "shrink"
  1603. end
  1604. end
  1605. CreateRing(180,5,true,0,50,sphere,0,scale,scale,"Dark indigo")
  1606. sphere.Size = sphere.Size + VT(scale,scale,scale)
  1607. attractnearest("Vector",cframe.p,50,50,5)
  1608. killnearest(cframe.p,15,0)
  1609. end
  1610. for i = 1, 10 do
  1611. Swait(2)
  1612. sphere.CFrame = cframe
  1613. sphere.Size = sphere.Size - VT(5,5,5)
  1614. sphere.CFrame = cframe
  1615. sphere2.CFrame = cframe
  1616. sphere2.Size = sphere2.Size - VT(3.5,3.5,3.5)
  1617. end
  1618. sphere:remove()
  1619. sphere2:remove()
  1620. end))
  1621. for i=0, 1, 0.1 / Animation_Speed do
  1622. Swait()
  1623. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  1624. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1625. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1626. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1627. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1628. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1629. end
  1630. Rooted = false
  1631. ATTACK = false
  1632. end
  1633.  
  1634. function GravityBeam()
  1635. ATTACK = true
  1636. Rooted = true
  1637. for i=0, 1.5, 0.1 / Animation_Speed do
  1638. Swait()
  1639. turnto(Mouse.Hit.p)
  1640. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.4 / Animation_Speed)
  1641. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  1642. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1643. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1644. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1645. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1646. end
  1647. local startpos = RightArm.CFrame*CF(0,-1.5,0).p
  1648. local loop = 0
  1649. local loopsound = CreateSound(CHARGESOUND, RightArm, 10, 1, true)
  1650. local loopsound2 = CreateSound("487214658", Effects, 1, 0, true)
  1651. local pos = nil
  1652. repeat
  1653. if loop < 150 then
  1654. Swait()
  1655. loop = loop + 1
  1656. turnto(Mouse.Hit.p)
  1657. MagicSphere(15,25,RightArm.CFrame*CF(0,-1,0),"Dark indigo")
  1658. MagicSphere(12,25,RightArm.CFrame*CF(0,-1,0),"Dark indigo")
  1659. else
  1660. loopsound2.Pitch = 1
  1661. loopsound:Stop()
  1662. startpos = RightArm.CFrame*CF(0,-1.5,0).p
  1663. turnto(Mouse.Hit.p)
  1664. MagicSphere(35,25,CF(startpos),"Dark indigo")
  1665. MagicSphere(32,25,CF(startpos),"Dark indigo")
  1666. local RayHit, RayPos, RayNormal = CastZapRay(startpos, Mouse.Hit.p, 150, Character, false)
  1667. local distance = (startpos - RayPos).magnitude
  1668. local laser = Instance.new("Part",Effects)
  1669. laser.Transparency = 0.5
  1670. laser.CanCollide = false
  1671. laser.Anchored = true
  1672. laser.BrickColor = BrickColor.new("Dark indigo")
  1673. laser.Material = "Neon"
  1674. laser.formFactor = Enum.FormFactor.Custom
  1675. laser.Size = Vector3.new(2.5, 2.5, distance)
  1676. laser.CFrame = CFrame.new(startpos, RayPos) * CFrame.new(0, 0, -distance/2)
  1677. local laser2 = Instance.new("Part",Effects)
  1678. laser2.Transparency = 0
  1679. laser2.CanCollide = false
  1680. laser2.Anchored = true
  1681. laser2.BrickColor = BrickColor.new("Dark indigo")
  1682. laser2.Material = "Neon"
  1683. laser2.formFactor = Enum.FormFactor.Custom
  1684. laser2.Size = Vector3.new(2, 2, distance)
  1685. laser2.CFrame = CFrame.new(startpos, RayPos) * CFrame.new(0, 0, -distance/2)
  1686. killnearest(RayPos,5,150,true)
  1687. MagicSphere(350,2,CF(RayPos),"Dark indigo")
  1688. MagicSphere(320,2,CF(RayPos),"Dark indigo")
  1689. if RayHit ~= nil then
  1690. CreateWave(0,5,false,0,25,CF(RayPos),0,"Dark indigo")
  1691. end
  1692. attractnearest("Vector",RayPos,40,50,10)
  1693. pos = RayPos
  1694. Swait()
  1695. laser2:remove()
  1696. laser:remove()
  1697. end
  1698. until KEYHOLD == false
  1699. if loop == 150 then
  1700. local cframe = CF(pos)
  1701. coroutine.resume(coroutine.create(function()
  1702. coroutine.resume(coroutine.create(function()
  1703. CreateSound(RELEASESOUND, Effects, 2, 1)
  1704. MagicSphere(500,55,cframe,"Dark indigo")
  1705. MagicSphere(450,55,cframe,"Dark indigo")
  1706. for i = 1, 15 do
  1707. Swait()
  1708. killnearest(cframe.p,75,150)
  1709. end
  1710. end))
  1711. end))
  1712. end
  1713. loopsound2:remove()
  1714. loopsound:remove()
  1715. Rooted = false
  1716. ATTACK = false
  1717. end
  1718.  
  1719. --//=================================\\
  1720. --|| ASSIGN THINGS TO KEYS
  1721. --\\=================================//
  1722.  
  1723. Humanoid.Changed:connect(function(Jump)
  1724. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1725. Humanoid.Jump = false
  1726. end
  1727. end)
  1728.  
  1729. function MouseDown(Mouse)
  1730. if ATTACK == false then
  1731. end
  1732. end
  1733.  
  1734. function MouseUp(Mouse)
  1735. HOLD = false
  1736. end
  1737.  
  1738. function KeyDown(Key)
  1739. KEYHOLD = true
  1740. if Key == "q" and ATTACK == false then
  1741. GraviBomb()
  1742. end
  1743.  
  1744. if Key == "e" and ATTACK == false then
  1745. GraviSpear()
  1746. end
  1747.  
  1748. if Key == "r" and ATTACK == false then
  1749. GravityGlobe()
  1750. end
  1751.  
  1752. if Key == "g" and ATTACK == false then
  1753. GravityBeam()
  1754. end
  1755.  
  1756. if Key == "x" and ATTACK == false then
  1757. end
  1758.  
  1759. if Key == "c" and ATTACK == false then
  1760. WarpSpear()
  1761. end
  1762.  
  1763. if Key == "t" and ATTACK == false then
  1764. CreateSound("305685800", Head, 10, 1 ,false)
  1765. end
  1766. end
  1767.  
  1768. function KeyUp(Key)
  1769. KEYHOLD = false
  1770. end
  1771.  
  1772. Mouse.Button1Down:connect(function(NEWKEY)
  1773. MouseDown(NEWKEY)
  1774. end)
  1775. Mouse.Button1Up:connect(function(NEWKEY)
  1776. MouseUp(NEWKEY)
  1777. end)
  1778. Mouse.KeyDown:connect(function(NEWKEY)
  1779. KeyDown(NEWKEY)
  1780. end)
  1781. Mouse.KeyUp:connect(function(NEWKEY)
  1782. KeyUp(NEWKEY)
  1783. end)
  1784.  
  1785. --//=================================\\
  1786. --\\=================================//
  1787.  
  1788.  
  1789. function unanchor()
  1790. if UNANCHOR == true then
  1791. g = Character:GetChildren()
  1792. for i = 1, #g do
  1793. if g[i].ClassName == "Part" then
  1794. g[i].Anchored = false
  1795. end
  1796. end
  1797. end
  1798. end
  1799.  
  1800.  
  1801. --//=================================\\
  1802. --|| WRAP THE WHOLE SCRIPT UP
  1803. --\\=================================//
  1804.  
  1805. Humanoid.Changed:connect(function(Jump)
  1806. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1807. Humanoid.Jump = false
  1808. end
  1809. end)
  1810.  
  1811. ANIMATE.Parent = nil
  1812. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1813. IDLEANIMATION:Play()
  1814.  
  1815. while true do
  1816. Swait()
  1817. SINE = SINE + CHANGE
  1818. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1819. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1820. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1821. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1822. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1823. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1824. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1825. 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)
  1826. --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)
  1827. --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)
  1828. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1829. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1830. 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)
  1831. --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)
  1832. ----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)
  1833. end
  1834. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1835. ANIM = "Jump"
  1836. if ATTACK == false then
  1837. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1838. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1839. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1840. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1841. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1842. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1843. end
  1844. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1845. ANIM = "Fall"
  1846. if ATTACK == false then
  1847. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1848. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1849. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1850. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1851. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1852. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1853. end
  1854. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1855. ANIM = "Idle"
  1856. if ATTACK == false then
  1857. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1858. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1859. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1860. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1861. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1862. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1863. end
  1864. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1865. ANIM = "Walk"
  1866. WALK = WALK + 1 / Animation_Speed
  1867. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1868. WALK = 0
  1869. if WALKINGANIM == true then
  1870. WALKINGANIM = false
  1871. elseif WALKINGANIM == false then
  1872. WALKINGANIM = true
  1873. end
  1874. end
  1875. --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)
  1876. --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)
  1877. if ATTACK == false then
  1878. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed*3)
  1879. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1880. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1881. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1882. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1883. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1884. end
  1885. end
  1886. if #Effects2>0 then
  1887. for e=1,#Effects2 do
  1888. if Effects2[e]~=nil then
  1889. local Thing=Effects2[e]
  1890. if Thing~=nil then
  1891. local Part=Thing[1]
  1892. local Mode=Thing[2]
  1893. local Delay=Thing[3]
  1894. local IncX=Thing[4]
  1895. local IncY=Thing[5]
  1896. local IncZ=Thing[6]
  1897. local Part2=Thing[8]
  1898. if Thing[1].Transparency<=1 then
  1899. if Thing[2]=="Block1" then
  1900. Thing[1].CFrame=Thing[1].CFrame
  1901. Mesh=Thing[1].Mesh
  1902. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1903. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1904. elseif Thing[2]=="Cylinder" then
  1905. Mesh=Thing[1].Mesh
  1906. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1907. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1908. elseif Thing[2]=="Blood" then
  1909. Mesh=Thing[7]
  1910. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1911. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1912. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1913. elseif Thing[2]=="Elec" then
  1914. Mesh=Thing[1].Mesh
  1915. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1916. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1917. elseif Thing[2]=="Disappear" then
  1918. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1919. end
  1920. else
  1921. Part.Parent=nil
  1922. table.remove(Effects2,e)
  1923. end
  1924. end
  1925. end
  1926. end
  1927. end
  1928. unanchor()
  1929. Humanoid.MaxHealth = "inf"
  1930. Humanoid.Health = "inf"
  1931. if Rooted == false then
  1932. Disable_Jump = false
  1933. Humanoid.WalkSpeed = Speed
  1934. elseif Rooted == true then
  1935. Disable_Jump = true
  1936. Humanoid.WalkSpeed = 0
  1937. end
  1938. --CreateMagicCircle(2 ,false,0,3,LeftLeg.CFrame * CF(0,-1.2,0),true)
  1939. end
  1940.  
  1941. --//=================================\\
  1942. --\\=================================//
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948. --//====================================================\\--
  1949. --|| END OF SCRIPT
  1950. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement