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

SurfaceGui Find who Clicked?

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

✓ Accepted answer

put SurfaceGui in StarterGui

Then set Adornee property to the brick you want it on

Then the player who clicked is always the LocalPlayer

3 comments

0

the adornee? strange... I dont think I ever saw adornee, but I'll check...

0

I see it now... so all I gotta do is give it the directory of the Brick and thats it?

0

yup

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!

1 comment

0

well... I didn't get any suggestions for this, and I tried stuff like this, never worked :/#

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