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

Player Names on Surface gui texts?

Asked by 7 years ago

I'm making a Surface Gui text on a block and I want the text to say the players name on their screen?

Like Ex: CaptainRoblox joins the game the text will say "Welcome CaptainRoblox" only on that players screen

3 answers

Log in to vote
3
Answered by 7 years ago

The easiest way to do this is to put the SurfaceGui into StarterGui and set the Adornee property of the screengui to the part you would like it shown on. This way the whole screen gui is for that player so you can use localscripts in it and it will know who the local player is. This will also allow the player to change buttons (if there are any) on their GUI but not on everyone else's.

Hope this helped. If it did please accept this as the answer. If it didn't help or you find it confusing please feel free to message me and ask for help.

0
How do I set the Adornee to a certain part it shows an X for me? CaptainRoblox281 15 — 7y
0
Click to the left of the X MrLonely1221 701 — 7y
Ad
Log in to vote
1
Answered by 7 years ago

I think the easiest way is to turn FilteringEnabled on and have a local script change the Surface Gui's text. The text should change on the player locally so it shouldn't change for other players.

0
It's not wrong, but it's not the right way to do it. Regardless, I don't see why people would give you -1 for a 'correct' answer. User#6546 35 — 7y
Log in to vote
-6
Answered by 7 years ago

Just make everything local

1
Very bad awnser... RubenKan 3615 — 7y
0
So spoonfeeding is a good thing? k LightModed 81 — 7y

Answer this question