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

Help with zombie spawner

Asked by
Teeter11 281 Moderation Voter
10 years ago

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
1
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. AxeOfMen 434 — 10y
0
thats what happens Teeter11 281 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

Try restarting your computer or re downloading Studio because that is not possible. It might be a glitch in roblox studio tho

0
i figured out what was wrong but thx! :D Teeter11 281 — 10y
Ad

Answer this question