Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Gui script won't work?

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)

1 answer

✓ Accepted answer
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.

This discussion is preserved as it was. New answers, comments, and votes are closed.