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)`
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)`
Just make the Screen Gui's ResetOnSpawn property false.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Remove() is deprecated