ericdesouza

Dark Matter User script

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