How to announce when a certain player joined the game?
I'm trying to find a script where is a certain user was to join the server, there will be a pop up on the screen saying "User joined the game!"
For some reason, the script isn't working though.
I found the script on an outdated youtube video and I'm trying to get it to work, here's what I have.
01 | function OnPlayerEntered(player) |
02 | if player.userId = = game.CreatorId then |
03 | local msg = Instance.new( "Message" ) |
04 | msg.Parent = game.Workspace |
05 | msg.Text = "The creator has joined the server!" |
08 | elseif player.Name = = "Aprilsaurus" then |
09 | local msg = Instance.new( "Message" ) |
10 | msg.Parent = game.Workspace |
11 | msg.Text = "The Dev has joined this server!" |
17 | game.Players.ChildAdded:connect(OnPlayerEntered) |
I don't see any errors in the output so I'm not sure why it's not working, any help is appreciated.