1 | script.Parent.Text = "Welcome" .. game.Players.LocalPlayer.Name.. "!" |
Why wont it put the players name it just says nil
Use a localscript, as game.Players.LocalPlayer
can only be accessed that way! Also, I recommend changing "Welcome"
to "Welcome, "
You do not need to reference the local player because your not setting any properties in a local scripts like characters,tools etc to fix this do.
NOTE: Make sure it's server sided
1 | game.Players.PlayerAdded:Connect( function (player) |
2 | print ( "A player has entered: " .. player.Name) |
3 | end ) |