Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --EPILEPSY WARNING!!!!!
- --EPILEPSY WARNING!!!!!
- --EPILEPSY WARNING!!!!!
- --Rainbow screen with toggle button in top left corner!
- local player = game.Players.LocalPlayer
- local screenGui = Instance.new("ScreenGui")
- local textLabel = Instance.new("TextLabel")
- local button = Instance.new("TextButton")
- screenGui.Parent = player.PlayerGui
- textLabel.Parent = screenGui
- button.Parent = screenGui
- --textLabel.Text = "Add your custom text here to show in middle of screen"
- textLabel.TextScaled = true
- textLabel.BackgroundColor3 = Color3.fromHSV(math.random(), 1, 1)
- textLabel.Size = UDim2.new(1, 0, 1, 0)
- textLabel.Font = Enum.Font.SourceSans
- textLabel.TextColor3 = Color3.new(1, 1, 1)
- textLabel.TextWrapped = true
- textLabel.TextXAlignment = Enum.TextXAlignment.Center
- textLabel.TextYAlignment = Enum.TextYAlignment.Center
- button.Text = "Toggle"
- button.Size = UDim2.new(0, 75, 0, 25)
- button.Position = UDim2.new(0, 0, 0, 0)
- button.Font = Enum.Font.SourceSans
- button.TextColor3 = Color3.new(1, 1, 1)
- button.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- button.MouseButton1Click:Connect(function()
- textLabel.Visible = not textLabel.Visible
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- textLabel.BackgroundColor3 = Color3.fromHSV(math.random(), 1, 1)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement