Hello!
I need help (again…) with a script.
So It’s been a while I’ve been trying to figure this out and so far google, youtube and devforum didn’t help me.
I need to get, with a server script, the player who clicked a button.
Please note the following:
I can’t use a local script.
The buttons aren’t on a fixed number and name. They are created by another server script and are different between each player.
The button is inside a Surface Gui.
.Activated doesn’t work.
The SurfaceGui (when the button may be clicked) is inside a tool in a character in the workspace.
I need it so it can prompt a purchase to the player. LocalScripts do NOT work (I already tried).
I hope I explained myself enough. Please let me know if you need more information.
Use a Regular Script, Change the Scripts RunContext peroperty to Client, which will make the Script run as a LocalScript, unlike a regular LocalScript, it will run in the workspace.