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

How can I get a player's name on a surface GUI textlabel when touching a brick?

I'm building a thing where I need to get a player's name when they collide with a brick. I've tried many things but it does not work.

1 comment

0

this sounds suspiciously like a request. please post some code.

1 answer

✓ Accepted answer

Whenever something touches connected to a Touched event, it fires the object of the toucher, this means you can get it's parent. That means you can .Parent until you get to the root then use .Name to access the name of the toucher then set the text label to that name.

1 comment

0

just because you know the answer doesnt mean you should neccesarily give it.

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