Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- if game.ReplicatedStorage.GameInProgress.Value == true then
- if game.ReplicatedStorage.ZombiesRemaining.Value > 0 then
- local newZombie = game.ReplicatedStorage.Zombie:Clone()
- local hum = newZombie:FindFirstChild("HumanoidRootPart")
- local randomX = math.random(-200,200)
- local randomZ = math.random(-200,200)
- hum.Position = Vector3.new(randomX, 6 ,randomZ)
- newZombie.Parent = workspace.Zombies
- game.ReplicatedStorage.ZombiesRemaining.Value = game.ReplicatedStorage.ZombiesRemaining.Value - 1
- end
- end
- wait(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement