function Clicked()
script.Parent.Value = script.Parent.Value +1
end
script.Parent.Parent.MouseButton1Down:connect(Clicked)
How would I make it so I can find the player who clicked this SurfaceGui?
function Clicked()
script.Parent.Value = script.Parent.Value +1
end
script.Parent.Parent.MouseButton1Down:connect(Clicked)
How would I make it so I can find the player who clicked this SurfaceGui?
First you would have to have a Textbutton in the SurfaceGui.
--Then you can use the same function on that event.
--Make sure that this script is inside the button
script.Parent.MouseButton1Click:connect
I fixed it. I put it in StarterGui. I'm using an ImageButton. ;)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Fixed. Just made the thing local to the player.