Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make my gui flash on the players screen?

I have a text label I want to flash on and off of the player's screens to maybe scare them. I've created the GUI and can't figure out how to script this. If possible I'd like it to flash on and off every certain amount of seconds, like for example: ON wait(2) OFF wait(30).

1 comment

0

are you trying to flash it for 2 seconds and then wait 30 seconds and flash it again? Please be more specific.

1 answer

✓ Accepted answer

That's the first and most simple thing that popped up in my mind. There are other ways such as using loops. By the way, make sure the flashing doesn't trigger people with photo epilepsy.

local label = script.Parent --put this script inside the flashing frame/text label

local function Flashing()
	wait(5)
	label.Visible = true --on
	wait(2)
	label.Visible = false --off
	wait(30)
	label.Visible = true --on
	wait(4)
	label.Visible = false --off
end

Flashing()

1 comment

0

Thx

This discussion is preserved as it was. New answers, comments, and votes are closed.