Ad
Log in to vote
0

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

Asked by 2 days 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 620 — 2d
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 62 — 1d

Answer this question