Here's the code:
V=0 game.Workspace.TextValue.Value = V function Touched(Plr) if game.Players[Plr.Parent.Name]~=nil then V=V+1 game.Workspace.TextValue.Value = V print(V) end end function Ended(Plr) if game.Players[Plr.Parent.Name]~=nil then V=V-1 game.Workspace.TextValue.Value = V print(V) end end script.Parent.Touched:connect(Touched) script.Parent.TouchEnded:connect(Ended)
It adds by one every time the player moves. Anyway I can make one player only add one vote rather than a vote every time the player moves around on the block or jumps. Thanks.