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

How can I make this happen on a surfaceGui?

Asked by 9 years ago

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?

0
Fixed. Just made the thing local to the player. legoguy939 418 — 9y

1 answer

Log in to vote
1
Answered by 9 years ago

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
0
I fixed it. I put it in StarterGui. I'm using an ImageButton. ;) legoguy939 418 — 9y
Ad

Answer this question