Hi, I’m pretty new to Roblox scripting, and apologies in advance if I am being stupid/overlooking something really simple. I wanted to ask how I can remove the GUI and respawn a player after a TextButton is pressed. I decided to turn to the community, due to me being unable to find a suitable tutorial.
Like whale said, use player:LoadCharacter() and use script.Parent.Parent:Destroy() to destroy the gui or script.Parent.Parent.Enabled = false to make the guis inside of a gui invisible
Thank you for your responses - apologies if this was a really basic error - but I am new to scripting. Should this script go into my main GUI script (the MainMenuHandler) or a new script inside of the Menu ScreenGUI?
Sorry, one more question - this does work, and removed the GUI - but I have a camera part, and the view is fixed - is there some way I can make it revert back to the player view when player is respawned?