Advertisement
ScriptTesting123

Testing

Sep 27th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 123.88 KB | None | 0 0
  1. PASTEBIN
  2. GO
  3. API
  4. TOOLS
  5. FAQ
  6. paste
  7. ScriptTesting123
  8. FREE
  9. ScriptTesting123
  10.  
  11.  
  12. SHARE
  13. TWEET
  14. memberhero
  15. Deadly Laser Sun V3
  16. MEMBERHERO
  17. JAN 25TH, 2019
  18. 587
  19. NEVER
  20.  61.37 KB
  21.      
  22. --//====================================================\\--
  23. --||               CREATED BY SHACKLUSTER
  24. --\\====================================================//--
  25.  
  26. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  27. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  28. do
  29.     print("FE Compatibility code by Mokiros")
  30.     script.Parent = Player.Character
  31.  
  32.     --RemoteEvent for communicating
  33.     local Event = Instance.new("RemoteEvent")
  34.     Event.Name = "UserInput_Event"
  35.  
  36.     --Fake event to make stuff like Mouse.KeyDown work
  37.     local function fakeEvent()
  38.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  39.         t.connect = t.Connect
  40.         return t
  41.     end
  42.  
  43.     --Creating fake input objects with fake variables
  44.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  45.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  46.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  47.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  48.     end}
  49.     --Merged 2 functions into one by checking amount of arguments
  50.     CAS.UnbindAction = CAS.BindAction
  51.  
  52.     --This function will trigger the events that have been :Connect()'ed
  53.     local function te(self,ev,...)
  54.         local t = m[ev]
  55.         if t and t._fakeEvent and t.Function then
  56.             t.Function(...)
  57.         end
  58.     end
  59.     m.TrigEvent = te
  60.     UIS.TrigEvent = te
  61.  
  62.     Event.OnServerEvent:Connect(function(plr,io)
  63.         if plr~=Player then return end
  64.         if io.isMouse then
  65.             m.Target = io.Target
  66.             m.Hit = io.Hit
  67.         else
  68.             local b = io.UserInputState == Enum.UserInputState.Begin
  69.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  70.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  71.             end
  72.             for _,t in pairs(CAS.Actions) do
  73.                 for _,k in pairs(t.Keys) do
  74.                     if k==io.KeyCode then
  75.                         t.Function(t.Name,io.UserInputState,io)
  76.                     end
  77.                 end
  78.             end
  79.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  80.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  81.         end
  82.     end)
  83.     Event.Parent = NLS([==[
  84.     local Player = game:GetService("Players").LocalPlayer
  85.     local Event = script:WaitForChild("UserInput_Event")
  86.  
  87.     local UIS = game:GetService("UserInputService")
  88.     local input = function(io,a)
  89.         if a then return end
  90.         --Since InputObject is a client-side instance, we create and pass table instead
  91.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  92.     end
  93.     UIS.InputBegan:Connect(input)
  94.     UIS.InputEnded:Connect(input)
  95.  
  96.     local Mouse = Player:GetMouse()
  97.     local h,t
  98.     --Give the server mouse data 30 times every second, but only if the values changed
  99.     --If player is not moving their mouse, client won't fire events
  100.     while wait(1/30) do
  101.         if h~=Mouse.Hit or t~=Mouse.Target then
  102.             h,t=Mouse.Hit,Mouse.Target
  103.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  104.         end
  105.     end]==],Player.Character)
  106.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  107. end
  108. wait(0.2)
  109. print("VengefulProgram is sexy from dreamer no homo")
  110. Player = owner
  111. PlayerGui = Player.PlayerGui
  112. Cam = workspace.CurrentCamera
  113. Backpack = Player.Backpack
  114. Character = Player.Character
  115. Humanoid = Character.Humanoid
  116.  
  117. RootPart = Character["HumanoidRootPart"]
  118. Torso = Character["Torso"]
  119. Head = Character["Head"]
  120. RightArm = Character["Right Arm"]
  121. LeftArm = Character["Left Arm"]
  122. RightLeg = Character["Right Leg"]
  123. LeftLeg = Character["Left Leg"]
  124. RootJoint = RootPart["RootJoint"]
  125. Neck = Torso["Neck"]
  126. RightShoulder = Torso["Right Shoulder"]
  127. LeftShoulder = Torso["Left Shoulder"]
  128. RightHip = Torso["Right Hip"]
  129. LeftHip = Torso["Left Hip"]
  130.  
  131. IT = Instance.new
  132. CF = CFrame.new
  133. VT = Vector3.new
  134. RAD = math.rad
  135. C3 = Color3.new
  136. UD2 = UDim2.new
  137. BRICKC = BrickColor.new
  138. ANGLES = CFrame.Angles
  139. EULER = CFrame.fromEulerAnglesXYZ
  140. COS = math.cos
  141. ACOS = math.acos
  142. SIN = math.sin
  143. ASIN = math.asin
  144. ABS = math.abs
  145. MRANDOM = math.random
  146. FLOOR = math.floor
  147.  
  148. --//=================================\\
  149. --||          USEFUL VALUES
  150. --\\=================================//
  151.  
  152. Animation_Speed = 3
  153. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  154. local Speed = 16
  155. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  156. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  157. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  158. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  159. local DAMAGEMULTIPLIER = 1
  160. local ANIM = "Idle"
  161. local ATTACK = false
  162. local EQUIPPED = false
  163. local HOLD = false
  164. local COMBO = 1
  165. local Rooted = false
  166. local SINE = 0
  167. local KEYHOLD = false
  168. local CHANGE = 2 / Animation_Speed
  169. local WALKINGANIM = false
  170. local VALUE1 = false
  171. local VALUE2 = false
  172. local ROBLOXIDLEANIMATION = IT("Animation")
  173. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  174. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  175. --ROBLOXIDLEANIMATION.Parent = Humanoid
  176. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  177. WEAPONGUI.Name = "Weapon GUI"
  178. local Effects = IT("Folder", Character)
  179. Effects.Name = "Effects"
  180. local ANIMATOR = Humanoid.Animator
  181. local ANIMATE = Character.Animate
  182. local UNANCHOR = true
  183. local CUSTOMANGLES = true
  184.  
  185. --//=================================\\
  186. --\\=================================//
  187.  
  188.  
  189. --//=================================\\
  190. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  191. --\\=================================//
  192.  
  193. ArtificialHB = Instance.new("BindableEvent", script)
  194. ArtificialHB.Name = "ArtificialHB"
  195.  
  196. script:WaitForChild("ArtificialHB")
  197.  
  198. frame = Frame_Speed
  199. tf = 0
  200. allowframeloss = false
  201. tossremainder = false
  202. lastframe = tick()
  203. script.ArtificialHB:Fire()
  204.  
  205. game:GetService("RunService").Heartbeat:connect(function(s, p)
  206.     tf = tf + s
  207.     if tf >= frame then
  208.         if allowframeloss then
  209.             ArtificialHB:Fire()
  210.             lastframe = tick()
  211.         else
  212.             for i = 1, math.floor(tf / frame) do
  213.                 ArtificialHB:Fire()
  214.             end
  215.             lastframe = tick()
  216.         end
  217.         if tossremainder then
  218.             tf = 0
  219.         else
  220.             tf = tf - frame * math.floor(tf / frame)
  221.         end
  222.     end
  223. end)
  224.  
  225. --//=================================\\
  226. --\\=================================//
  227.  
  228. --//=================================\\
  229. --||          SOME FUNCTIONS
  230. --\\=================================//
  231.  
  232. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  233.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  234. end
  235.  
  236. function PositiveAngle(NUMBER)
  237.     if NUMBER >= 0 then
  238.         NUMBER = 0
  239.     end
  240.     return NUMBER
  241. end
  242.  
  243. function NegativeAngle(NUMBER)
  244.     if NUMBER <= 0 then
  245.         NUMBER = 0
  246.     end
  247.     return NUMBER
  248. end
  249.  
  250. function Swait(NUMBER)
  251.     if NUMBER == 0 or NUMBER == nil then
  252.         ArtificialHB.Event:wait()
  253.     else
  254.         for i = 1, NUMBER do
  255.             ArtificialHB.Event:wait()
  256.         end
  257.     end
  258. end
  259.  
  260. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  261.     local NEWMESH = IT(MESH)
  262.     if MESH == "SpecialMesh" then
  263.         NEWMESH.MeshType = MESHTYPE
  264.         if MESHID ~= "nil" and MESHID ~= "" then
  265.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  266.         end
  267.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  268.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  269.         end
  270.     end
  271.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  272.     NEWMESH.Scale = SCALE
  273.     NEWMESH.Parent = PARENT
  274.     return NEWMESH
  275. end
  276.  
  277. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  278.     local NEWPART = IT("Part")
  279.     NEWPART.formFactor = FORMFACTOR
  280.     NEWPART.Reflectance = REFLECTANCE
  281.     NEWPART.Transparency = TRANSPARENCY
  282.     NEWPART.CanCollide = false
  283.     NEWPART.Locked = true
  284.     NEWPART.Anchored = true
  285.     if ANCHOR == false then
  286.         NEWPART.Anchored = false
  287.     end
  288.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  289.     NEWPART.Name = NAME
  290.     NEWPART.Size = SIZE
  291.     NEWPART.Position = Torso.Position
  292.     NEWPART.Material = MATERIAL
  293.     NEWPART:BreakJoints()
  294.     NEWPART.Parent = PARENT
  295.     return NEWPART
  296. end
  297.  
  298.     local function weldBetween(a, b)
  299.         local weldd = Instance.new("ManualWeld")
  300.         weldd.Part0 = a
  301.         weldd.Part1 = b
  302.         weldd.C0 = CFrame.new()
  303.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  304.         weldd.Parent = a
  305.         return weldd
  306.     end
  307.  
  308.  
  309. function QuaternionFromCFrame(cf)
  310.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  311.     local trace = m00 + m11 + m22
  312.     if trace > 0 then
  313.         local s = math.sqrt(1 + trace)
  314.         local recip = 0.5 / s
  315.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  316.     else
  317.         local i = 0
  318.         if m11 > m00 then
  319.             i = 1
  320.         end
  321.         if m22 > (i == 0 and m00 or m11) then
  322.             i = 2
  323.         end
  324.         if i == 0 then
  325.             local s = math.sqrt(m00 - m11 - m22 + 1)
  326.             local recip = 0.5 / s
  327.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  328.         elseif i == 1 then
  329.             local s = math.sqrt(m11 - m22 - m00 + 1)
  330.             local recip = 0.5 / s
  331.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  332.         elseif i == 2 then
  333.             local s = math.sqrt(m22 - m00 - m11 + 1)
  334.             local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  335.         end
  336.     end
  337. end
  338.  
  339. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  340.     local xs, ys, zs = x + x, y + y, z + z
  341.     local wx, wy, wz = w * xs, w * ys, w * zs
  342.     local xx = x * xs
  343.     local xy = x * ys
  344.     local xz = x * zs
  345.     local yy = y * ys
  346.     local yz = y * zs
  347.     local zz = z * zs
  348.     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))
  349. end
  350.  
  351. function QuaternionSlerp(a, b, t)
  352.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  353.     local startInterp, finishInterp;
  354.     if cosTheta >= 0.0001 then
  355.         if (1 - cosTheta) > 0.0001 then
  356.             local theta = ACOS(cosTheta)
  357.             local invSinTheta = 1 / SIN(theta)
  358.             startInterp = SIN((1 - t) * theta) * invSinTheta
  359.             finishInterp = SIN(t * theta) * invSinTheta
  360.         else
  361.             startInterp = 1 - t
  362.             finishInterp = t
  363.         end
  364.     else
  365.         if (1 + cosTheta) > 0.0001 then
  366.             local theta = ACOS(-cosTheta)
  367.             local invSinTheta = 1 / SIN(theta)
  368.             startInterp = SIN((t - 1) * theta) * invSinTheta
  369.             finishInterp = SIN(t * theta) * invSinTheta
  370.         else
  371.             startInterp = t - 1
  372.             finishInterp = t
  373.         end
  374.     end
  375.     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
  376. end
  377.  
  378. function Clerp(a, b, t)
  379.     local qa = {QuaternionFromCFrame(a)}
  380.     local qb = {QuaternionFromCFrame(b)}
  381.     local ax, ay, az = a.x, a.y, a.z
  382.     local bx, by, bz = b.x, b.y, b.z
  383.     local _t = 1 - t
  384.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  385. end
  386.  
  387. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  388.     local frame = IT("Frame")
  389.     frame.BackgroundTransparency = TRANSPARENCY
  390.     frame.BorderSizePixel = BORDERSIZEPIXEL
  391.     frame.Position = POSITION
  392.     frame.Size = SIZE
  393.     frame.BackgroundColor3 = COLOR
  394.     frame.BorderColor3 = BORDERCOLOR
  395.     frame.Name = NAME
  396.     frame.Parent = PARENT
  397.     return frame
  398. end
  399.  
  400. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  401.     local label = IT("TextLabel")
  402.     label.BackgroundTransparency = 1
  403.     label.Size = UD2(1, 0, 1, 0)
  404.     label.Position = UD2(0, 0, 0, 0)
  405.     label.TextColor3 = TEXTCOLOR
  406.     label.TextStrokeTransparency = STROKETRANSPARENCY
  407.     label.TextTransparency = TRANSPARENCY
  408.     label.FontSize = TEXTFONTSIZE
  409.     label.Font = TEXTFONT
  410.     label.BorderSizePixel = BORDERSIZEPIXEL
  411.     label.TextScaled = false
  412.     label.Text = TEXT
  413.     label.Name = NAME
  414.     label.Parent = PARENT
  415.     return label
  416. end
  417.  
  418. function NoOutlines(PART)
  419.     PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  420. end
  421.  
  422. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  423.     local NEWWELD = IT(TYPE)
  424.     NEWWELD.Part0 = PART0
  425.     NEWWELD.Part1 = PART1
  426.     NEWWELD.C0 = C0
  427.     NEWWELD.C1 = C1
  428.     NEWWELD.Parent = PARENT
  429.     return NEWWELD
  430. end
  431.  
  432. local S = IT("Sound")
  433. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  434.     local NEWSOUND = nil
  435.     coroutine.resume(coroutine.create(function()
  436.         NEWSOUND = S:Clone()
  437.         NEWSOUND.Parent = PARENT
  438.         NEWSOUND.Volume = VOLUME
  439.         NEWSOUND.Pitch = PITCH
  440.         NEWSOUND.SoundId = "rbxassetid://"..ID
  441.         NEWSOUND:play()
  442.         if DOESLOOP == true then
  443.             NEWSOUND.Looped = true
  444.         else
  445.             repeat wait(1) until NEWSOUND.Playing == false
  446.             NEWSOUND:remove()
  447.         end
  448.     end))
  449.     return NEWSOUND
  450. end
  451.  
  452. function CFrameFromTopBack(at, top, back)
  453.     local right = top:Cross(back)
  454.     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)
  455. end
  456.  
  457. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  458. function WACKYEFFECT(Table)
  459.     local TYPE = (Table.EffectType or "Sphere")
  460.     local SIZE = (Table.Size or VT(1,1,1))
  461.     local ENDSIZE = (Table.Size2 or VT(0,0,0))
  462.     local TRANSPARENCY = (Table.Transparency or 0)
  463.     local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  464.     local CFRAME = (Table.CFrame or Torso.CFrame)
  465.     local MOVEDIRECTION = (Table.MoveToPos or nil)
  466.     local ROTATION1 = (Table.RotationX or 0)
  467.     local ROTATION2 = (Table.RotationY or 0)
  468.     local ROTATION3 = (Table.RotationZ or 0)
  469.     local MATERIAL = (Table.Material or "Neon")
  470.     local COLOR = (Table.Color or C3(1,1,1))
  471.     local TIME = (Table.Time or 45)
  472.     local SOUNDID = (Table.SoundID or nil)
  473.     local SOUNDPITCH = (Table.SoundPitch or nil)
  474.     local SOUNDVOLUME = (Table.SoundVolume or nil)
  475.     local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  476.     local BOOMERANG = (Table.Boomerang or 0)
  477.     local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  478.     coroutine.resume(coroutine.create(function()
  479.         local PLAYSSOUND = false
  480.         local SOUND = nil
  481.         local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  482.         if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  483.             PLAYSSOUND = true
  484.             SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  485.         end
  486.         EFFECT.Color = COLOR
  487.         local MSH = nil
  488.         if TYPE == "Sphere" then
  489.             MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  490.         elseif TYPE == "Block" or TYPE == "Box" then
  491.             MSH = IT("BlockMesh",EFFECT)
  492.             MSH.Scale = SIZE
  493.         elseif TYPE == "Wave" then
  494.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  495.         elseif TYPE == "Ring" then
  496.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  497.         elseif TYPE == "Slash" then
  498.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  499.         elseif TYPE == "Round Slash" then
  500.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  501.         elseif TYPE == "Swirl" then
  502.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  503.         elseif TYPE == "Skull" then
  504.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  505.         elseif TYPE == "Crystal" then
  506.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  507.         end
  508.         if MSH ~= nil then
  509.             local BOOMR1 = 1+BOOMERANG/50
  510.             local BOOMR2 = 1+SIZEBOOMERANG/50
  511.             local MOVESPEED = nil
  512.             if MOVEDIRECTION ~= nil then
  513.                 if USEBOOMERANGMATH == true then
  514.                     MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  515.                 else
  516.                     MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  517.                 end
  518.             end
  519.             local GROWTH = nil
  520.             if USEBOOMERANGMATH == true then
  521.                 GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  522.             else
  523.                 GROWTH = (SIZE - ENDSIZE)
  524.             end
  525.             local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  526.             if TYPE == "Block" then
  527.                 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  528.             else
  529.                 EFFECT.CFrame = CFRAME
  530.             end
  531.             if USEBOOMERANGMATH == true then
  532.                 for LOOP = 1, TIME+1 do
  533.                     Swait()
  534.                     MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  535.                     if TYPE == "Wave" then
  536.                         MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  537.                     end
  538.                     EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  539.                     if TYPE == "Block" then
  540.                         EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  541.                     else
  542.                         EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  543.                     end
  544.                     if MOVEDIRECTION ~= nil then
  545.                         local ORI = EFFECT.Orientation
  546.                         EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  547.                         EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  548.                     end
  549.                 end
  550.             else
  551.                 for LOOP = 1, TIME+1 do
  552.                     Swait()
  553.                     MSH.Scale = MSH.Scale - GROWTH/TIME
  554.                     if TYPE == "Wave" then
  555.                         MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  556.                     end
  557.                     EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  558.                     if TYPE == "Block" then
  559.                         EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  560.                     else
  561.                         EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  562.                     end
  563.                     if MOVEDIRECTION ~= nil then
  564.                         local ORI = EFFECT.Orientation
  565.                         EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  566.                         EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  567.                     end
  568.                 end
  569.             end
  570.             EFFECT.Transparency = 1
  571.             if PLAYSSOUND == false then
  572.                 EFFECT:remove()
  573.             else
  574.                 repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  575.                 EFFECT:remove()
  576.             end
  577.         else
  578.             if PLAYSSOUND == false then
  579.                 EFFECT:remove()
  580.             else
  581.                 repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  582.                 EFFECT:remove()
  583.             end
  584.         end
  585.     end))
  586. end
  587.  
  588. function MakeForm(PART,TYPE)
  589.     if TYPE == "Cyl" then
  590.         local MSH = IT("CylinderMesh",PART)
  591.     elseif TYPE == "Ball" then
  592.         local MSH = IT("SpecialMesh",PART)
  593.         MSH.MeshType = "Sphere"
  594.     elseif TYPE == "Wedge" then
  595.         local MSH = IT("SpecialMesh",PART)
  596.         MSH.MeshType = "Wedge"
  597.     end
  598. end
  599.  
  600. Debris = game:GetService("Debris")
  601.  
  602. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  603.     local DIRECTION = CF(StartPos,EndPos).lookVector
  604.     local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  605.     return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
  606. end
  607.  
  608. local Particle = IT("ParticleEmitter",nil)
  609. Particle.Enabled = false
  610. Particle.LightEmission = 0.8
  611. Particle.Rate = 150
  612. Particle.ZOffset = 1
  613. Particle.Rotation = NumberRange.new(-180, 180)
  614.  
  615. --ParticleEmitter({Speed = 2, RotSpeed = NumberRange.new(-5, 5), Drag = 0, Size1 = 1, Size2 = 0, Lifetime1 = 1, Lifetime2 = 0, Parent = Torso, Emit = 10, Offset = 360, Enabled = false, Color1 = C3(1,1,1), Color2 = C3(1,1,1), Texture = ""})
  616. function ParticleEmitter(Table)
  617.     local PRTCL = Particle:Clone()
  618.     local Color1 = Table.Color1 or C3(1,1,1)
  619.     local Color2 = Table.Color2 or C3(1,1,1)
  620.     local Speed = Table.Speed or 5
  621.     local Drag = Table.Drag or 0
  622.     local Size1 = Table.Size1 or 1
  623.     local Size2 = Table.Size2 or 5
  624.     local Lifetime1 = Table.Lifetime1 or 1
  625.     local Lifetime2 = Table.Lifetime2 or 1.5
  626.     local Parent = Table.Parent or Torso
  627.     local Emit = Table.Emit or 100
  628.     local Offset = Table.Offset or 360
  629.     local Acel = Table.Acel or VT(0,0,0)
  630.     local Enabled = Table.Enabled or false
  631.     local Texture = Table.Texture or "281983280"
  632.     local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
  633.     local Trans1 = Table.Transparency1 or 0
  634.     local Trans2 = Table.Transparency2 or 0
  635.     PRTCL.Parent = Parent
  636.     PRTCL.RotSpeed = RotS
  637.     PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
  638.     PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture
  639.     PRTCL.Color = ColorSequence.new(Color1,Color2)
  640.     PRTCL.Size = NumberSequence.new(Size1,Size2)
  641.     PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  642.     PRTCL.Speed = NumberRange.new(Speed)
  643.     PRTCL.VelocitySpread = Offset
  644.     PRTCL.Drag = Drag
  645.     PRTCL.Acceleration = Acel
  646.     if Enabled == false then
  647.         PRTCL:Emit(Emit)
  648.         Debris:AddItem(PRTCL,Lifetime2)
  649.     else
  650.         PRTCL.Enabled = true
  651.     end
  652.     return PRTCL
  653. end
  654.  
  655. function AttackGyro()
  656.     local GYRO = IT("BodyGyro",RootPart)
  657.     GYRO.D = 15
  658.     GYRO.P = 200000
  659.     GYRO.MaxTorque = VT(0,4000000,0)
  660.     GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  661.     coroutine.resume(coroutine.create(function()
  662.         repeat
  663.             Swait()
  664.             GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  665.         until ATTACK == false
  666.         GYRO:Remove()
  667.     end))
  668. end
  669.  
  670. --//=================================\\
  671. --||        GUIS AND MISC
  672. --\\=================================//
  673.  
  674. local CAMTYPE = Cam.CameraType
  675. Cam.CameraType = Enum.CameraType.Scriptable
  676.  
  677. local ATTACKS = {2035463713,2035463980,2035464212,2035464495}
  678.  
  679. local BMUSIC = IT("Sound",RootPart)
  680. local VOLUME = 4.5
  681. local PITCH = 1.15
  682. local SONGID = 904882921
  683. local INTROD = false
  684. local SUN = CreatePart(3, nil, "Neon", 0, 0, BRICKC("New Yeller"), "Sun", VT(17,17,17), true)
  685. MakeForm(SUN,"Ball")
  686. local SUNFLOAT = true
  687. local CUSTOMCAM = true
  688.  
  689. --//=================================\\
  690. --||            DAMAGING
  691. --\\=================================//
  692.  
  693. function ApplyAoE(POSITION,RANGE,FLING,KILLME)
  694.     for index, CHILD in pairs(workspace:GetDescendants()) do
  695.         if CHILD.ClassName == "Model" and CHILD ~= Character then
  696.             local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  697.             if HUM then
  698.                 local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  699.                 if TORSO and HUM.Health > 0 then
  700.                     if (TORSO.Position - POSITION).Magnitude <= RANGE then     
  701.                         CHILD:BreakJoints()
  702.                         local HED = CHILD:FindFirstChild("Head")
  703.                         if HED and MRANDOM(1,15) == 1 then
  704.                             CreateSound(527749592, HED, 4, MRANDOM(9,11)/10, false)
  705.                         end
  706.                         if FLING > 0 then
  707.                             for _, c in pairs(CHILD:GetChildren()) do
  708.                                 if c:IsA("BasePart") then
  709.                                     local bv = Instance.new("BodyVelocity")
  710.                                     bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  711.                                     bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  712.                                     bv.Parent = c
  713.                                     Debris:AddItem(bv,0.05)
  714.                                 end
  715.                             end
  716.                         end
  717.                     end
  718.                 end
  719.             end
  720.         end
  721.     end
  722.     if KILLME == true then
  723.         Character:BreakJoints()
  724.         for _, c in pairs(Character:GetChildren()) do
  725.             if c:IsA("BasePart") then
  726.                 local bv = Instance.new("BodyVelocity")
  727.                 bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  728.                 bv.velocity = CF(POSITION,c.Position).lookVector*FLING
  729.                 bv.Parent = c
  730.                 Debris:AddItem(bv,0.05)
  731.             end
  732.         end
  733.     end
  734. end
  735.  
  736. --//=================================\\
  737. --||    ATTACK FUNCTIONS AND STUFF
  738. --\\=================================//
  739.  
  740. function Intro()
  741.     ATTACK = true
  742.     Rooted = true
  743.     Humanoid.WalkSpeed = 0
  744.     Disable_Jump = true
  745.     local INTROSOUND = CreateSound(862484466, Effects, 6, 1, false)
  746.     coroutine.resume(coroutine.create(function()
  747.         repeat
  748.             Swait()
  749.             if CUSTOMANGLES == true then
  750.                 Cam.CFrame = Clerp(Cam.CFrame, Head.CFrame * CF(0,0,-4) * ANGLES(RAD(0), RAD(180), RAD(0)), 0.2)
  751.             end
  752.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  753.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  754.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  755.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  756.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-11), RAD(0), RAD(0)), 1 / Animation_Speed)
  757.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-11), RAD(0), RAD(0)), 1 / Animation_Speed)
  758.         until INTROSOUND.TimePosition >= 2.15
  759.         SUN.Parent = Effects
  760.         local CORE = IT("Attachment",SUN)
  761.         SUN.Color = C3(1,85/255,0)
  762.         SUN.CFrame = RootPart.CFrame*CF(0,-14,11)
  763.         local P = ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  764.         P.LockedToPart = true
  765.         P.Rate = 12
  766.         local P = ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  767.         P.Rate = 12
  768.         repeat
  769.             Swait()
  770.             SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,14,11),0.04)
  771.             local HITFLOOR,SUNPOS = Raycast(SUN.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 23, Character)
  772.             if HITFLOOR then
  773.                 local DISTANCE = (SUNPOS - SUN.Position).Magnitude
  774.                 local SIZE = (23 - DISTANCE)*2
  775.             end
  776.             if CUSTOMANGLES == true then
  777.                 Cam.CFrame = Clerp(Cam.CFrame, Head.CFrame * CF(0,5,-15) * ANGLES(RAD(5), RAD(180), RAD(0)), 0.2)
  778.             end
  779.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  780.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  781.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  782.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  783.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  784.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  785.         until ATTACK == false
  786.         CUSTOMCAM = false
  787.         for i = 1, #ATTACKS do
  788.             local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.65, 0, 0.95-(0.17*i), 0), UD2(0.26, 0, 0.17, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
  789.             local IMAGE = IT("ImageLabel",SKILLFRAME)
  790.             IMAGE.Size = UD2(1,0,1,0)
  791.             IMAGE.Image = "rbxassetid://"..ATTACKS[i]
  792.             IMAGE.BackgroundTransparency = 1
  793.             IMAGE.ImageTransparency = 1
  794.             for i = 1, 10 do
  795.                 Swait()
  796.                 IMAGE.ImageTransparency = IMAGE.ImageTransparency - 1/10
  797.             end
  798.         end
  799.     end))
  800.     repeat
  801.         Swait()
  802.         INTROSOUND.Parent = Effects
  803.     until INTROSOUND.Playing == false
  804.     INTROSOUND:Destroy()
  805.     ATTACK = false
  806.     Rooted = false
  807. end
  808. function DeadlyLaser()
  809.     CreateSound(811841430, SUN, 8, MRANDOM(7,13)/10, false)
  810.     local HIT,POS = CastProperRay(SUN.Position,Mouse.Hit.p,1000,Character)
  811.     local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Gold"), "Beam", VT(0,0,0), true)
  812.     BEAM.Color = SUN.Color
  813.     MakeForm(BEAM,"Cyl")
  814.     local DIST = (SUN.Position - POS).Magnitude
  815.     BEAM.Size = VT(0,DIST,0)
  816.     BEAM.CFrame = CF(SUN.Position,POS)*CF(0,0,-DIST/2) * ANGLES(RAD(90), RAD(0), RAD(0))
  817.     if HIT ~= nil then
  818.         if HIT.Parent.ClassName == "Model" then
  819.             if HIT.Parent:FindFirstChildOfClass("Humanoid") then
  820.                 if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
  821.                     local HED = HIT.Parent:FindFirstChild("Head")
  822.                     if HED and MRANDOM(1,15) == 1 then
  823.                         CreateSound(527749592, HED, 4, MRANDOM(9,11)/10, false)
  824.                     end
  825.                     HIT.Parent:BreakJoints()
  826.                 end
  827.             end
  828.         end
  829.     end
  830.     for i = 1, 15 do
  831.         Swait()
  832.         BEAM.Size = BEAM.Size + VT(0.25,0,0.25)
  833.         BEAM.Transparency = BEAM.Transparency + 1/15
  834.     end
  835.     BEAM:remove()
  836. end
  837. function SolarFlares()
  838.     ATTACK = true
  839.     Rooted = true
  840.     SUNFLOAT = false
  841.     CUSTOMCAM = true
  842.     for i=0, 1, 0.1 / Animation_Speed do
  843.         Swait()
  844.         if CUSTOMANGLES == true then
  845.             Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * ANGLES(RAD(-45), RAD(0), RAD(0))*CF(0,0,65), 0.1)
  846.         end
  847.         SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,18 + 4 * SIN(SINE / 12),0),0.035)
  848.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  849.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  850.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  851.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  852.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  853.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  854.     end
  855.     local CFRAME = RootPart.CFrame * ANGLES(RAD(-90), RAD(0), RAD(0))*CF(0,0,125)
  856.     coroutine.resume(coroutine.create(function()
  857.         repeat
  858.             Swait()
  859.             if CUSTOMANGLES == true then
  860.                 Cam.CFrame = Clerp(Cam.CFrame, CFRAME, 0.1)
  861.             end
  862.             SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,18 + 4 * SIN(SINE / 12),0),0.035)
  863.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  864.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  865.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.45 + 0.05 * SIN(SINE / 12), -0.45) * ANGLES(RAD(90), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  866.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.45 + 0.05 * SIN(SINE / 12), -0.45) * ANGLES(RAD(90), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  867.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  868.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  869.         until ATTACK == false
  870.     end))
  871.     AttackGyro()
  872.     wait(0.2)
  873.     for i = 1, 15 do
  874.         Swait()
  875.         coroutine.resume(coroutine.create(function()
  876.             local SPEED = MRANDOM(5,32)/10
  877.             local FLARE = CreatePart(3, Effects, "Neon", 0, 0, SUN.BrickColor, "Sun", VT(5,5,5), true)
  878.             FLARE.Color = C3(1,85/255,0)
  879.             MakeForm(FLARE,"Ball")
  880.             CreateSound(463598785, FLARE, 1.2, MRANDOM(7,13)/8, false)
  881.             FLARE.CFrame = CF(SUN.Position,Mouse.Hit.p) * ANGLES(RAD(MRANDOM(-5,5)*2), RAD(MRANDOM(-5,5)*2), RAD(0))
  882.             local P = ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  883.             for i = 1, 500 do
  884.                 Swait()
  885.                 P.Enabled = true
  886.                 local HIT,HITPOS = Raycast(FLARE.Position, FLARE.CFrame.lookVector, FLARE.Size.Z/2, Character)
  887.                 if HIT then
  888.                     break
  889.                 else
  890.                     FLARE.CFrame = FLARE.CFrame*CF(0,0,-SPEED)
  891.                     if MRANDOM(1,3) == 1 then
  892.                         WACKYEFFECT({Time = 25, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(0.025,0,0.025), Transparency = 0.85, Transparency2 = 1, CFrame = FLARE.CFrame*CF(0,0,-FLARE.Size.X/1.5) * ANGLES(RAD(90), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0.1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 45})
  893.                     end
  894.                 end
  895.             end
  896.             CreateSound(165970126, FLARE, 0.8, MRANDOM(7,13)/8, false)
  897.             CreateSound(174580476, FLARE, 1.6, MRANDOM(7,13)/10, false)
  898.             P.Enabled = false
  899.             ApplyAoE(FLARE.Position,14,125)
  900.             Debris:AddItem(FLARE,5)
  901.             FLARE.Transparency = 1
  902.             WACKYEFFECT({EffectType = "Sphere", Size = FLARE.Size, Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FLARE.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FLARE.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  903.             ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  904.         end))
  905.     end
  906.     wait(0.1)
  907.     CUSTOMCAM = false
  908.     SUNFLOAT = true
  909.     ATTACK = false
  910.     Rooted = false
  911. end
  912. function SolarSmash()
  913.     local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  914.     if HITFLOOR then
  915.         ATTACK = true
  916.         Rooted = false
  917.         CUSTOMCAM = true
  918.         SUNFLOAT = false
  919.         for i=0, 0.2, 0.1 / Animation_Speed do
  920.             Swait()
  921.             if CUSTOMANGLES == true then
  922.                 Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * ANGLES(RAD(-45), RAD(0), RAD(0))*CF(0,0,65), 0.1)
  923.             end
  924.             SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,18 + 4 * SIN(SINE / 12),6),0.035)
  925.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  926.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  927.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  928.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  929.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  930.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  931.         end
  932.         coroutine.resume(coroutine.create(function()
  933.             repeat
  934.                 Swait()
  935.                 if CUSTOMANGLES == true then
  936.                     Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * ANGLES(RAD(-75), RAD(0), RAD(0))*CF(0,6,65), 0.1)
  937.                 end
  938.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  939.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  940.                 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.45 + 0.05 * SIN(SINE / 12), -0.45) * ANGLES(RAD(35), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  941.                 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.45 + 0.05 * SIN(SINE / 12), -0.45) * ANGLES(RAD(35), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  942.                 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  943.                 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  944.             until ATTACK == false
  945.         end))
  946.         local CFRAME = RootPart.CFrame*CF(0,-2,-17)
  947.         for i = 1, 10 do
  948.             Swait()
  949.             SUN.CFrame = Clerp(SUN.CFrame,CFRAME, 0.25)
  950.         end
  951.         ApplyAoE(SUN.Position,65,225)
  952.         ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  953.         for i = 1, 8 do
  954.             WACKYEFFECT({Time = 30+(i*25), EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(120,0,120), Transparency = 0.6, Transparency2 = 1, CFrame = CF(SUN.Position-VT(0,5,0)) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0.1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22})
  955.         end
  956.         for i = 1, 5 do
  957.             WACKYEFFECT({Time = 50+(i*25), EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(1.5,0,1.5), Transparency = 0, Transparency2 = 1, CFrame = CF(SUN.Position-VT(0,5,0)) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0.1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 3})
  958.         end
  959.         WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = SUN.Size, Size2 = SUN.Size*6, Transparency = 0, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = 168513088, SoundPitch = 1, SoundVolume = 5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 3})
  960.         WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = SUN.Size, Size2 = SUN.Size*5.5, Transparency = 0, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = 201858144, SoundPitch = 1, SoundVolume = 3, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  961.         local bv = Instance.new("BodyVelocity")
  962.         bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  963.         bv.velocity = CF(CFRAME.p-VT(0,12,0),RootPart.Position).lookVector*125
  964.         bv.Parent = RootPart
  965.         Debris:AddItem(bv,0.02)
  966.         CUSTOMCAM = false
  967.         for i = 1, 5 do
  968.             Swait()
  969.             SUN.CFrame = Clerp(SUN.CFrame,CFRAME, 0.1)
  970.         end
  971.         SUNFLOAT = true
  972.         ATTACK = false
  973.         Rooted = false
  974.     end
  975. end
  976. function SolarEruption()
  977.     ATTACK = true
  978.     Rooted = true
  979.     CUSTOMCAM = true
  980.     local ANIMA = "HoldUp"
  981.     coroutine.resume(coroutine.create(function()
  982.         repeat
  983.             Swait()
  984.             if ANIMA == "HoldUp" then
  985.                 if CUSTOMANGLES == true then
  986.                     Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * ANGLES(RAD(-45), RAD(0), RAD(0))*CF(0,0,65), 0.1)
  987.                 end
  988.                 SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,28 + 4 * SIN(SINE / 12),6),0.035)
  989.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  990.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  991.                 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.85 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(160 + 3 * SIN(SINE / 12)), RAD(5), RAD(-15 + 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  992.                 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  993.                 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-11), RAD(0), RAD(0)), 1 / Animation_Speed)
  994.                 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-11), RAD(0), RAD(0)), 1 / Animation_Speed)
  995.             elseif ANIMA == "Fire" then
  996.                 if CUSTOMANGLES == true then
  997.                     Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * CF(0,135,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2)
  998.                 end
  999.                 SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,35,0),0.2)
  1000.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1001.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1002.                 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.65 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(170), RAD(5), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1003.                 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.65 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(170), RAD(-5), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1004.                 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  1005.                 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  1006.             end
  1007.         until ATTACK == false
  1008.     end))
  1009.     CreateSound(201858045, SUN, 1.8, MRANDOM(7,13)/10, false)
  1010.     CreateSound(278641993, SUN, 3, MRANDOM(7,13)/10, false)
  1011.     CreateSound(278641993, SUN, 2.5, MRANDOM(7,13)/10, false)
  1012.     for i = 1, 150 do
  1013.         Swait()
  1014.         WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(85,0,85), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.8, CFrame = CF(SUN.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  1015.         WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(45,45,45), Size2 = VT(0,0,0), Transparency = 0.95, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  1016.     end
  1017.     wait(0.1)
  1018.     UNANCHOR = false
  1019.     ANIMA = "Fire"
  1020.     wait(0.4)
  1021.     ApplyAoE(SUN.Position,25,75)
  1022.     WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SUN.Size, Size2 = SUN.Size*4, Transparency = 0, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 3})
  1023.     WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = SUN.Size, Size2 = SUN.Size*3.5, Transparency = 0, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = 401056199, SoundPitch = 1, SoundVolume = 7, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  1024.     coroutine.resume(coroutine.create(function()
  1025.         for i = 1, 32 do
  1026.             Swait()
  1027.             coroutine.resume(coroutine.create(function()
  1028.                 local FLARE = CreatePart(3, Effects, "Neon", 0, 0, SUN.BrickColor, "Sun", VT(5,5,5), false)
  1029.                 FLARE.CanCollide = true
  1030.                 FLARE.Color = C3(1,85/255,0)
  1031.                 MakeForm(FLARE,"Ball")
  1032.                 Debris:AddItem(FLARE,10)
  1033.                 CreateSound(463598785, FLARE, 1.2, MRANDOM(7,13)/8, false)
  1034.                 local P = ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  1035.                 FLARE.CFrame = CF(SUN.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1036.                 FLARE.Velocity = CF(SUN.Position,CF(SUN.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(-60,60),25,MRANDOM(-60,60)).p).lookVector*MRANDOM(25,250)
  1037.                 TOUCH = FLARE.Touched:Connect(function(TOC)
  1038.                     if TOC.Parent ~= Character and TOC.Parent.Parent ~= Character then
  1039.                         FLARE.Anchored = true
  1040.                         FLARE:ClearAllChildren()
  1041.                         CreateSound(165970126, FLARE, 0.8, MRANDOM(7,13)/8, false)
  1042.                         CreateSound(174580476, FLARE, 1.6, MRANDOM(7,13)/10, false)
  1043.                         FLARE.CanCollide = false
  1044.                         ApplyAoE(FLARE.Position,14,125)
  1045.                         FLARE.Transparency = 1
  1046.                         WACKYEFFECT({EffectType = "Sphere", Size = FLARE.Size, Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FLARE.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FLARE.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  1047.                         ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  1048.                         TOUCH:Disconnect()
  1049.                     end
  1050.                 end)
  1051.             end))
  1052.         end
  1053.     end))
  1054.     wait(1.5)
  1055.     UNANCHOR = true
  1056.     CUSTOMCAM = false
  1057.     ATTACK = false
  1058.     Rooted = false
  1059. end
  1060. function Nebula()
  1061.     ATTACK = true
  1062.     Rooted = false
  1063.     CUSTOMCAM = true
  1064.     local DEAD = false
  1065.     coroutine.resume(coroutine.create(function()
  1066.         while true do
  1067.             Swait()
  1068.             if DEAD == false then
  1069.                 if CUSTOMANGLES == true then
  1070.                     Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * CF(0,435,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.01)
  1071.                 end
  1072.                 SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,35,0),0.2)
  1073.             end
  1074.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1075.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1076.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.85 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(160), RAD(5), RAD(-15)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1077.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1078.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  1079.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  1080.         end
  1081.     end))
  1082.     wait(1)
  1083.     CreateSound(201858045, SUN, 1.8, MRANDOM(7,13)/10, false)
  1084.     CreateSound(278641993, SUN, 3, MRANDOM(7,13)/10, false)
  1085.     CreateSound(278641993, SUN, 2.5, MRANDOM(7,13)/10, false)
  1086.     for i = 1, 250 do
  1087.         Swait()
  1088.         WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(2,0,2), Size2 = VT(32,2.5,32), Transparency = 0.75, Transparency2 = 1, CFrame = CF(RootPart.CFrame*CF(0,-4,0).p) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22})
  1089.         WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(85,0,85), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.8, CFrame = CF(SUN.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  1090.         WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(45,45,45), Size2 = VT(0,0,0), Transparency = 0.95, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  1091.     end
  1092.     wait(1)
  1093.     for i = 1, 3 do
  1094.         wait(0.65)
  1095.         WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = SUN.Size, Size2 = VT(250,250,250), Transparency = 0.5, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = 852135845, SoundPitch = 1-(i/10), SoundVolume = 5, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  1096.     end
  1097.     wait(0.65)
  1098.     ApplyAoE(SUN.Position,9999999999999999,125,true)
  1099.     SUN:ClearAllChildren()
  1100.     SUN.Transparency = 1
  1101.     CreateSound(385545047, Effects, 2.5, 1.4, false)
  1102.     CreateSound(385545047, Effects, 2.5, 1, false)
  1103.     CreateSound(435742675, Effects, 2.5, 1.5, false)
  1104.     CreateSound(231917744, Effects, 2.5, 1.5, false)
  1105.     CreateSound(401056199, Effects, 2.5, 1, false)
  1106.     ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 25, Acel = VT(0,0,0), RotSpeed = NumberRange.new(5, 5), Drag = -1, Size1 = 5, Size2 = 6, Lifetime1 = 0.1, Lifetime2 = 1, Parent = SUN, Emit = 20, Offset = 180, Enabled = false, Color1 = C3(1,85/255,0), Color2 = BRICKC"Royal purple".Color, Texture = 296874871})
  1107.     for i = 1, 3 do
  1108.         WACKYEFFECT({Time = 175, EffectType = "Sphere", Size = SUN.Size, Size2 = VT(250,250,250)+(VT(i,i,i)*180), Transparency = 0.5, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = 1-(i/10), SoundVolume = 5, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  1109.     end
  1110.     for i = 1, 15 do
  1111.         WACKYEFFECT({Time = 100+(i*35), EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(120,5,120)+(VT(i,0,i)*70), Transparency = 0.6, Transparency2 = 1, CFrame = CF(SUN.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Pink".Color, SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22})
  1112.     end
  1113.     DEAD = true
  1114.     Cam.CameraType = CAMTYPE
  1115.     Cam.CameraSubject = Humanoid
  1116.     INTROD = false
  1117. end
  1118. function Taunt()
  1119.     ATTACK = true
  1120.     Rooted = true
  1121.     CUSTOMCAM = true
  1122.     CreateSound(160212768, Head, 10, 1, false)
  1123.     for i=0, 3, 0.1 / Animation_Speed do
  1124.         Swait()
  1125.         if CUSTOMANGLES == true then
  1126.             Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * CF(7,1.5,6) * ANGLES(RAD(-4), RAD(15), RAD(0)), 0.2)
  1127.         end
  1128.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed)
  1129.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(35)), 1 / Animation_Speed)
  1130.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1131.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3, 0.5 + 0.05 * SIN(SINE / 12), -0.3) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1132.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1133.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  1134.     end
  1135.     CUSTOMCAM = false
  1136.     ATTACK = false
  1137.     Rooted = false
  1138. end
  1139.  
  1140. --//=================================\\
  1141. --||      ASSIGN THINGS TO KEYS
  1142. --\\=================================//
  1143.  
  1144. function MouseDown(Mouse)
  1145.     if ATTACK == false then
  1146.         DeadlyLaser()
  1147.     end
  1148. end
  1149.  
  1150. function MouseUp(Mouse)
  1151. HOLD = false
  1152. end
  1153.  
  1154. function KeyDown(Key)
  1155.     KEYHOLD = true
  1156.     if Key == "z" and ATTACK == false then
  1157.         SolarFlares()
  1158.     end
  1159.  
  1160.     if Key == "c" and ATTACK == false then
  1161.         SolarSmash()
  1162.     end
  1163.  
  1164.     if Key == "v" and ATTACK == false then
  1165.         SolarEruption()
  1166.     end
  1167.  
  1168.     if Key == "x" and ATTACK == false then
  1169.         Nebula()
  1170.     end
  1171.  
  1172.     if Key == "t" and ATTACK == false then
  1173.         Taunt()
  1174.     end
  1175.  
  1176.     if Key == "q" and ATTACK == false then
  1177.         if CUSTOMANGLES == true then
  1178.             CUSTOMANGLES = false
  1179.             Cam.CameraSubject = Humanoid
  1180.         else
  1181.             CUSTOMANGLES = true
  1182.         end
  1183.     end
  1184. end
  1185.  
  1186. function KeyUp(Key)
  1187.     KEYHOLD = false
  1188. end
  1189.  
  1190.     Mouse.Button1Down:connect(function(NEWKEY)
  1191.         MouseDown(NEWKEY)
  1192.     end)
  1193.     Mouse.Button1Up:connect(function(NEWKEY)
  1194.         MouseUp(NEWKEY)
  1195.     end)
  1196.     Mouse.KeyDown:connect(function(NEWKEY)
  1197.         KeyDown(NEWKEY)
  1198.     end)
  1199.     Mouse.KeyUp:connect(function(NEWKEY)
  1200.         KeyUp(NEWKEY)
  1201.     end)
  1202.  
  1203. --//=================================\\
  1204. --\\=================================//
  1205.  
  1206. function unanchor()
  1207.     for _, c in pairs(Character:GetChildren()) do
  1208.         if c:IsA("BasePart") and c ~= RootPart then
  1209.             c.Anchored = false
  1210.         end
  1211.     end
  1212.     if UNANCHOR == true then
  1213.         RootPart.Anchored = false
  1214.     else
  1215.         RootPart.Anchored = true
  1216.     end
  1217. end
  1218.  
  1219. --//=================================\\
  1220. --||    WRAP THE WHOLE SCRIPT UP
  1221. --\\=================================//
  1222.  
  1223. Humanoid.Changed:connect(function(Jump)
  1224.     if Jump == "Jump" and (Disable_Jump == true) then
  1225.         Humanoid.Jump = false
  1226.     end
  1227. end)
  1228.  
  1229. while true do
  1230.     Swait()
  1231.     script.Parent = WEAPONGUI
  1232.     ANIMATE.Parent = nil
  1233.     for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1234.         v:Stop();
  1235.     end
  1236.     SINE = SINE + CHANGE
  1237.     local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1238.     local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1239.     local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1240.     local WALKSPEEDVALUE = 8 / (Humanoid.WalkSpeed / 16)
  1241.     if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1242.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.1 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1243.         Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1244.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  1245.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  1246.     elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1247.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1248.         Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1249.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
  1250.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
  1251.     end
  1252.     if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1253.         ANIM = "Jump"
  1254.         if ATTACK == false then
  1255.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1256.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1257.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1258.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1259.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1260.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1261.         end
  1262.     elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1263.         ANIM = "Fall"
  1264.         if ATTACK == false then
  1265.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1266.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1267.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1268.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1269.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1270.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1271.         end
  1272.     elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1273.         ANIM = "Idle"
  1274.         if ATTACK == false then
  1275.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed)
  1276.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(35)), 1 / Animation_Speed)
  1277.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1278.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1279.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1280.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  1281.         end
  1282.     elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1283.         ANIM = "Walk"
  1284.         if ATTACK == false then
  1285.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(5), RAD(0), RAD(-15-7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  1286.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(15+7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  1287.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1288.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1289.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(105), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1290.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1291.         end
  1292.     end
  1293.     unanchor()
  1294.     if INTROD == true then
  1295.         if SUNFLOAT == true then
  1296.             SUN.CFrame = Clerp(SUN.CFrame,Torso.CFrame*CF(0,14 + 4 * SIN(SINE / 12),11),0.035)
  1297.         end
  1298.         local HITFLOOR,SUNPOS = Raycast(SUN.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 23, Character)
  1299.         if HITFLOOR then
  1300.             local DISTANCE = (SUNPOS - SUN.Position).Magnitude
  1301.             local SIZE = (23 - DISTANCE)*2
  1302.         end
  1303.     end
  1304.     Humanoid.MaxHealth = 500
  1305.     Humanoid.Health = 500
  1306.     if Rooted == false then
  1307.         Disable_Jump = false
  1308.         Humanoid.WalkSpeed = Speed
  1309.     elseif Rooted == true then
  1310.         Disable_Jump = true
  1311.         Humanoid.WalkSpeed = 0
  1312.     end
  1313.     BMUSIC.SoundId = "rbxassetid://"..SONGID
  1314.     BMUSIC.Looped = true
  1315.     BMUSIC.Pitch = PITCH
  1316.     BMUSIC.Volume = VOLUME
  1317.     BMUSIC.Playing = INTROD
  1318.     if BMUSIC.Parent ~= RootPart then
  1319.         BMUSIC = IT("Sound",RootPart)
  1320.     end
  1321.     Humanoid.Name = "THE_SUN_IS_A_DEADLY_LASER"
  1322.     if INTROD == false and ATTACK == false then
  1323.         Intro()
  1324.         INTROD = true
  1325.     end
  1326.     local VELOC = -RootPart.RotVelocity.Y
  1327.     if VELOC < -35 then
  1328.         VELOC = -35
  1329.     elseif VELOC > 35 then
  1330.         VELOC = 35
  1331.     end
  1332.     if CUSTOMANGLES == true then
  1333.         Cam.CameraType = Enum.CameraType.Scriptable
  1334.         if CUSTOMCAM == false then
  1335.             Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * ANGLES(RAD(-5), RAD(0), RAD(VELOC)) * CF(12,7,25), 0.15)
  1336.         end
  1337.     else
  1338.         Cam.CameraType = CAMTYPE
  1339.     end
  1340. end
  1341.  
  1342. --//=================================\\
  1343. --\\=================================//
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349. --//====================================================\\--
  1350. --||                     END OF SCRIPT
  1351. --\\====================================================//--
  1352. RAW Paste Data
  1353. --//====================================================\\--
  1354. --||               CREATED BY SHACKLUSTER
  1355. --\\====================================================//--
  1356.  
  1357. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  1358. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  1359. do
  1360.     print("FE Compatibility code by Mokiros")
  1361.     script.Parent = Player.Character
  1362.  
  1363.     --RemoteEvent for communicating
  1364.     local Event = Instance.new("RemoteEvent")
  1365.     Event.Name = "UserInput_Event"
  1366.  
  1367.     --Fake event to make stuff like Mouse.KeyDown work
  1368.     local function fakeEvent()
  1369.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  1370.         t.connect = t.Connect
  1371.         return t
  1372.     end
  1373.  
  1374.     --Creating fake input objects with fake variables
  1375.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  1376.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  1377.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  1378.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  1379.     end}
  1380.     --Merged 2 functions into one by checking amount of arguments
  1381.     CAS.UnbindAction = CAS.BindAction
  1382.  
  1383.     --This function will trigger the events that have been :Connect()'ed
  1384.     local function te(self,ev,...)
  1385.         local t = m[ev]
  1386.         if t and t._fakeEvent and t.Function then
  1387.             t.Function(...)
  1388.         end
  1389.     end
  1390.     m.TrigEvent = te
  1391.     UIS.TrigEvent = te
  1392.  
  1393.     Event.OnServerEvent:Connect(function(plr,io)
  1394.         if plr~=Player then return end
  1395.         if io.isMouse then
  1396.             m.Target = io.Target
  1397.             m.Hit = io.Hit
  1398.         else
  1399.             local b = io.UserInputState == Enum.UserInputState.Begin
  1400.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  1401.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  1402.             end
  1403.             for _,t in pairs(CAS.Actions) do
  1404.                 for _,k in pairs(t.Keys) do
  1405.                     if k==io.KeyCode then
  1406.                         t.Function(t.Name,io.UserInputState,io)
  1407.                     end
  1408.                 end
  1409.             end
  1410.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  1411.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  1412.         end
  1413.     end)
  1414.     Event.Parent = NLS([==[
  1415.     local Player = game:GetService("Players").LocalPlayer
  1416.     local Event = script:WaitForChild("UserInput_Event")
  1417.  
  1418.     local UIS = game:GetService("UserInputService")
  1419.     local input = function(io,a)
  1420.         if a then return end
  1421.         --Since InputObject is a client-side instance, we create and pass table instead
  1422.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  1423.     end
  1424.     UIS.InputBegan:Connect(input)
  1425.     UIS.InputEnded:Connect(input)
  1426.  
  1427.     local Mouse = Player:GetMouse()
  1428.     local h,t
  1429.     --Give the server mouse data 30 times every second, but only if the values changed
  1430.     --If player is not moving their mouse, client won't fire events
  1431.     while wait(1/30) do
  1432.         if h~=Mouse.Hit or t~=Mouse.Target then
  1433.             h,t=Mouse.Hit,Mouse.Target
  1434.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  1435.         end
  1436.     end]==],Player.Character)
  1437.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  1438. end
  1439. wait(0.2)
  1440. print("VengefulProgram is sexy from dreamer no homo")
  1441. Player = owner
  1442. PlayerGui = Player.PlayerGui
  1443. Cam = workspace.CurrentCamera
  1444. Backpack = Player.Backpack
  1445. Character = Player.Character
  1446. Humanoid = Character.Humanoid
  1447.  
  1448. RootPart = Character["HumanoidRootPart"]
  1449. Torso = Character["Torso"]
  1450. Head = Character["Head"]
  1451. RightArm = Character["Right Arm"]
  1452. LeftArm = Character["Left Arm"]
  1453. RightLeg = Character["Right Leg"]
  1454. LeftLeg = Character["Left Leg"]
  1455. RootJoint = RootPart["RootJoint"]
  1456. Neck = Torso["Neck"]
  1457. RightShoulder = Torso["Right Shoulder"]
  1458. LeftShoulder = Torso["Left Shoulder"]
  1459. RightHip = Torso["Right Hip"]
  1460. LeftHip = Torso["Left Hip"]
  1461.  
  1462. IT = Instance.new
  1463. CF = CFrame.new
  1464. VT = Vector3.new
  1465. RAD = math.rad
  1466. C3 = Color3.new
  1467. UD2 = UDim2.new
  1468. BRICKC = BrickColor.new
  1469. ANGLES = CFrame.Angles
  1470. EULER = CFrame.fromEulerAnglesXYZ
  1471. COS = math.cos
  1472. ACOS = math.acos
  1473. SIN = math.sin
  1474. ASIN = math.asin
  1475. ABS = math.abs
  1476. MRANDOM = math.random
  1477. FLOOR = math.floor
  1478.  
  1479. --//=================================\\
  1480. --||          USEFUL VALUES
  1481. --\\=================================//
  1482.  
  1483. Animation_Speed = 3
  1484. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  1485. local Speed = 16
  1486. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1487. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1488. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  1489. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  1490. local DAMAGEMULTIPLIER = 1
  1491. local ANIM = "Idle"
  1492. local ATTACK = false
  1493. local EQUIPPED = false
  1494. local HOLD = false
  1495. local COMBO = 1
  1496. local Rooted = false
  1497. local SINE = 0
  1498. local KEYHOLD = false
  1499. local CHANGE = 2 / Animation_Speed
  1500. local WALKINGANIM = false
  1501. local VALUE1 = false
  1502. local VALUE2 = false
  1503. local ROBLOXIDLEANIMATION = IT("Animation")
  1504. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1505. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1506. --ROBLOXIDLEANIMATION.Parent = Humanoid
  1507. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  1508. WEAPONGUI.Name = "Weapon GUI"
  1509. local Effects = IT("Folder", Character)
  1510. Effects.Name = "Effects"
  1511. local ANIMATOR = Humanoid.Animator
  1512. local ANIMATE = Character.Animate
  1513. local UNANCHOR = true
  1514. local CUSTOMANGLES = true
  1515.  
  1516. --//=================================\\
  1517. --\\=================================//
  1518.  
  1519.  
  1520. --//=================================\\
  1521. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  1522. --\\=================================//
  1523.  
  1524. ArtificialHB = Instance.new("BindableEvent", script)
  1525. ArtificialHB.Name = "ArtificialHB"
  1526.  
  1527. script:WaitForChild("ArtificialHB")
  1528.  
  1529. frame = Frame_Speed
  1530. tf = 0
  1531. allowframeloss = false
  1532. tossremainder = false
  1533. lastframe = tick()
  1534. script.ArtificialHB:Fire()
  1535.  
  1536. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1537.     tf = tf + s
  1538.     if tf >= frame then
  1539.         if allowframeloss then
  1540.             ArtificialHB:Fire()
  1541.             lastframe = tick()
  1542.         else
  1543.             for i = 1, math.floor(tf / frame) do
  1544.                 ArtificialHB:Fire()
  1545.             end
  1546.             lastframe = tick()
  1547.         end
  1548.         if tossremainder then
  1549.             tf = 0
  1550.         else
  1551.             tf = tf - frame * math.floor(tf / frame)
  1552.         end
  1553.     end
  1554. end)
  1555.  
  1556. --//=================================\\
  1557. --\\=================================//
  1558.  
  1559. --//=================================\\
  1560. --||          SOME FUNCTIONS
  1561. --\\=================================//
  1562.  
  1563. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1564.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1565. end
  1566.  
  1567. function PositiveAngle(NUMBER)
  1568.     if NUMBER >= 0 then
  1569.         NUMBER = 0
  1570.     end
  1571.     return NUMBER
  1572. end
  1573.  
  1574. function NegativeAngle(NUMBER)
  1575.     if NUMBER <= 0 then
  1576.         NUMBER = 0
  1577.     end
  1578.     return NUMBER
  1579. end
  1580.  
  1581. function Swait(NUMBER)
  1582.     if NUMBER == 0 or NUMBER == nil then
  1583.         ArtificialHB.Event:wait()
  1584.     else
  1585.         for i = 1, NUMBER do
  1586.             ArtificialHB.Event:wait()
  1587.         end
  1588.     end
  1589. end
  1590.  
  1591. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1592.     local NEWMESH = IT(MESH)
  1593.     if MESH == "SpecialMesh" then
  1594.         NEWMESH.MeshType = MESHTYPE
  1595.         if MESHID ~= "nil" and MESHID ~= "" then
  1596.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1597.         end
  1598.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1599.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1600.         end
  1601.     end
  1602.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1603.     NEWMESH.Scale = SCALE
  1604.     NEWMESH.Parent = PARENT
  1605.     return NEWMESH
  1606. end
  1607.  
  1608. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1609.     local NEWPART = IT("Part")
  1610.     NEWPART.formFactor = FORMFACTOR
  1611.     NEWPART.Reflectance = REFLECTANCE
  1612.     NEWPART.Transparency = TRANSPARENCY
  1613.     NEWPART.CanCollide = false
  1614.     NEWPART.Locked = true
  1615.     NEWPART.Anchored = true
  1616.     if ANCHOR == false then
  1617.         NEWPART.Anchored = false
  1618.     end
  1619.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1620.     NEWPART.Name = NAME
  1621.     NEWPART.Size = SIZE
  1622.     NEWPART.Position = Torso.Position
  1623.     NEWPART.Material = MATERIAL
  1624.     NEWPART:BreakJoints()
  1625.     NEWPART.Parent = PARENT
  1626.     return NEWPART
  1627. end
  1628.  
  1629.     local function weldBetween(a, b)
  1630.         local weldd = Instance.new("ManualWeld")
  1631.         weldd.Part0 = a
  1632.         weldd.Part1 = b
  1633.         weldd.C0 = CFrame.new()
  1634.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  1635.         weldd.Parent = a
  1636.         return weldd
  1637.     end
  1638.  
  1639.  
  1640. function QuaternionFromCFrame(cf)
  1641.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1642.     local trace = m00 + m11 + m22
  1643.     if trace > 0 then
  1644.         local s = math.sqrt(1 + trace)
  1645.         local recip = 0.5 / s
  1646.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1647.     else
  1648.         local i = 0
  1649.         if m11 > m00 then
  1650.             i = 1
  1651.         end
  1652.         if m22 > (i == 0 and m00 or m11) then
  1653.             i = 2
  1654.         end
  1655.         if i == 0 then
  1656.             local s = math.sqrt(m00 - m11 - m22 + 1)
  1657.             local recip = 0.5 / s
  1658.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1659.         elseif i == 1 then
  1660.             local s = math.sqrt(m11 - m22 - m00 + 1)
  1661.             local recip = 0.5 / s
  1662.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1663.         elseif i == 2 then
  1664.             local s = math.sqrt(m22 - m00 - m11 + 1)
  1665.             local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1666.         end
  1667.     end
  1668. end
  1669.  
  1670. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1671.     local xs, ys, zs = x + x, y + y, z + z
  1672.     local wx, wy, wz = w * xs, w * ys, w * zs
  1673.     local xx = x * xs
  1674.     local xy = x * ys
  1675.     local xz = x * zs
  1676.     local yy = y * ys
  1677.     local yz = y * zs
  1678.     local zz = z * zs
  1679.     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))
  1680. end
  1681.  
  1682. function QuaternionSlerp(a, b, t)
  1683.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1684.     local startInterp, finishInterp;
  1685.     if cosTheta >= 0.0001 then
  1686.         if (1 - cosTheta) > 0.0001 then
  1687.             local theta = ACOS(cosTheta)
  1688.             local invSinTheta = 1 / SIN(theta)
  1689.             startInterp = SIN((1 - t) * theta) * invSinTheta
  1690.             finishInterp = SIN(t * theta) * invSinTheta
  1691.         else
  1692.             startInterp = 1 - t
  1693.             finishInterp = t
  1694.         end
  1695.     else
  1696.         if (1 + cosTheta) > 0.0001 then
  1697.             local theta = ACOS(-cosTheta)
  1698.             local invSinTheta = 1 / SIN(theta)
  1699.             startInterp = SIN((t - 1) * theta) * invSinTheta
  1700.             finishInterp = SIN(t * theta) * invSinTheta
  1701.         else
  1702.             startInterp = t - 1
  1703.             finishInterp = t
  1704.         end
  1705.     end
  1706.     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
  1707. end
  1708.  
  1709. function Clerp(a, b, t)
  1710.     local qa = {QuaternionFromCFrame(a)}
  1711.     local qb = {QuaternionFromCFrame(b)}
  1712.     local ax, ay, az = a.x, a.y, a.z
  1713.     local bx, by, bz = b.x, b.y, b.z
  1714.     local _t = 1 - t
  1715.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1716. end
  1717.  
  1718. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1719.     local frame = IT("Frame")
  1720.     frame.BackgroundTransparency = TRANSPARENCY
  1721.     frame.BorderSizePixel = BORDERSIZEPIXEL
  1722.     frame.Position = POSITION
  1723.     frame.Size = SIZE
  1724.     frame.BackgroundColor3 = COLOR
  1725.     frame.BorderColor3 = BORDERCOLOR
  1726.     frame.Name = NAME
  1727.     frame.Parent = PARENT
  1728.     return frame
  1729. end
  1730.  
  1731. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1732.     local label = IT("TextLabel")
  1733.     label.BackgroundTransparency = 1
  1734.     label.Size = UD2(1, 0, 1, 0)
  1735.     label.Position = UD2(0, 0, 0, 0)
  1736.     label.TextColor3 = TEXTCOLOR
  1737.     label.TextStrokeTransparency = STROKETRANSPARENCY
  1738.     label.TextTransparency = TRANSPARENCY
  1739.     label.FontSize = TEXTFONTSIZE
  1740.     label.Font = TEXTFONT
  1741.     label.BorderSizePixel = BORDERSIZEPIXEL
  1742.     label.TextScaled = false
  1743.     label.Text = TEXT
  1744.     label.Name = NAME
  1745.     label.Parent = PARENT
  1746.     return label
  1747. end
  1748.  
  1749. function NoOutlines(PART)
  1750.     PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1751. end
  1752.  
  1753. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1754.     local NEWWELD = IT(TYPE)
  1755.     NEWWELD.Part0 = PART0
  1756.     NEWWELD.Part1 = PART1
  1757.     NEWWELD.C0 = C0
  1758.     NEWWELD.C1 = C1
  1759.     NEWWELD.Parent = PARENT
  1760.     return NEWWELD
  1761. end
  1762.  
  1763. local S = IT("Sound")
  1764. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1765.     local NEWSOUND = nil
  1766.     coroutine.resume(coroutine.create(function()
  1767.         NEWSOUND = S:Clone()
  1768.         NEWSOUND.Parent = PARENT
  1769.         NEWSOUND.Volume = VOLUME
  1770.         NEWSOUND.Pitch = PITCH
  1771.         NEWSOUND.SoundId = "rbxassetid://"..ID
  1772.         NEWSOUND:play()
  1773.         if DOESLOOP == true then
  1774.             NEWSOUND.Looped = true
  1775.         else
  1776.             repeat wait(1) until NEWSOUND.Playing == false
  1777.             NEWSOUND:remove()
  1778.         end
  1779.     end))
  1780.     return NEWSOUND
  1781. end
  1782.  
  1783. function CFrameFromTopBack(at, top, back)
  1784.     local right = top:Cross(back)
  1785.     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)
  1786. end
  1787.  
  1788. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  1789. function WACKYEFFECT(Table)
  1790.     local TYPE = (Table.EffectType or "Sphere")
  1791.     local SIZE = (Table.Size or VT(1,1,1))
  1792.     local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1793.     local TRANSPARENCY = (Table.Transparency or 0)
  1794.     local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1795.     local CFRAME = (Table.CFrame or Torso.CFrame)
  1796.     local MOVEDIRECTION = (Table.MoveToPos or nil)
  1797.     local ROTATION1 = (Table.RotationX or 0)
  1798.     local ROTATION2 = (Table.RotationY or 0)
  1799.     local ROTATION3 = (Table.RotationZ or 0)
  1800.     local MATERIAL = (Table.Material or "Neon")
  1801.     local COLOR = (Table.Color or C3(1,1,1))
  1802.     local TIME = (Table.Time or 45)
  1803.     local SOUNDID = (Table.SoundID or nil)
  1804.     local SOUNDPITCH = (Table.SoundPitch or nil)
  1805.     local SOUNDVOLUME = (Table.SoundVolume or nil)
  1806.     local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  1807.     local BOOMERANG = (Table.Boomerang or 0)
  1808.     local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  1809.     coroutine.resume(coroutine.create(function()
  1810.         local PLAYSSOUND = false
  1811.         local SOUND = nil
  1812.         local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1813.         if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1814.             PLAYSSOUND = true
  1815.             SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1816.         end
  1817.         EFFECT.Color = COLOR
  1818.         local MSH = nil
  1819.         if TYPE == "Sphere" then
  1820.             MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1821.         elseif TYPE == "Block" or TYPE == "Box" then
  1822.             MSH = IT("BlockMesh",EFFECT)
  1823.             MSH.Scale = SIZE
  1824.         elseif TYPE == "Wave" then
  1825.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1826.         elseif TYPE == "Ring" then
  1827.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1828.         elseif TYPE == "Slash" then
  1829.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1830.         elseif TYPE == "Round Slash" then
  1831.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1832.         elseif TYPE == "Swirl" then
  1833.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  1834.         elseif TYPE == "Skull" then
  1835.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1836.         elseif TYPE == "Crystal" then
  1837.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1838.         end
  1839.         if MSH ~= nil then
  1840.             local BOOMR1 = 1+BOOMERANG/50
  1841.             local BOOMR2 = 1+SIZEBOOMERANG/50
  1842.             local MOVESPEED = nil
  1843.             if MOVEDIRECTION ~= nil then
  1844.                 if USEBOOMERANGMATH == true then
  1845.                     MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  1846.                 else
  1847.                     MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  1848.                 end
  1849.             end
  1850.             local GROWTH = nil
  1851.             if USEBOOMERANGMATH == true then
  1852.                 GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  1853.             else
  1854.                 GROWTH = (SIZE - ENDSIZE)
  1855.             end
  1856.             local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1857.             if TYPE == "Block" then
  1858.                 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1859.             else
  1860.                 EFFECT.CFrame = CFRAME
  1861.             end
  1862.             if USEBOOMERANGMATH == true then
  1863.                 for LOOP = 1, TIME+1 do
  1864.                     Swait()
  1865.                     MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  1866.                     if TYPE == "Wave" then
  1867.                         MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  1868.                     end
  1869.                     EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1870.                     if TYPE == "Block" then
  1871.                         EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1872.                     else
  1873.                         EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1874.                     end
  1875.                     if MOVEDIRECTION ~= nil then
  1876.                         local ORI = EFFECT.Orientation
  1877.                         EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  1878.                         EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  1879.                     end
  1880.                 end
  1881.             else
  1882.                 for LOOP = 1, TIME+1 do
  1883.                     Swait()
  1884.                     MSH.Scale = MSH.Scale - GROWTH/TIME
  1885.                     if TYPE == "Wave" then
  1886.                         MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  1887.                     end
  1888.                     EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1889.                     if TYPE == "Block" then
  1890.                         EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1891.                     else
  1892.                         EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1893.                     end
  1894.                     if MOVEDIRECTION ~= nil then
  1895.                         local ORI = EFFECT.Orientation
  1896.                         EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1897.                         EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  1898.                     end
  1899.                 end
  1900.             end
  1901.             EFFECT.Transparency = 1
  1902.             if PLAYSSOUND == false then
  1903.                 EFFECT:remove()
  1904.             else
  1905.                 repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  1906.                 EFFECT:remove()
  1907.             end
  1908.         else
  1909.             if PLAYSSOUND == false then
  1910.                 EFFECT:remove()
  1911.             else
  1912.                 repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  1913.                 EFFECT:remove()
  1914.             end
  1915.         end
  1916.     end))
  1917. end
  1918.  
  1919. function MakeForm(PART,TYPE)
  1920.     if TYPE == "Cyl" then
  1921.         local MSH = IT("CylinderMesh",PART)
  1922.     elseif TYPE == "Ball" then
  1923.         local MSH = IT("SpecialMesh",PART)
  1924.         MSH.MeshType = "Sphere"
  1925.     elseif TYPE == "Wedge" then
  1926.         local MSH = IT("SpecialMesh",PART)
  1927.         MSH.MeshType = "Wedge"
  1928.     end
  1929. end
  1930.  
  1931. Debris = game:GetService("Debris")
  1932.  
  1933. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1934.     local DIRECTION = CF(StartPos,EndPos).lookVector
  1935.     local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1936.     return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
  1937. end
  1938.  
  1939. local Particle = IT("ParticleEmitter",nil)
  1940. Particle.Enabled = false
  1941. Particle.LightEmission = 0.8
  1942. Particle.Rate = 150
  1943. Particle.ZOffset = 1
  1944. Particle.Rotation = NumberRange.new(-180, 180)
  1945.  
  1946. --ParticleEmitter({Speed = 2, RotSpeed = NumberRange.new(-5, 5), Drag = 0, Size1 = 1, Size2 = 0, Lifetime1 = 1, Lifetime2 = 0, Parent = Torso, Emit = 10, Offset = 360, Enabled = false, Color1 = C3(1,1,1), Color2 = C3(1,1,1), Texture = ""})
  1947. function ParticleEmitter(Table)
  1948.     local PRTCL = Particle:Clone()
  1949.     local Color1 = Table.Color1 or C3(1,1,1)
  1950.     local Color2 = Table.Color2 or C3(1,1,1)
  1951.     local Speed = Table.Speed or 5
  1952.     local Drag = Table.Drag or 0
  1953.     local Size1 = Table.Size1 or 1
  1954.     local Size2 = Table.Size2 or 5
  1955.     local Lifetime1 = Table.Lifetime1 or 1
  1956.     local Lifetime2 = Table.Lifetime2 or 1.5
  1957.     local Parent = Table.Parent or Torso
  1958.     local Emit = Table.Emit or 100
  1959.     local Offset = Table.Offset or 360
  1960.     local Acel = Table.Acel or VT(0,0,0)
  1961.     local Enabled = Table.Enabled or false
  1962.     local Texture = Table.Texture or "281983280"
  1963.     local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
  1964.     local Trans1 = Table.Transparency1 or 0
  1965.     local Trans2 = Table.Transparency2 or 0
  1966.     PRTCL.Parent = Parent
  1967.     PRTCL.RotSpeed = RotS
  1968.     PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
  1969.     PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture
  1970.     PRTCL.Color = ColorSequence.new(Color1,Color2)
  1971.     PRTCL.Size = NumberSequence.new(Size1,Size2)
  1972.     PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1973.     PRTCL.Speed = NumberRange.new(Speed)
  1974.     PRTCL.VelocitySpread = Offset
  1975.     PRTCL.Drag = Drag
  1976.     PRTCL.Acceleration = Acel
  1977.     if Enabled == false then
  1978.         PRTCL:Emit(Emit)
  1979.         Debris:AddItem(PRTCL,Lifetime2)
  1980.     else
  1981.         PRTCL.Enabled = true
  1982.     end
  1983.     return PRTCL
  1984. end
  1985.  
  1986. function AttackGyro()
  1987.     local GYRO = IT("BodyGyro",RootPart)
  1988.     GYRO.D = 15
  1989.     GYRO.P = 200000
  1990.     GYRO.MaxTorque = VT(0,4000000,0)
  1991.     GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1992.     coroutine.resume(coroutine.create(function()
  1993.         repeat
  1994.             Swait()
  1995.             GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1996.         until ATTACK == false
  1997.         GYRO:Remove()
  1998.     end))
  1999. end
  2000.  
  2001. --//=================================\\
  2002. --||        GUIS AND MISC
  2003. --\\=================================//
  2004.  
  2005. local CAMTYPE = Cam.CameraType
  2006. Cam.CameraType = Enum.CameraType.Scriptable
  2007.  
  2008. local ATTACKS = {2035463713,2035463980,2035464212,2035464495}
  2009.  
  2010. local BMUSIC = IT("Sound",RootPart)
  2011. local VOLUME = 4.5
  2012. local PITCH = 1.15
  2013. local SONGID = 904882921
  2014. local INTROD = false
  2015. local SUN = CreatePart(3, nil, "Neon", 0, 0, BRICKC("New Yeller"), "Sun", VT(17,17,17), true)
  2016. MakeForm(SUN,"Ball")
  2017. local SUNFLOAT = true
  2018. local CUSTOMCAM = true
  2019.  
  2020. --//=================================\\
  2021. --||            DAMAGING
  2022. --\\=================================//
  2023.  
  2024. function ApplyAoE(POSITION,RANGE,FLING,KILLME)
  2025.     for index, CHILD in pairs(workspace:GetDescendants()) do
  2026.         if CHILD.ClassName == "Model" and CHILD ~= Character then
  2027.             local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2028.             if HUM then
  2029.                 local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2030.                 if TORSO and HUM.Health > 0 then
  2031.                     if (TORSO.Position - POSITION).Magnitude <= RANGE then     
  2032.                         CHILD:BreakJoints()
  2033.                         local HED = CHILD:FindFirstChild("Head")
  2034.                         if HED and MRANDOM(1,15) == 1 then
  2035.                             CreateSound(527749592, HED, 4, MRANDOM(9,11)/10, false)
  2036.                         end
  2037.                         if FLING > 0 then
  2038.                             for _, c in pairs(CHILD:GetChildren()) do
  2039.                                 if c:IsA("BasePart") then
  2040.                                     local bv = Instance.new("BodyVelocity")
  2041.                                     bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2042.                                     bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  2043.                                     bv.Parent = c
  2044.                                     Debris:AddItem(bv,0.05)
  2045.                                 end
  2046.                             end
  2047.                         end
  2048.                     end
  2049.                 end
  2050.             end
  2051.         end
  2052.     end
  2053.     if KILLME == true then
  2054.         Character:BreakJoints()
  2055.         for _, c in pairs(Character:GetChildren()) do
  2056.             if c:IsA("BasePart") then
  2057.                 local bv = Instance.new("BodyVelocity")
  2058.                 bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2059.                 bv.velocity = CF(POSITION,c.Position).lookVector*FLING
  2060.                 bv.Parent = c
  2061.                 Debris:AddItem(bv,0.05)
  2062.             end
  2063.         end
  2064.     end
  2065. end
  2066.  
  2067. --//=================================\\
  2068. --||    ATTACK FUNCTIONS AND STUFF
  2069. --\\=================================//
  2070.  
  2071. function Intro()
  2072.     ATTACK = true
  2073.     Rooted = true
  2074.     Humanoid.WalkSpeed = 0
  2075.     Disable_Jump = true
  2076.     local INTROSOUND = CreateSound(862484466, Effects, 6, 1, false)
  2077.     coroutine.resume(coroutine.create(function()
  2078.         repeat
  2079.             Swait()
  2080.             if CUSTOMANGLES == true then
  2081.                 Cam.CFrame = Clerp(Cam.CFrame, Head.CFrame * CF(0,0,-4) * ANGLES(RAD(0), RAD(180), RAD(0)), 0.2)
  2082.             end
  2083.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2084.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2085.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2086.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2087.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-11), RAD(0), RAD(0)), 1 / Animation_Speed)
  2088.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-11), RAD(0), RAD(0)), 1 / Animation_Speed)
  2089.         until INTROSOUND.TimePosition >= 2.15
  2090.         SUN.Parent = Effects
  2091.         local CORE = IT("Attachment",SUN)
  2092.         SUN.Color = C3(1,85/255,0)
  2093.         SUN.CFrame = RootPart.CFrame*CF(0,-14,11)
  2094.         local P = ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  2095.         P.LockedToPart = true
  2096.         P.Rate = 12
  2097.         local P = ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  2098.         P.Rate = 12
  2099.         repeat
  2100.             Swait()
  2101.             SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,14,11),0.04)
  2102.             local HITFLOOR,SUNPOS = Raycast(SUN.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 23, Character)
  2103.             if HITFLOOR then
  2104.                 local DISTANCE = (SUNPOS - SUN.Position).Magnitude
  2105.                 local SIZE = (23 - DISTANCE)*2
  2106.             end
  2107.             if CUSTOMANGLES == true then
  2108.                 Cam.CFrame = Clerp(Cam.CFrame, Head.CFrame * CF(0,5,-15) * ANGLES(RAD(5), RAD(180), RAD(0)), 0.2)
  2109.             end
  2110.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2111.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2112.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2113.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2114.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2115.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2116.         until ATTACK == false
  2117.         CUSTOMCAM = false
  2118.         for i = 1, #ATTACKS do
  2119.             local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.65, 0, 0.95-(0.17*i), 0), UD2(0.26, 0, 0.17, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
  2120.             local IMAGE = IT("ImageLabel",SKILLFRAME)
  2121.             IMAGE.Size = UD2(1,0,1,0)
  2122.             IMAGE.Image = "rbxassetid://"..ATTACKS[i]
  2123.             IMAGE.BackgroundTransparency = 1
  2124.             IMAGE.ImageTransparency = 1
  2125.             for i = 1, 10 do
  2126.                 Swait()
  2127.                 IMAGE.ImageTransparency = IMAGE.ImageTransparency - 1/10
  2128.             end
  2129.         end
  2130.     end))
  2131.     repeat
  2132.         Swait()
  2133.         INTROSOUND.Parent = Effects
  2134.     until INTROSOUND.Playing == false
  2135.     INTROSOUND:Destroy()
  2136.     ATTACK = false
  2137.     Rooted = false
  2138. end
  2139. function DeadlyLaser()
  2140.     CreateSound(811841430, SUN, 8, MRANDOM(7,13)/10, false)
  2141.     local HIT,POS = CastProperRay(SUN.Position,Mouse.Hit.p,1000,Character)
  2142.     local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Gold"), "Beam", VT(0,0,0), true)
  2143.     BEAM.Color = SUN.Color
  2144.     MakeForm(BEAM,"Cyl")
  2145.     local DIST = (SUN.Position - POS).Magnitude
  2146.     BEAM.Size = VT(0,DIST,0)
  2147.     BEAM.CFrame = CF(SUN.Position,POS)*CF(0,0,-DIST/2) * ANGLES(RAD(90), RAD(0), RAD(0))
  2148.     if HIT ~= nil then
  2149.         if HIT.Parent.ClassName == "Model" then
  2150.             if HIT.Parent:FindFirstChildOfClass("Humanoid") then
  2151.                 if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
  2152.                     local HED = HIT.Parent:FindFirstChild("Head")
  2153.                     if HED and MRANDOM(1,15) == 1 then
  2154.                         CreateSound(527749592, HED, 4, MRANDOM(9,11)/10, false)
  2155.                     end
  2156.                     HIT.Parent:BreakJoints()
  2157.                 end
  2158.             end
  2159.         end
  2160.     end
  2161.     for i = 1, 15 do
  2162.         Swait()
  2163.         BEAM.Size = BEAM.Size + VT(0.25,0,0.25)
  2164.         BEAM.Transparency = BEAM.Transparency + 1/15
  2165.     end
  2166.     BEAM:remove()
  2167. end
  2168. function SolarFlares()
  2169.     ATTACK = true
  2170.     Rooted = true
  2171.     SUNFLOAT = false
  2172.     CUSTOMCAM = true
  2173.     for i=0, 1, 0.1 / Animation_Speed do
  2174.         Swait()
  2175.         if CUSTOMANGLES == true then
  2176.             Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * ANGLES(RAD(-45), RAD(0), RAD(0))*CF(0,0,65), 0.1)
  2177.         end
  2178.         SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,18 + 4 * SIN(SINE / 12),0),0.035)
  2179.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2180.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2181.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2182.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2183.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2184.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2185.     end
  2186.     local CFRAME = RootPart.CFrame * ANGLES(RAD(-90), RAD(0), RAD(0))*CF(0,0,125)
  2187.     coroutine.resume(coroutine.create(function()
  2188.         repeat
  2189.             Swait()
  2190.             if CUSTOMANGLES == true then
  2191.                 Cam.CFrame = Clerp(Cam.CFrame, CFRAME, 0.1)
  2192.             end
  2193.             SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,18 + 4 * SIN(SINE / 12),0),0.035)
  2194.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2195.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2196.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.45 + 0.05 * SIN(SINE / 12), -0.45) * ANGLES(RAD(90), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2197.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.45 + 0.05 * SIN(SINE / 12), -0.45) * ANGLES(RAD(90), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2198.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2199.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2200.         until ATTACK == false
  2201.     end))
  2202.     AttackGyro()
  2203.     wait(0.2)
  2204.     for i = 1, 15 do
  2205.         Swait()
  2206.         coroutine.resume(coroutine.create(function()
  2207.             local SPEED = MRANDOM(5,32)/10
  2208.             local FLARE = CreatePart(3, Effects, "Neon", 0, 0, SUN.BrickColor, "Sun", VT(5,5,5), true)
  2209.             FLARE.Color = C3(1,85/255,0)
  2210.             MakeForm(FLARE,"Ball")
  2211.             CreateSound(463598785, FLARE, 1.2, MRANDOM(7,13)/8, false)
  2212.             FLARE.CFrame = CF(SUN.Position,Mouse.Hit.p) * ANGLES(RAD(MRANDOM(-5,5)*2), RAD(MRANDOM(-5,5)*2), RAD(0))
  2213.             local P = ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  2214.             for i = 1, 500 do
  2215.                 Swait()
  2216.                 P.Enabled = true
  2217.                 local HIT,HITPOS = Raycast(FLARE.Position, FLARE.CFrame.lookVector, FLARE.Size.Z/2, Character)
  2218.                 if HIT then
  2219.                     break
  2220.                 else
  2221.                     FLARE.CFrame = FLARE.CFrame*CF(0,0,-SPEED)
  2222.                     if MRANDOM(1,3) == 1 then
  2223.                         WACKYEFFECT({Time = 25, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(0.025,0,0.025), Transparency = 0.85, Transparency2 = 1, CFrame = FLARE.CFrame*CF(0,0,-FLARE.Size.X/1.5) * ANGLES(RAD(90), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0.1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 45})
  2224.                     end
  2225.                 end
  2226.             end
  2227.             CreateSound(165970126, FLARE, 0.8, MRANDOM(7,13)/8, false)
  2228.             CreateSound(174580476, FLARE, 1.6, MRANDOM(7,13)/10, false)
  2229.             P.Enabled = false
  2230.             ApplyAoE(FLARE.Position,14,125)
  2231.             Debris:AddItem(FLARE,5)
  2232.             FLARE.Transparency = 1
  2233.             WACKYEFFECT({EffectType = "Sphere", Size = FLARE.Size, Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FLARE.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FLARE.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2234.             ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  2235.         end))
  2236.     end
  2237.     wait(0.1)
  2238.     CUSTOMCAM = false
  2239.     SUNFLOAT = true
  2240.     ATTACK = false
  2241.     Rooted = false
  2242. end
  2243. function SolarSmash()
  2244.     local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2245.     if HITFLOOR then
  2246.         ATTACK = true
  2247.         Rooted = false
  2248.         CUSTOMCAM = true
  2249.         SUNFLOAT = false
  2250.         for i=0, 0.2, 0.1 / Animation_Speed do
  2251.             Swait()
  2252.             if CUSTOMANGLES == true then
  2253.                 Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * ANGLES(RAD(-45), RAD(0), RAD(0))*CF(0,0,65), 0.1)
  2254.             end
  2255.             SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,18 + 4 * SIN(SINE / 12),6),0.035)
  2256.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2257.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2258.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2259.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2260.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2261.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2262.         end
  2263.         coroutine.resume(coroutine.create(function()
  2264.             repeat
  2265.                 Swait()
  2266.                 if CUSTOMANGLES == true then
  2267.                     Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * ANGLES(RAD(-75), RAD(0), RAD(0))*CF(0,6,65), 0.1)
  2268.                 end
  2269.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2270.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2271.                 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.45 + 0.05 * SIN(SINE / 12), -0.45) * ANGLES(RAD(35), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2272.                 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.45 + 0.05 * SIN(SINE / 12), -0.45) * ANGLES(RAD(35), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2273.                 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2274.                 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2275.             until ATTACK == false
  2276.         end))
  2277.         local CFRAME = RootPart.CFrame*CF(0,-2,-17)
  2278.         for i = 1, 10 do
  2279.             Swait()
  2280.             SUN.CFrame = Clerp(SUN.CFrame,CFRAME, 0.25)
  2281.         end
  2282.         ApplyAoE(SUN.Position,65,225)
  2283.         ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  2284.         for i = 1, 8 do
  2285.             WACKYEFFECT({Time = 30+(i*25), EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(120,0,120), Transparency = 0.6, Transparency2 = 1, CFrame = CF(SUN.Position-VT(0,5,0)) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0.1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22})
  2286.         end
  2287.         for i = 1, 5 do
  2288.             WACKYEFFECT({Time = 50+(i*25), EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(1.5,0,1.5), Transparency = 0, Transparency2 = 1, CFrame = CF(SUN.Position-VT(0,5,0)) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0.1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 3})
  2289.         end
  2290.         WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = SUN.Size, Size2 = SUN.Size*6, Transparency = 0, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = 168513088, SoundPitch = 1, SoundVolume = 5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 3})
  2291.         WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = SUN.Size, Size2 = SUN.Size*5.5, Transparency = 0, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = 201858144, SoundPitch = 1, SoundVolume = 3, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2292.         local bv = Instance.new("BodyVelocity")
  2293.         bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2294.         bv.velocity = CF(CFRAME.p-VT(0,12,0),RootPart.Position).lookVector*125
  2295.         bv.Parent = RootPart
  2296.         Debris:AddItem(bv,0.02)
  2297.         CUSTOMCAM = false
  2298.         for i = 1, 5 do
  2299.             Swait()
  2300.             SUN.CFrame = Clerp(SUN.CFrame,CFRAME, 0.1)
  2301.         end
  2302.         SUNFLOAT = true
  2303.         ATTACK = false
  2304.         Rooted = false
  2305.     end
  2306. end
  2307. function SolarEruption()
  2308.     ATTACK = true
  2309.     Rooted = true
  2310.     CUSTOMCAM = true
  2311.     local ANIMA = "HoldUp"
  2312.     coroutine.resume(coroutine.create(function()
  2313.         repeat
  2314.             Swait()
  2315.             if ANIMA == "HoldUp" then
  2316.                 if CUSTOMANGLES == true then
  2317.                     Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * ANGLES(RAD(-45), RAD(0), RAD(0))*CF(0,0,65), 0.1)
  2318.                 end
  2319.                 SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,28 + 4 * SIN(SINE / 12),6),0.035)
  2320.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2321.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2322.                 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.85 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(160 + 3 * SIN(SINE / 12)), RAD(5), RAD(-15 + 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2323.                 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2324.                 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-11), RAD(0), RAD(0)), 1 / Animation_Speed)
  2325.                 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-11), RAD(0), RAD(0)), 1 / Animation_Speed)
  2326.             elseif ANIMA == "Fire" then
  2327.                 if CUSTOMANGLES == true then
  2328.                     Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * CF(0,135,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2)
  2329.                 end
  2330.                 SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,35,0),0.2)
  2331.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2332.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2333.                 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.65 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(170), RAD(5), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2334.                 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.65 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(170), RAD(-5), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2335.                 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2336.                 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2337.             end
  2338.         until ATTACK == false
  2339.     end))
  2340.     CreateSound(201858045, SUN, 1.8, MRANDOM(7,13)/10, false)
  2341.     CreateSound(278641993, SUN, 3, MRANDOM(7,13)/10, false)
  2342.     CreateSound(278641993, SUN, 2.5, MRANDOM(7,13)/10, false)
  2343.     for i = 1, 150 do
  2344.         Swait()
  2345.         WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(85,0,85), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.8, CFrame = CF(SUN.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2346.         WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(45,45,45), Size2 = VT(0,0,0), Transparency = 0.95, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2347.     end
  2348.     wait(0.1)
  2349.     UNANCHOR = false
  2350.     ANIMA = "Fire"
  2351.     wait(0.4)
  2352.     ApplyAoE(SUN.Position,25,75)
  2353.     WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SUN.Size, Size2 = SUN.Size*4, Transparency = 0, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 3})
  2354.     WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = SUN.Size, Size2 = SUN.Size*3.5, Transparency = 0, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = 401056199, SoundPitch = 1, SoundVolume = 7, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2355.     coroutine.resume(coroutine.create(function()
  2356.         for i = 1, 32 do
  2357.             Swait()
  2358.             coroutine.resume(coroutine.create(function()
  2359.                 local FLARE = CreatePart(3, Effects, "Neon", 0, 0, SUN.BrickColor, "Sun", VT(5,5,5), false)
  2360.                 FLARE.CanCollide = true
  2361.                 FLARE.Color = C3(1,85/255,0)
  2362.                 MakeForm(FLARE,"Ball")
  2363.                 Debris:AddItem(FLARE,10)
  2364.                 CreateSound(463598785, FLARE, 1.2, MRANDOM(7,13)/8, false)
  2365.                 local P = ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  2366.                 FLARE.CFrame = CF(SUN.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2367.                 FLARE.Velocity = CF(SUN.Position,CF(SUN.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(-60,60),25,MRANDOM(-60,60)).p).lookVector*MRANDOM(25,250)
  2368.                 TOUCH = FLARE.Touched:Connect(function(TOC)
  2369.                     if TOC.Parent ~= Character and TOC.Parent.Parent ~= Character then
  2370.                         FLARE.Anchored = true
  2371.                         FLARE:ClearAllChildren()
  2372.                         CreateSound(165970126, FLARE, 0.8, MRANDOM(7,13)/8, false)
  2373.                         CreateSound(174580476, FLARE, 1.6, MRANDOM(7,13)/10, false)
  2374.                         FLARE.CanCollide = false
  2375.                         ApplyAoE(FLARE.Position,14,125)
  2376.                         FLARE.Transparency = 1
  2377.                         WACKYEFFECT({EffectType = "Sphere", Size = FLARE.Size, Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FLARE.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FLARE.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2378.                         ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 1, Acel = VT(0,0,0), RotSpeed = NumberRange.new(-5, 5), Drag = 0.1, Size1 = 3, Size2 = 5, Lifetime1 = 0.1, Lifetime2 = 0.2, Parent = CORE, Emit = 10, Offset = 180, Enabled = true, Color1 = C3(1,85/255,0), Color2 = C3(1,85/255,0), Texture = 296874871})
  2379.                         TOUCH:Disconnect()
  2380.                     end
  2381.                 end)
  2382.             end))
  2383.         end
  2384.     end))
  2385.     wait(1.5)
  2386.     UNANCHOR = true
  2387.     CUSTOMCAM = false
  2388.     ATTACK = false
  2389.     Rooted = false
  2390. end
  2391. function Nebula()
  2392.     ATTACK = true
  2393.     Rooted = false
  2394.     CUSTOMCAM = true
  2395.     local DEAD = false
  2396.     coroutine.resume(coroutine.create(function()
  2397.         while true do
  2398.             Swait()
  2399.             if DEAD == false then
  2400.                 if CUSTOMANGLES == true then
  2401.                     Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * CF(0,435,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.01)
  2402.                 end
  2403.                 SUN.CFrame = Clerp(SUN.CFrame,RootPart.CFrame*CF(0,35,0),0.2)
  2404.             end
  2405.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2406.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2407.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.85 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(160), RAD(5), RAD(-15)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2408.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2409.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2410.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2411.         end
  2412.     end))
  2413.     wait(1)
  2414.     CreateSound(201858045, SUN, 1.8, MRANDOM(7,13)/10, false)
  2415.     CreateSound(278641993, SUN, 3, MRANDOM(7,13)/10, false)
  2416.     CreateSound(278641993, SUN, 2.5, MRANDOM(7,13)/10, false)
  2417.     for i = 1, 250 do
  2418.         Swait()
  2419.         WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(2,0,2), Size2 = VT(32,2.5,32), Transparency = 0.75, Transparency2 = 1, CFrame = CF(RootPart.CFrame*CF(0,-4,0).p) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22})
  2420.         WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(85,0,85), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.8, CFrame = CF(SUN.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2421.         WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(45,45,45), Size2 = VT(0,0,0), Transparency = 0.95, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2422.     end
  2423.     wait(1)
  2424.     for i = 1, 3 do
  2425.         wait(0.65)
  2426.         WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = SUN.Size, Size2 = VT(250,250,250), Transparency = 0.5, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SUN.Color, SoundID = 852135845, SoundPitch = 1-(i/10), SoundVolume = 5, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2427.     end
  2428.     wait(0.65)
  2429.     ApplyAoE(SUN.Position,9999999999999999,125,true)
  2430.     SUN:ClearAllChildren()
  2431.     SUN.Transparency = 1
  2432.     CreateSound(385545047, Effects, 2.5, 1.4, false)
  2433.     CreateSound(385545047, Effects, 2.5, 1, false)
  2434.     CreateSound(435742675, Effects, 2.5, 1.5, false)
  2435.     CreateSound(231917744, Effects, 2.5, 1.5, false)
  2436.     CreateSound(401056199, Effects, 2.5, 1, false)
  2437.     ParticleEmitter({Transparency1 = 1, Transparency2 = 1, Speed = 25, Acel = VT(0,0,0), RotSpeed = NumberRange.new(5, 5), Drag = -1, Size1 = 5, Size2 = 6, Lifetime1 = 0.1, Lifetime2 = 1, Parent = SUN, Emit = 20, Offset = 180, Enabled = false, Color1 = C3(1,85/255,0), Color2 = BRICKC"Royal purple".Color, Texture = 296874871})
  2438.     for i = 1, 3 do
  2439.         WACKYEFFECT({Time = 175, EffectType = "Sphere", Size = SUN.Size, Size2 = VT(250,250,250)+(VT(i,i,i)*180), Transparency = 0.5, Transparency2 = 1, CFrame = CF(SUN.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = 1-(i/10), SoundVolume = 5, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2440.     end
  2441.     for i = 1, 15 do
  2442.         WACKYEFFECT({Time = 100+(i*35), EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(120,5,120)+(VT(i,0,i)*70), Transparency = 0.6, Transparency2 = 1, CFrame = CF(SUN.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Pink".Color, SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22})
  2443.     end
  2444.     DEAD = true
  2445.     Cam.CameraType = CAMTYPE
  2446.     Cam.CameraSubject = Humanoid
  2447.     INTROD = false
  2448. end
  2449. function Taunt()
  2450.     ATTACK = true
  2451.     Rooted = true
  2452.     CUSTOMCAM = true
  2453.     CreateSound(160212768, Head, 10, 1, false)
  2454.     for i=0, 3, 0.1 / Animation_Speed do
  2455.         Swait()
  2456.         if CUSTOMANGLES == true then
  2457.             Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * CF(7,1.5,6) * ANGLES(RAD(-4), RAD(15), RAD(0)), 0.2)
  2458.         end
  2459.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed)
  2460.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(35)), 1 / Animation_Speed)
  2461.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2462.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3, 0.5 + 0.05 * SIN(SINE / 12), -0.3) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2463.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2464.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2465.     end
  2466.     CUSTOMCAM = false
  2467.     ATTACK = false
  2468.     Rooted = false
  2469. end
  2470.  
  2471. --//=================================\\
  2472. --||      ASSIGN THINGS TO KEYS
  2473. --\\=================================//
  2474.  
  2475. function MouseDown(Mouse)
  2476.     if ATTACK == false then
  2477.         DeadlyLaser()
  2478.     end
  2479. end
  2480.  
  2481. function MouseUp(Mouse)
  2482. HOLD = false
  2483. end
  2484.  
  2485. function KeyDown(Key)
  2486.     KEYHOLD = true
  2487.     if Key == "z" and ATTACK == false then
  2488.         SolarFlares()
  2489.     end
  2490.  
  2491.     if Key == "c" and ATTACK == false then
  2492.         SolarSmash()
  2493.     end
  2494.  
  2495.     if Key == "v" and ATTACK == false then
  2496.         SolarEruption()
  2497.     end
  2498.  
  2499.     if Key == "x" and ATTACK == false then
  2500.         Nebula()
  2501.     end
  2502.  
  2503.     if Key == "t" and ATTACK == false then
  2504.         Taunt()
  2505.     end
  2506.  
  2507.     if Key == "q" and ATTACK == false then
  2508.         if CUSTOMANGLES == true then
  2509.             CUSTOMANGLES = false
  2510.             Cam.CameraSubject = Humanoid
  2511.         else
  2512.             CUSTOMANGLES = true
  2513.         end
  2514.     end
  2515. end
  2516.  
  2517. function KeyUp(Key)
  2518.     KEYHOLD = false
  2519. end
  2520.  
  2521.     Mouse.Button1Down:connect(function(NEWKEY)
  2522.         MouseDown(NEWKEY)
  2523.     end)
  2524.     Mouse.Button1Up:connect(function(NEWKEY)
  2525.         MouseUp(NEWKEY)
  2526.     end)
  2527.     Mouse.KeyDown:connect(function(NEWKEY)
  2528.         KeyDown(NEWKEY)
  2529.     end)
  2530.     Mouse.KeyUp:connect(function(NEWKEY)
  2531.         KeyUp(NEWKEY)
  2532.     end)
  2533.  
  2534. --//=================================\\
  2535. --\\=================================//
  2536.  
  2537. function unanchor()
  2538.     for _, c in pairs(Character:GetChildren()) do
  2539.         if c:IsA("BasePart") and c ~= RootPart then
  2540.             c.Anchored = false
  2541.         end
  2542.     end
  2543.     if UNANCHOR == true then
  2544.         RootPart.Anchored = false
  2545.     else
  2546.         RootPart.Anchored = true
  2547.     end
  2548. end
  2549.  
  2550. --//=================================\\
  2551. --||    WRAP THE WHOLE SCRIPT UP
  2552. --\\=================================//
  2553.  
  2554. Humanoid.Changed:connect(function(Jump)
  2555.     if Jump == "Jump" and (Disable_Jump == true) then
  2556.         Humanoid.Jump = false
  2557.     end
  2558. end)
  2559.  
  2560. while true do
  2561.     Swait()
  2562.     script.Parent = WEAPONGUI
  2563.     ANIMATE.Parent = nil
  2564.     for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2565.         v:Stop();
  2566.     end
  2567.     SINE = SINE + CHANGE
  2568.     local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2569.     local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2570.     local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2571.     local WALKSPEEDVALUE = 8 / (Humanoid.WalkSpeed / 16)
  2572.     if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2573.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.1 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2574.         Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2575.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  2576.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  2577.     elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2578.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2579.         Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2580.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
  2581.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
  2582.     end
  2583.     if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2584.         ANIM = "Jump"
  2585.         if ATTACK == false then
  2586.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2587.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  2588.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2589.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2590.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2591.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2592.         end
  2593.     elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2594.         ANIM = "Fall"
  2595.         if ATTACK == false then
  2596.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2597.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2598.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2599.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2600.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2601.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2602.         end
  2603.     elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2604.         ANIM = "Idle"
  2605.         if ATTACK == false then
  2606.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed)
  2607.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(35)), 1 / Animation_Speed)
  2608.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2609.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2610.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2611.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed)
  2612.         end
  2613.     elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2614.         ANIM = "Walk"
  2615.         if ATTACK == false then
  2616.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(5), RAD(0), RAD(-15-7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  2617.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(15+7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  2618.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2619.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2620.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(105), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2621.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2622.         end
  2623.     end
  2624.     unanchor()
  2625.     if INTROD == true then
  2626.         if SUNFLOAT == true then
  2627.             SUN.CFrame = Clerp(SUN.CFrame,Torso.CFrame*CF(0,14 + 4 * SIN(SINE / 12),11),0.035)
  2628.         end
  2629.         local HITFLOOR,SUNPOS = Raycast(SUN.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 23, Character)
  2630.         if HITFLOOR then
  2631.             local DISTANCE = (SUNPOS - SUN.Position).Magnitude
  2632.             local SIZE = (23 - DISTANCE)*2
  2633.         end
  2634.     end
  2635.     Humanoid.MaxHealth = 500
  2636.     Humanoid.Health = 500
  2637.     if Rooted == false then
  2638.         Disable_Jump = false
  2639.         Humanoid.WalkSpeed = Speed
  2640.     elseif Rooted == true then
  2641.         Disable_Jump = true
  2642.         Humanoid.WalkSpeed = 0
  2643.     end
  2644.     BMUSIC.SoundId = "rbxassetid://"..SONGID
  2645.     BMUSIC.Looped = true
  2646.     BMUSIC.Pitch = PITCH
  2647.     BMUSIC.Volume = VOLUME
  2648.     BMUSIC.Playing = INTROD
  2649.     if BMUSIC.Parent ~= RootPart then
  2650.         BMUSIC = IT("Sound",RootPart)
  2651.     end
  2652.     Humanoid.Name = "THE_SUN_IS_A_DEADLY_LASER"
  2653.     if INTROD == false and ATTACK == false then
  2654.         Intro()
  2655.         INTROD = true
  2656.     end
  2657.     local VELOC = -RootPart.RotVelocity.Y
  2658.     if VELOC < -35 then
  2659.         VELOC = -35
  2660.     elseif VELOC > 35 then
  2661.         VELOC = 35
  2662.     end
  2663.     if CUSTOMANGLES == true then
  2664.         Cam.CameraType = Enum.CameraType.Scriptable
  2665.         if CUSTOMCAM == false then
  2666.             Cam.CFrame = Clerp(Cam.CFrame, RootPart.CFrame * ANGLES(RAD(-5), RAD(0), RAD(VELOC)) * CF(12,7,25), 0.15)
  2667.         end
  2668.     else
  2669.         Cam.CameraType = CAMTYPE
  2670.     end
  2671. end
  2672.  
  2673. --//=================================\\
  2674. --\\=================================//
  2675.  
  2676.  
  2677.  
  2678.  
  2679.  
  2680. --//====================================================\\--
  2681. --||                     END OF SCRIPT
  2682. --\\====================================================//--
  2683.  
  2684. My Pastes
  2685. Nothing here yet...
  2686. Public Pastes
  2687. win key
  2688. XML | 2 min ago
  2689. PME
  2690. Lua | 5 min ago
  2691. Artikel Upload Gambar : Model Upload File
  2692. PHP | 29 min ago
  2693. Artikel Upload Gambar : Controller upload file
  2694. PHP | 31 min ago
  2695. Artikel Upload Gambar : Form Upload File
  2696. HTML | 37 min ago
  2697. Untitled
  2698. Bash | 38 min ago
  2699. CREATE TABLE 'TABLEFOTO' SQL SERVER
  2700. SQL | 40 min ago
  2701. Pointer Mutation
  2702. C++ | 50 min ago
  2703.  
  2704. create new paste  /  syntax languages  /  archive  /  faq  /  tools  /  night mode  /  api  /  scraping api
  2705. privacy statement  /  cookies policy  /  terms of service  /  security disclosure  /  dmca  /  report abuse  /  contact
  2706.  
  2707. By using Pastebin.com you agree to our cookies policy to enhance your experience.
  2708. Site design & logo © 2020 Pastebin; user contributions (pastes) licensed under cc by-sa 3.0
  2709. Upgrade to a Pastebin PRO account!
  2710. Learn the 24 reasons why you should :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement