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

How to script a Gui to be seen once at start up and then go away?

Asked by 5 years ago

I put a script in the text button, it makes it go away but then after each death it comes back up on screen.

`local function OnClick() script.Parent.Parent:Remove() end

script.Parent.MouseButton1Click:connect(OnClick)`

0
Remove() is deprecated RetroGalacticGamer 331 — 5y

1 answer

Log in to vote
-1
Answered by 5 years ago

Just make the Screen Gui's ResetOnSpawn property false.

Ad

Answer this question