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 close when it has been 5 seconds?

Asked by 1 year ago
Edited 1 year ago

im dumb.

Anyways I'd want that every time i open my gui the gui closes in 5 seconds. bye

0
god please spare me i have a lot of strokes reading this Doraemon4680 0 — 1y

1 answer

Log in to vote
1
Answered by 1 year ago

If you open it using a button then:

button.MouseButtton1Click:Connect(function()
    wait(5)
    gui.Enabled = false
    --or gui.Visible if it's not a screen gui.
end)
Ad

Answer this question