I am trying to get a gui to become invisible when a player joins and character loads in. But it won't work. I made it into a local script and script and tried putting it in differen't places and it didn't work.
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(chr) game.StarterGui.ScreenGui.Frame.Visible = false game.StarterGui.ScreenGui.TextLabel.Visible = false end) end)
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(chr) plr.PlayerGui.ScreenGui.Frame.Visible = false plr.PlayerGui.ScreenGui.TextLabel.Visible = false end) end)
The startergui is the place that puts the gui into the player.
The PlayerGui in the plr is the gui that the player sees.