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

Help location player?

How can I locate the player who clicked a gui button?

1 answer

✓ Accepted answer

If you are using a local script, you can find the player by using

Game.Players.LocalPlayer

However, if you are using a regular script (I'm not sure why you would want to do this for things local to the client) then you will have to use another method such as script.Parent.Parent providing that the script is inside the GUI, and the GUI is inside the Players PlayerGui

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