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

How would I fix this problem?

local text = ("Your Name Is:...LocalPlayerName...")

My LocalScript is in a Text Button, which the Text Button is in a ScreenGUI in StarterGUI.

This is what I want it to do: It changes the ...LocalPlayerName... part to the player who is playing the game name. On the Text Button, I already put "Your Name Is:", but IDK how to make it so it makes the ...LocalPlayerName... part your name.

2 answers

local text = "Your Name Is: "..LocalPlayerName

6 comments

0

If you didn't define LocalPlayerName, then you should replace it with game.Players.LocalPlayer

0

Doesn't work, it shows nothing (This is the code: local text = ("Your Name Is: "..game.Players.LocalPlayer) ) and these is the layout: http://gyazo.com/8b51dabcb929d3120205830cf5bad30b

0

The correct code is local text = "Your Name Is: "..LocalPlayerName I didn't realize your mistake of using parenthesis at first.

0

Oh okay, thanks!

0

It still shows nothing q.q

0

Thanks

local text='Your name is: '..Game.Players.LocalPlayer.Name..'.';
print(text);

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