Advertisement
ExamV1

Rainbow screen script for roblox

Feb 8th, 2023
990
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.28 KB | None | 0 0
  1. --EPILEPSY WARNING!!!!!
  2. --EPILEPSY WARNING!!!!!
  3. --EPILEPSY WARNING!!!!!
  4.  
  5. --Rainbow screen with toggle button in top left corner!
  6. local player = game.Players.LocalPlayer
  7. local screenGui = Instance.new("ScreenGui")
  8. local textLabel = Instance.new("TextLabel")
  9. local button = Instance.new("TextButton")
  10.  
  11. screenGui.Parent = player.PlayerGui
  12. textLabel.Parent = screenGui
  13. button.Parent = screenGui
  14.  
  15. --textLabel.Text = "Add your custom text here to show in middle of screen"
  16. textLabel.TextScaled = true
  17. textLabel.BackgroundColor3 = Color3.fromHSV(math.random(), 1, 1)
  18. textLabel.Size = UDim2.new(1, 0, 1, 0)
  19. textLabel.Font = Enum.Font.SourceSans
  20. textLabel.TextColor3 = Color3.new(1, 1, 1)
  21. textLabel.TextWrapped = true
  22. textLabel.TextXAlignment = Enum.TextXAlignment.Center
  23. textLabel.TextYAlignment = Enum.TextYAlignment.Center
  24.  
  25. button.Text = "Toggle"
  26. button.Size = UDim2.new(0, 75, 0, 25)
  27. button.Position = UDim2.new(0, 0, 0, 0)
  28. button.Font = Enum.Font.SourceSans
  29. button.TextColor3 = Color3.new(1, 1, 1)
  30. button.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  31.  
  32. button.MouseButton1Click:Connect(function()
  33.   textLabel.Visible = not textLabel.Visible
  34. end)
  35.  
  36. game:GetService("RunService").RenderStepped:Connect(function()
  37.   textLabel.BackgroundColor3 = Color3.fromHSV(math.random(), 1, 1)
  38. end)
  39.  
Tags: Epilepsy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement