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 4 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 4 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.

local players = game:GetService("Players")
local frame = script.Parent --make sure the script is placed in the frame you want to hide!

players.PlayerAdded:Connect(function()
    frame.Visible = false
end)
0
you could actually do both Jonix151 65 — 4y
Ad

Answer this question