TrueSilverGaming

Untitled

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