AlitraxMine

Untitled

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