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?
✓ ANSWER ACCEPTED
If I have a function that returns plr, how do I find that plr in workspace?
2 answers
✓ Accepted answer
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.
plr.character
This discussion is preserved as it was. New answers, comments, and votes are closed.
