Hello, I'm trying to make a GUI not be visible when a player joins the game. I have already made a button that opens the GUI.
make a local script in playerGui
Use the PlayerAdded event to detect if a player is joining
use the Frame´s Visible property and change it.
1 | local players = game:GetService( "Players" ) |
2 | local frame = script.Parent --make sure the script is placed in the frame you want to hide! |
3 |
4 | players.PlayerAdded:Connect( function () |
5 | frame.Visible = false |
6 | end ) |