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

Player's value is false, but it still goes through an if statement?

Asked by 3 years ago
for i, plr in pairs(game.Players:GetPlayers()) do
                print('in the for!')
                if plr.IsRacing.Value == true then
                    local jeep = 1
                    plr.Character.HumanoidRootPart.CFrame = jeeps[jeep].CFrame
                    jeep += 1
                else
                    return
                end

So, I'm making a racing game and if a player's value is true, they get placed into the race. However, they still get teleported regardless of the value. Why?

Answer this question