
Key RequiredUniversal

--[[
Complete Working Rainbow Hub for ScriptBlox
Paste this entire block into the Script box.
]]--
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Lighting = game:GetService("Lighting")
local player = Players.LocalPlayer
-- Remove existing GUI if open
if game.CoreGui:FindFirstChild("RainbowHub") then
game.CoreGui.RainbowHub:Destroy()
end
-- Main ScreenGui
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "RainbowHub"
ScreenGui.Parent = game.CoreGui
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
-- Main Container Frame
local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Parent = ScreenGui
MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
MainFrame.Position = UDim2.new(0.5, -160, 0.5, -190)
MainFrame.Size = UDim2.new(0, 320, 0, 400)
MainFrame.Active = true
MainFrame.Draggable = true
local MainCorner = Instance.new("UICorner")
MainCorner.CornerRadius = UDim.new(0, 12)
MainCorner.Parent = MainFrame
-- Rainbow Animated Border (UIStroke)
local RainbowStroke = Instance.new("UIStroke")
RainbowStroke.Parent = MainFrame
RainbowStroke.Thickness = 3
RainbowStroke.Transparency = 0.1
-- Title Bar
local Title = Instance.new("TextLabel")
Title.Name = "Title"
Title.Parent = MainFrame
Title.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
Title.Size = UDim2.new(1, 0, 0, 45)
Title.Font = Enum.Font.GothamBold
Title.Text = "✨ RAINBOW HUB ✨"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.TextSize = 16
local TitleCorner = Instance.new("UICorner")
TitleCorner.CornerRadius = UDim.new(0, 12)
TitleCorner.Parent = Title
-- Scrolling Container for Toggles
local ScrollingFrame = Instance.new("ScrollingFrame")
ScrollingFrame.Parent = MainFrame
ScrollingFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
ScrollingFrame.BackgroundTransparency = 1
ScrollingFrame.Position = UDim2.new(0, 10, 0, 55)
ScrollingFrame.Size = UDim2.new(1, -20, 1, -65)
ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 500)
ScrollingFrame.ScrollBarThickness = 4
local UIListLayout = Instance.new("UIListLayout")
UIListLayout.Parent = ScrollingFrame
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 8)
-- Rainbow Background Animation Loop
task.spawn(function()
while ScreenGui and ScreenGui.Parent do
local hue = (tick() % 6) / 6
local rainbowColor = Color3.fromHSV(hue, 0.8, 1)
RainbowStroke.Color = rainbowColor
task.wait(0.05)
end
end)
-- Helper Function to Create Toggle Buttons with State Management
local function createToggle(name, onEnable, onDisable)
local enabled = false
local btn = Instance.new("TextButton")
btn.Parent = ScrollingFrame
btn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
btn.Size = UDim2.new(1, 0, 0, 42)
btn.Font = Enum.Font.GothamMedium
btn.Text = name .. " [OFF]"
btn.TextColor3 = Color3.fromRGB(220, 220, 220)
btn.TextSize = 14
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 8)
corner.Parent = btn
btn.MouseButton1Click:Connect(function()
enabled = not enabled
if enabled then
btn.BackgroundColor3 = Color3.fromRGB(46, 204, 113) -- Vibrant Green when ON
btn.TextColor3 = Color3.fromRGB(255, 255, 255)
btn.Text = name .. " [ON]"
pcall(onEnable)
else
btn.BackgroundColor3 = Color3.fromRGB(40, 40, 40) -- Back to normal dark gray when OFF
btn.TextColor3 = Color3.fromRGB(220, 220, 220)
btn.Text = name .. " [OFF]"
pcall(onDisable)
end
end)
end
-- ==================== WORKING FEATURES WITH TOGGLE CLEANUP ====================
-- 1. Flight
local flyBV, flyBG, flyLoop
createToggle("Flight", function()
local char = player.Character
if not char or not char:FindFirstChild("HumanoidRootPart") then return end
local root = char.HumanoidRootPart
flyBV = Instance.new("BodyVelocity")
flyBV.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
flyBV.Velocity = Vector3.new(0, 0, 0)
flyBV.Parent = root
flyBG = Instance.new("BodyGyro")
flyBG.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
flyBG.CFrame = root.CFrame
flyBG.Parent = root
flyLoop = RunService.RenderStepped:Connect(function()
local cam = workspace.CurrentCamera
flyBG.CFrame = cam.CFrame
flyBV.Velocity = cam.CFrame.LookVector * 60
end)
end, function()
if flyLoop then flyLoop:Disconnect() end
if flyBV then flyBV:Destroy() end
if flyBG then flyBG:Destroy() end
end)
-- 2. Noclip
local noclipConn
createToggle("Noclip", function()
noclipConn = RunService.Stepped:Connect(function()
local char = player.Character
if char then
for _, part in ipairs(char:GetDescendants()) do
if part:IsA("BasePart") then
part.CanCollide = false
end
end
end
end)
end, function()
if noclipConn then noclipConn:Disconnect() end
end)
-- 3. Speed Boost
createToggle("Speed Boost (50)", function()
local char = player.Character
if char and char:FindFirstChild("Humanoid") then
char.Humanoid.WalkSpeed = 50
end
end, function()
local char = player.Character
if char and char:FindFirstChild("Humanoid") then
char.Humanoid.WalkSpeed = 16
end
end)
-- 4. Super Jump
createToggle("Super Jump (120)", function()
local char = player.Character
if char and char:FindFirstChild("Humanoid") then
char.Humanoid.UseJumpPower = true
char.Humanoid.JumpPower = 120
end
end, function()
local char = player.Character
if char and char:FindFirstChild("Humanoid") then
char.Humanoid.JumpPower = 50
end
end)
-- 5. Infinite Jump
local infJumpConn
createToggle("Infinite Jump", function()
infJumpConn = UserInputService.JumpRequest:Connect(function()
local char = player.Character
if char and char:FindFirstChild("Humanoid") then
char.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
end)
end, function()
if infJumpConn then infJumpConn:Disconnect() end
end)
-- 6. Fullbright
local oldBrightness, oldClock, oldShadows
createToggle("Fullbright", function()
oldBrightness = Lighting.Brightness
oldClock = Lighting.ClockTime
oldShadows = Lighting.GlobalShadows
Lighting.Brightness = 2
Lighting.ClockTime = 14
Lighting.GlobalShadows = false
end, function()
if oldBrightness then Lighting.Brightness = oldBrightness end
if oldClock then Lighting.ClockTime = oldClock end
if oldShadows then Lighting.GlobalShadows = oldShadows end
end)
-- 7. Player ESP
local espHighlights = {}
createToggle("Player ESP", function()
for _, p in ipairs(Players:GetPlayers()) do
if p ~= player and p.Character and not p.Character:FindFirstChild("RainbowESP") then
local hl = Instance.new("Highlight")
hl.Name = "RainbowESP"
hl.Parent = p.Character
hl.FillColor = Color3.fromRGB(0, 170, 255)
hl.OutlineColor = Color3.fromRGB(255, 255, 255)
table.insert(espHighlights, hl)
end
end
end, function()
for _, hl in ipairs(espHighlights) do
if hl then hl:Destroy() end
end
espHighlights = {}
end)
-- 8. FOV Changer
createToggle("Wide FOV (100)", function()
workspace.CurrentCamera.FieldOfView = 100
end, function()
workspace.CurrentCamera.FieldOfView = 70
end)No comments yet for this script.



