SHOW:
|
|
- or go back to the newest paste.
1 | while true do | |
2 | if game.ReplicatedStorage.GameInProgress.Value == true then | |
3 | if game.ReplicatedStorage.ZombiesRemaining.Value > 0 then | |
4 | local newZombie = game.ReplicatedStorage.Zombie:Clone() | |
5 | local hum = newZombie:FindFirstChild("HumanoidRootPart") | |
6 | local randomX = math.random(-200,200) | |
7 | local randomZ = math.random(-200,200) | |
8 | hum.Position = Vector3.new(randomX, 6 ,randomZ) | |
9 | newZombie.Parent = workspace.Zombies | |
10 | game.ReplicatedStorage.ZombiesRemaining.Value = game.ReplicatedStorage.ZombiesRemaining.Value - 1 | |
11 | end | |
12 | end | |
13 | wait(1) | |
14 | end | |
15 | ||
16 |