Hey.
Let’s say you have added a menu with a button that, when clicked, will trigger a remote event to the server where you purchase an item.
It would be pretty easy to exploit so you’d probably add checks like:
Does the player have enough money?
or maybe
Does the player have the menu UI opened?
which are both easily done on the server side of things.
Though even then (although not exactly game-breaking), an exploiter could open the menu and then execute a script to fire the remote event. Meaning they haven’t actually clicked the button.
The point is, what would you do to check if the the button has actually been pressed to purchase the item therefore crushing any attempt at " forcing " the buy sequence?