I'm trying to make a voting mechanic for my game, but when I touch the part that counts the vote, nothing is added to the value and it stays as 0. (This is only a fragment of the code and the local is at the top of the script)
local Button = script.Parent
Button.Touched:Connect(function()
Button.VoteCount.Value = Button.VoteCount.Value + 1
end)
Is the something wrong with the touch function? Before anyone asks, I did try FindFirstChild and this is a server script.

2 comments
Where is the Button located
game.Workspace.VotingCentre.Buttons.Button1