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

How do I make a text that uses the player name the game is being played by?

Okay, so this is not my first time coding and scripting in roblox. But I dont know how to make a text that uses the players name. I've never scripted something like this. But I do know how to ask for help. I'm here looking for help with this question. And it will help me in the future -w-

1 comment

0

you are posting a request...

1 answer

It's actually a request, but because it's very simple:

game.Players.PlayerAdded:Connect(function(plr)
Name = plr.Name
end)

Paste it in a GUI and change it's text to "Name".

5 comments

0

Change it's text to the variable name with a script

0

Thanks! I will use this in my game and use this help in the future.

0

did it even work?

0

Because what i did was wrong

0

yeah I just tested it and it didn't

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