Advertisement
StNight

STNIGHT PYRO

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