Advertisement
Ephkyr

Magic

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