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

How do i know who clicked a gui button?

Asked by
ARTEK22 135
7 years ago
Edited 7 years ago

So, im making a TP all me button. I know how to teleport everyone, but i dont know how to teleport them to the player that clicks the gui. How do i know who clicked the button? (only who clicked the button, not anything else please)

1 answer

Log in to vote
2
Answered by 7 years ago

Use game.Players.LocalPlayer.Character.Torso.CFrame in a local script

0
Thanks, i upvoted because it also teached me alot, now i know how a local script works! ARTEK22 135 — 7y
0
No it doesn't xD User#11440 120 — 7y
0
lol FiredDusk 1466 — 7y
Ad

Answer this question