For example; A worker is working at the register and they send someone a payment when they click "Send Payment" I want it to give them a point. Or if you could do it so when the customer presses cash or credit it gives the worker a point. Either one is fine.
How do I make a text button UI give a worker a point on click?
1 answer
Assuming this is for a surface gui, you will first need to put the SurfaceGui under the StarterGuis. Unfortunately, LUA can't figure out who is clicking a surfacegui textbutton otherwise.
To have it still appear on the object though, click the property "Adornee" under the surface gui and then click the part you want it to appear on.
For scripting you will need to create three things: a script in serverscriptstorage, a local script under your text button, and a remote event.
your local script should listen for the event of the button being clicked and fire the remote event. The script should listen to the remote event being fired and add a point to the player.
Here's some more info on remote events: https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events
Hope this helps!
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
i wanna play your game
currently it is in Development, but you can join the group to join in the future. https://web.roblox.com/groups/group.aspx?gid=4853203
Is this a surface gui or a screen gui?
It's a screen GUI.