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