Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with Vote Pads?

Asked by 8 years ago

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.

0
Touched events are probably not the best option for this. I would try it with magnitude and a while loop. Perci1 4988 — 8y
0
How would I go about doing that? intrance 50 — 8y

Answer this question