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

SurfaceGui Find who Clicked?

Asked by
KAAK82 16
10 years ago

I want to know how to find out who Clicked and then use his Character... am sure it's not like hit.Parent or something... so plz help me here guys...

2 answers

Log in to vote
2
Answered by
wazap 100
10 years ago

put SurfaceGui in StarterGui

Then set Adornee property to the brick you want it on

Then the player who clicked is always the LocalPlayer

0
the adornee? strange... I dont think I ever saw adornee, but I'll check... KAAK82 16 — 10y
0
I see it now... so all I gotta do is give it the directory of the Brick and thats it? KAAK82 16 — 10y
0
yup wazap 100 — 10y
Ad
Log in to vote
-3
Answered by 10 years ago
function onClicked(player)
    print(player.." clicked!"
end

script.Parent.MouseButton1Down:connect(onClicked)

That finds the player and should work. Let me know if it doesn't!

0
well... I didn't get any suggestions for this, and I tried stuff like this, never worked :/# KAAK82 16 — 10y

Answer this question