I dont get your logic. You are wondering why a trigger executes multiple times when activating the button immediately after deactivating it?
if it would be linear, turning off the button has to work but it doesn't.
The exact opposite is the case. Its linear, so at first it executes all actions of the trigger which gets run. After that it continues with checking for events. At that point the button is active again, and therefore the trigger will run again.
If you want to avoid players spamming the button you will need to create a boolean variable for each player, set it to true once the button gets pressed, wait X seconds and setting it back to false. Then, when the button is clicked, you can check whether this variable is false and ignore the click if it isnt.
i forgot to say that i am using this for all my buttons in the map and this button will be hidden once it is pressed. so it cannot be pressed again.
ok this makes sense if there is a queue for these events.
click 1 and click 2, click 2 queued and click 1 runs then click 2 runs.
ok need to test this, thx alot