Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[Help] How to make a voting system be capped to one vote per player?

Asked by 3 years ago

Hi i'm trying to make a voting system to only allow a player to click vote once on a button.

Here is what I got so far but when I click the vote button again, it keeps adding another vote, is there any way to make each player able to vote once?

script.Parent.MouseButton1Click:Connect(function()

    script.Parent.Parent.TxtVotes.Text = script.Parent.Parent.TxtVotes.text + 1



end)
0
math.clamp() MarkedTomato 810 — 3y
0
if its a local script, you can do script.disabled = true and then when you want the players to vote again, do script.disabled = false Traadess 67 — 3y

Answer this question