I am trying to make a script that displays the player's name inside of a TextLabel when they enter the game, and remove it after 5 seconds.
game.Players.PlayerAdded:connect(function(player)
game.StarterGui.ScreenGui.TextLabel.Text = player.Name
wait(5)
game.StarterGui.ScreenGui.TextLabel.Text = " "
end)
All of the code above works, except for line 4:
game.StarterGui.ScreenGui.TextLabel.Text = " "
The point is to basically replace the text in the TextLabel with the players name, and then make the text disappear by just adding a space for where you would insert text. Can anyone help?
