✓ ANSWER ACCEPTED
How do I make a gui flash then close automatically?
1 answer
✓ Accepted answer
Dude this is the most basic scripting. Just make the frame flash white then black like this.
local Frame = script.Parent--//wherever the main frame of the gui is.
local gui = script.Parent.Parent--//wherever your gui is.
function flashfunc()
local i = 5 --//How long flashing is. (1 = 1 SECOND)
repeat
flashtimes()--//Calling the 'flashtimes' function
flashtimes()
flashtimes()
flashtimes()
flashtimes()
until i == 1
gui.Enabled = false
end
function flashtimes()
Frame.BackgroundColor3 = Color3.fromRGB(0,0,0)--//changing color to black.
wait(0.1)
Frame.BackgroundColor3 = Color3.fromRGB(255,255,255)--//changing color to white.
wait(0.1)
end
Make sure to set the FRAME & GUI values to wherever your FRAME & GUIs are.
If you don't have a frame make one.
THIS IS NOT A REQ SITE!!!
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
NOT A REQ SITE!