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)

2 comments

0

math.clamp()

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