I’m trying to make a voting system where the player clicks on a text button, but can’t vote twice.
How can I make it so that once the player clicks once the button becomes “unclickable” (to the player that clicked it)
I’m trying to make a voting system where the player clicks on a text button, but can’t vote twice.
How can I make it so that once the player clicks once the button becomes “unclickable” (to the player that clicked it)
When the player votes, add the Instance
to a table
and check that it isn’t there before he tries to vote.
Could you demonstrate how I would do that?
One way to do this is to use a boolean variable. You can set the boolean to true when the button is clicked, and set it to false when the voting period has ended. Then in the script for the button, you can check if the boolean is set to true or false. If it’s true, then you can disable the button and prevent it from being clicked again.
Wow, such a simple fix, thank you!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.