So i want to make a deploy system at click and key , game is running i the back , so if i make a script that will destroy the gui , can it be reversable? like the gui appear again after the round ended and the script destroy it again when you press space or click the button?
✓ ANSWER ACCEPTED
Deploy system with game running in the back?
1 answer
✓ Accepted answer
Hello, so, you shouldn't destroy the GUI. You should just make it invisible.
There are 2 ways to do this.
If you want to make the whole GUI invisible:
ScreenGui.Enabled = false
To revert this: ScreenGui.Enabled = true
If you want to make a specific part of the GUI invisible:
ScreenGui.Frame.Visible = false
To revert this: ScreenGui.Frame.Visible = true
If you have any questions ask me. Don't forget to accept and upvote if the answer helped.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Should probably not destroy the gui, would instead suggest you either disable the ScreenGui or set the gui frame to not visible.