Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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).

0
are you trying to flash it for 2 seconds and then wait 30 seconds and flash it again? Please be more specific. WINDOWS10XPRO 438 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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()
0
Thx DJTwisted_2 0 — 3y
Ad

Answer this question