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

How do I make a GUI not visible when a player joins the game?

Asked by 5 years ago

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.

1 answer

Log in to vote
0
Answered by 5 years ago
  1. make a local script in playerGui

  2. Use the PlayerAdded event to detect if a player is joining

  3. use the Frame´s Visible property and change it.

1local players = game:GetService("Players")
2local frame = script.Parent --make sure the script is placed in the frame you want to hide!
3 
4players.PlayerAdded:Connect(function()
5    frame.Visible = false
6end)
0
you could actually do both Jonix151 65 — 5y
Ad

Answer this question