local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local Rayfield = loadstring(game:HttpGet("https://sirius.menu/gen2"))() local window = Rayfield:CreateWindow({ Name = "Solar Hub V1", Subtitle = "Script hub made using Rayfield", }) -- Main Scripts Tab local tab = window:CreateTab({ Name = "Main Scripts", Icon = 93364949241311 }) -- States local chargeEnabled = false local highJumpEnabled = false local godmodeEnabled = false local noclipEnabled = false local flyEnabled = false local noclipConnection local flyConnection local flyVelocity local flyGyro -------------------------------------------------- -- Run Fast -------------------------------------------------- tab:CreateToggle({ Name = "Run fast", CurrentValue = false, Callback = function(value) chargeEnabled = value if value then task.spawn(function() while chargeEnabled do local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.WalkSpeed = 120 end task.wait(0.1) end local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.WalkSpeed = 16 end end) end end }) -------------------------------------------------- -- Super Jump -------------------------------------------------- tab:CreateToggle({ Name = "Super Jump", CurrentValue = false, Callback = function(value) highJumpEnabled = value if value then task.spawn(function() while highJumpEnabled do local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.UseJumpPower = true humanoid.JumpPower = 300 end task.wait(0.1) end local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.UseJumpPower = true humanoid.JumpPower = 50 end end) end end }) -------------------------------------------------- -- God Mode -------------------------------------------------- tab:CreateToggle({ Name = "God mode", CurrentValue = false, Callback = function(value) godmodeEnabled = value if value then task.spawn(function() while godmodeEnabled do local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.MaxHealth = math.huge humanoid.Health = math.huge end task.wait(0.1) end end) else local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.MaxHealth = 100 humanoid.Health = 100 end end end }) -------------------------------------------------- -- Noclip -------------------------------------------------- tab:CreateToggle({ Name = "Noclip", CurrentValue = false, Callback = function(value) noclipEnabled = value if noclipConnection then noclipConnection:Disconnect() noclipConnection = nil end if value then noclipConnection = RunService.Stepped:Connect(function() local character = player.Character if character then for _, part in ipairs(character:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = false end end end end) else local character = player.Character if character then for _, part in ipairs(character:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = true end end end end end }) -------------------------------------------------- -- Fly -------------------------------------------------- tab:CreateToggle({ Name = "Fly", CurrentValue = false, Callback = function(value) flyEnabled = value local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local rootPart = character and character:FindFirstChild("HumanoidRootPart") -- Turn Fly OFF if not value then if flyConnection then flyConnection:Disconnect() flyConnection = nil end if flyVelocity then flyVelocity:Destroy() flyVelocity = nil end if flyGyro then flyGyro:Destroy() flyGyro = nil end if humanoid then humanoid.PlatformStand = false end return end -- Make sure character exists if not rootPart or not humanoid then return end -- Create flight velocity flyVelocity = Instance.new("BodyVelocity") flyVelocity.Name = "SolarFlyVelocity" flyVelocity.MaxForce = Vector3.new( math.huge, math.huge, math.huge ) flyVelocity.Velocity = Vector3.zero flyVelocity.Parent = rootPart -- Create flight gyro flyGyro = Instance.new("BodyGyro") flyGyro.Name = "SolarFlyGyro" flyGyro.MaxTorque = Vector3.new( math.huge, math.huge, math.huge ) flyGyro.P = 10000 flyGyro.Parent = rootPart humanoid.PlatformStand = true -- Flight loop flyConnection = RunService.RenderStepped:Connect(function() if not flyEnabled then return end local currentCharacter = player.Character local currentHumanoid = currentCharacter and currentCharacter:FindFirstChildOfClass("Humanoid") local currentRoot = currentCharacter and currentCharacter:FindFirstChild("HumanoidRootPart") if not currentRoot or not currentHumanoid then return end local camera = workspace.CurrentCamera if not camera then return end local direction = Vector3.zero -- Forward / Backward if UserInputService:IsKeyDown(Enum.KeyCode.W) then direction += camera.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.S) then direction -= camera.CFrame.LookVector end -- Left / Right if UserInputService:IsKeyDown(Enum.KeyCode.A) then direction -= camera.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.D) then direction += camera.CFrame.RightVector end -- Up if UserInputService:IsKeyDown(Enum.KeyCode.Space) then direction += Vector3.new(0, 1, 0) end -- Down if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then direction -= Vector3.new(0, 1, 0) end if direction.Magnitude > 0 then direction = direction.Unit end if flyVelocity and flyVelocity.Parent then flyVelocity.Velocity = direction * 80 end if flyGyro and flyGyro.Parent then flyGyro.CFrame = camera.CFrame end end) end }) -------------------------------------------------- -- Sliders Tab -------------------------------------------------- local sliderTab = window:CreateTab({ Name = "Sliders (For exact Number)", Icon = 93364949241311 }) -------------------------------------------------- -- FOV Slider -------------------------------------------------- sliderTab:CreateSlider({ Name = "FOV", Range = {1, 1000}, Increment = 1, CurrentValue = 90, Callback = function(value) local camera = workspace.CurrentCamera if camera then camera.FieldOfView = value end end }) -- Set initial FOV if workspace.CurrentCamera then workspace.CurrentCamera.FieldOfView = 90 end -------------------------------------------------- -- Exact Speed Slider -------------------------------------------------- sliderTab:CreateSlider({ Name = "Exact Speed", Range = {1, 120}, Increment = 1, CurrentValue = 16, Callback = function(value) local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.WalkSpeed = value end end }) -- Set initial Speed local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.WalkSpeed = 16 end -------------------------------------------------- -- JumpPower Slider -------------------------------------------------- sliderTab:CreateSlider({ Name = "JumpPower", Range = {50, 1000}, Increment = 1, CurrentValue = 50, Callback = function(value) local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.UseJumpPower = true humanoid.JumpPower = value end end }) -- Set initial JumpPower character = player.Character humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.UseJumpPower = true humanoid.JumpPower = 50 end -------------------------------------------------- -- Auto Mechanics Tab -------------------------------------------------- local mechanicsTab = window:CreateTab({ Name = "Auto Mechanics", Icon = 93364949241311 }) -------------------------------------------------- -- Auto Jump -------------------------------------------------- mechanicsTab:CreateToggle({ Name = "Auto Jump", CurrentValue = false, Callback = function(value) if value then task.spawn(function() while value do local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.Jump = true end task.wait(0.2) -- Stop if toggle is turned off local toggleState = false -- Rayfield handles the UI state; loop ends on next callback end end) end end })