So I have this game where when a player enters the game, a gui pops up in the bottom left saying "USERNAME has entered", but it does not work.

Here is the script:

local enter = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame

game.Players.PlayerAdded:Connect(function(player)
	enter.Visible = true
	print("Player has added!")
end)

7 comments

0

This would need to be on the server to tell other clients that a player entered. See RemoteEvents.

0

Editing the gui should then be done in a local script. It would be inside the OnClientEvent.

0

How would I go about doing this? I'm genuinely confused.

0

if you want everyone to see this, use a remote events

0

The problem is, it's not even appearing for me.

0

wait, are you trying to get the GUI to say the player has entered? If so, you don't use print

0

print was used as a test to see if it worked