Any idea why this doesn't stop the number from incrementing after every click?
game.ReplicatedStorage.PartCreate.OnServerEvent:Connect(function()
for _,v in pairs(game.Players:GetChildren()) do
local runCount = 0
if runCount == 0 then
v.PlayerGui.ScreenGui.ScrollingFrame.Frame.TxtVotes.Text = v.PlayerGui.ScreenGui.ScrollingFrame.Frame.TxtVotes.Text + 1
print("Voted")
runCount = runCount + 1
print(runCount)
end
end
end)

2 comments
id suggest doing what the guy who just answered said. I would ALSO suggest, line 9 to be "greater than or equal" or "less than or equal to", often times, counts can skip a beat if coded wrongly.
I also accidentally set the value on the wrong line, my new answer should work now though.