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

How do you include the player's name in a GUI textbox?

I do not know how to add code into a string value like this:

textbox.Text = "Hello there [game.Players.LocalPlayer.Name]!"

Due to the fact that whatever you put in there, it will just come out as text.. How can I make the script say the players name in the text?

2 answers

✓ Accepted answer

So close but all you needed to do a put two periods between the game.Players.LocalPlayer.Name bit!

textbox.Text = "Hello there "..game.Players.LocalPlayer.Name.." "

~UserOnly20Charcters, Hoped I helped you to answer your question! If you have any further question, don't hesitate to comment below!!

1 comment

0

My god that was so simple, thank you! Merry Christmas!

you would concatonate the string like this

textbox.Text = "Hello there" ..  game.Players.LocalPlayer.Name

the .. combines 2 strings into 1

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