Advertisement
TheInsaneScripter77

Sun God script

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