The secret of this is that you can create a variable and make equals to false
, then make it true
after the player vote then make it back to false after voting session is finished.
Example:
local voted = false
if voted == false then
--Add 1 vote
end