MarcAndrew

Untitled

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