I'm making a voting system where you step on a pad and when you step on it it says you voted around 300 times. How can I make a check system so it only registers 1 vote.
Here is the code:
local votepad1 = game.Workspace.VotePad1
local votepad2 = game.Workspace.VotePad2
local votepad3 = game.Workspace.VotePad3
local playersWhoHaveVoted = {}
local game1votes = 0
local game2votes = 0
local game3votes = 0
local votingTakingPlace = true
while votingTakingPlace == true do
wait(0.001)
votepad1.Touched:Connect(function(part)
if part.Parent:FindFirstChild("Humanoid") then
end
end)
end

2 comments
what scrip is this local script? script? Where is the script located?
It's a normal script in ServerScriptService.