-- Rainbow Mode V1.08062026 local coreGui = game:GetService("CoreGui") local lighting = game:GetService("Lighting") local starterGui = game:GetService("StarterGui") function notify(title, content) starterGui:SetCore("SendNotification", { ["Title"] = title, ["Text"] = content }) end function create(class, parent, name) local newInstance = Instance.new(class, parent) if name then newInstance.Name = name end return newInstance end function clearInstances(name, parent, specificClass) for _, asset in pairs(parent:GetDescendants()) do if specificClass then if asset.Name == name and asset:IsA(specificClass) then asset:Destroy() end else if asset.Name == name then asset:Destroy() end end end end notify("Loading Rainbow Mode...", "Version 1.08062026") clearInstances("RainbowModeCCEffect", lighting, "ColorCorrectionEffect") clearInstances("RainbowModeGui", coreGui, "ScreenGui") local UI = create("ScreenGui", coreGui, "RainbowModeGui") UI.IgnoreGuiInset = true UI.ResetOnSpawn = false local toggle = create("TextButton", UI, "Toggle") toggle.Size = UDim2.fromScale(0.05, 0.1) toggle.Position = UDim2.fromScale(0, 0.25) toggle.TextScaled = true toggle.Text = "🌈" local corners = create("UICorner", toggle, "Corners") corners.CornerRadius = UDim.new(0.1, 0) local ratioCC = create("UIAspectRatioConstraint", toggle, "Restraint") ratioCC.AspectRatio = 1 local rainbowCCEffect = create("ColorCorrectionEffect", lighting, "RainbowModeCCEffect") rainbowCCEffect.Enabled = false local colorLevels = { ["r"] = 255, ["g"] = 0, ["b"] = 0 } local toggleBackgrounds = { ["active"] = Color3.fromRGB(0, 255, 0), ["inactive"] = Color3.fromRGB(255, 0, 0) } local isActive = false local direction = "redToGreen" toggle.MouseButton1Click:Connect(function() isActive = not isActive end) local notified = false while task.wait() do rainbowCCEffect.Enabled = isActive if isActive then toggle.BackgroundColor3 = toggleBackgrounds.active if direction == "redToGreen" then if colorLevels.g < 255 then colorLevels.g = colorLevels.g + 2.5 elseif colorLevels.r > 0 then colorLevels.r = colorLevels.r - 2.5 else direction = "greenToBlue" end elseif direction == "greenToBlue" then if colorLevels.b < 255 then colorLevels.b = colorLevels.b + 2.5 elseif colorLevels.g > 0 then colorLevels.g = colorLevels.g - 2.5 else direction = "blueToRed" end elseif direction == "blueToRed" then if colorLevels.r < 255 then colorLevels.r = colorLevels.r + 2.5 elseif colorLevels.b > 0 then colorLevels.b = colorLevels.b - 2.5 else direction = "redToGreen" end end rainbowCCEffect.TintColor = Color3.fromRGB(colorLevels.r, colorLevels.g, colorLevels.b) else toggle.BackgroundColor3 = toggleBackgrounds.inactive colorLevels.r = 255 colorLevels.g = 0 colorLevels.b = 0 end if not notified then notified = true notify("Loaded Rainbow Mode!", "Click / tap the button with a 🌈 on it to toggle rainbow mode.") end end