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
8 years ago
Edited 8 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 8 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 — 8y
0
No it doesn't xD User#11440 120 — 8y
0
lol FiredDusk 1466 — 8y
Ad

Answer this question