I want the right to be true, and the left to be false, or vice versa. All I get is both true, both false or sometimes it works.
game.workspace.r1.CanCollide = math.random(1,2) == 1
if game.Workspace.r1.CanCollide ~= true then
game.Workspace.l1.CanCollide = false
end
game.workspace.r2.CanCollide = math.random(1,2) == 1
if game.Workspace.r2.CanCollide ~= true then
game.Workspace.l2.CanCollide = false
end
game.workspace.r3.CanCollide = math.random(1,2) == 1
if game.Workspace.r3.CanCollide ~= false then
game.Workspace.l3.CanCollide = false
end
game.workspace.r4.CanCollide = math.random(1,2) == 1
if game.Workspace.r4.CanCollide ~= true then
game.Workspace.l4.CanCollide = false
end
game.workspace.r5.CanCollide = math.random(1,2) == 1
if game.Workspace.r5.CanCollide ~= true then
game.Workspace.l5.CanCollide = false
end
game.workspace.r6.CanCollide = math.random(1,2) == 1
if game.Workspace.r6.CanCollide ~= true then
game.Workspace.l6.CanCollide = false
end
game.workspace.r7.CanCollide = math.random(1,2) == 1
if game.Workspace.r7.CanCollide ~= true then
game.Workspace.l7.CanCollide = false
end
game.workspace.r8.CanCollide = math.random(1,2) == 1
if game.Workspace.r8.CanCollide ~= true then
game.Workspace.l8.CanCollide = false
end
game.workspace.r9.CanCollide = math.random(1,2) == 1
if game.Workspace.r9.CanCollide ~= true then
game.Workspace.l9.CanCollide = false
end
