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

How can I make this happen on a 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?

1 comment

0

Fixed. Just made the thing local to the player.

1 answer

✓ Accepted answer

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

1 comment

0

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.