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

How do you make a GUI Text button detect when a player clicks it?

I need this so when they player clicks "Send Payment" to a customer it gives the employee a point. I currently have no script. But I have this line of code but won't know if it will recognize the player whole clicked.

"money.Value = money.Value + 1"

2 answers

I would highly recommend you look into what functions are and how GUIs work. One You didn't have any form of scripting to indicate that the button was clicked. Two You have nothing that ends or starts the value so this script will probably still not work.

What to do Have a local script in your button then add this command at the beginning of it. It may not work for what your script wants but that is how I get a detection for a buttons clicks

script.Parent.MouseButton1Click:Connect(function(click)

This discussion is preserved as it was. New answers, comments, and votes are closed.