Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make a SurfaceGui display a Player's username?

Asked by 7 years ago
Edited 7 years ago

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

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

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.

0
textlabel's text to be "Player1's Office" But using a objectValue for the players name SamthekidRSsl 58 — 7y
0
K, i fixed it, Whoops, i made Office Place :p User#17125 0 — 7y
Ad

Answer this question