Code_X

Roblox Script Sun God

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