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 SurfaceGui display a Player's username?

How do i make a Textlabel's text to be "Player1's Office" But using a objectValue.

1 answer

Please be more specific. We need to know more information. Such as, do you want the brick to display the name after being touched? etc.

Please give us your scenario, becuase based on the information you gave us, i would just say make a text label containing the player's name.

Edit: ok, now let me explain.

First off, you cant use an object value for a name, use a string value.

So, in the surface gui we put a screen gui, then a frame (if you want to, i'll be pretending you did), then a Text label.

Put this in the Text label and replace ? with the directory to the value

TheValue = ?.Value

script.Parent.Text = TheValue.."'s Place"

TheValue.Changed:Connect(function()
script.Parent.Text = TheValue.."'s Place"
end)

I hoped this helped.

2 comments

0

textlabel's text to be "Player1's Office" But using a objectValue for the players name

0

K, i fixed it, Whoops, i made Office Place :p

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