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

How do I make a text button that activates a script from a GUI?

I want to make a Start Working button for my staff member so when you press Start Working it lets them gain points, but if they hit stop working I want them to stop gaining points. Or it can be as simple as a command like !afk that prevents them from gaining points and then they say !afk again to start gaining again.

1 answer

To be honest we don't help people with no script here. You should try it yourself first and if you have any trouble, we will help you resolve the problems.

Anyways I can suggest what you could do.

  1. You will probably need GUI TextButton
  2. When it gets clicked, it will get into while wait(sometime) true, inside while loop it will fire remoteEvent to server
  3. On the server, function of remote event will give player points

this is very rough structure of system you can setup to achieve what you want.

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