Advertisement
Axelpuff

sunnyboi fe

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