sorry if i posted the same post twice but making this in code block might help its not showing errors in the output and its not showing on my gui button
01 | CanVote = Workspace.canVote |
02 | CanVote.Value = true |
03 | Map 1 = Workspace.Deathrun |
04 | Map 2 = Workspace.FFA |
05 | function Clicked() |
06 | if CanVote.Value = = true then |
07 | for i = 1 , 1 do |
08 | Map 1. Value = Map 1. Value+ 1 |
09 | end |
10 | if Map 2. Value> 0 then |
11 | for i = 1 , 1 do |
12 | Map 2. Value = Map 2. Value- 1 |
13 | end |
14 | end |
15 | votes = script.Parent |
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?
When I ran mine which is basicly like yours it never printed 2. As golden said you need to make the CanVote.Value=true. Also I see that you use for i=1 which just runs it once. I don't think you need them...