for some reason the code skips over this i put a comment next to the skip. I want to know how to fix this. Thanks :)
while wait(10) do
local rand = math.random(1,2)
if game.Workspace.MainGame.ZombieAmount.Value > 0 then
if rand == 1 then
if game.Workspace.MainGame.Barrier1.Value == true then
game.Workspace.MainGame.ZombieAmount.Value = game.Workspace.MainGame.ZombieAmount.Value - 1--SKIPS HERE
zombie = game.ReplicatedStorage.Zombie:Clone()
zombie.Parent = game.Workspace.ZombieSpace
zombie:MakeJoints()
end
end
end
end

2 comments
When you say 'Skip" do you mean that it doesn't execute line 06 but then it goes on to execute lines 07, 08, and 09? That is not possible.
thats what happens