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

If I have a function that returns plr, how do I find that plr in workspace?

Asked by 4 years ago

I have a script that when the player clicks a click detector it'll connect to a function and return the player in the players tab, but I need to be able to access the person body parts when they click it. How would I do this?

2 answers

Log in to vote
0
Answered by 4 years ago

There are many ways you can find the player's character from their actual player. You can index the workspace for their username, like workspace:FindFirstChild(plr.Name) or you can use plr.Character.

If this helped you out, consider accepting this answer for those sweet, sweet reputation points. If not, comment below and I (or someone else) will help you out.

Be sure to check out the Roblox API Documentation as well for additional reference.

Ad
Log in to vote
0
Answered by 4 years ago

plr.character

Answer this question