Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Help with zombie spawner

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

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.

0

thats what happens

1 answer

✓ Accepted answer

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

1 comment

0

i figured out what was wrong but thx! :D

This discussion is preserved as it was. New answers, comments, and votes are closed.