DatOneTrap

Untitled

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