Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local miejsca = game.Workspace.Miejsca:GetChildren()
- while true do
- local storage = game.ReplicatedStorage
- if storage.AktywnaGra.Value == true then
- if storage.ZombieDoWygenerowania.Value > 0 then
- local zombie = storage.Zombie:Clone()
- local root = zombie:FindFirstChild("HumanoidRootPart")
- local losoweMiejsce = math.random(1, #miejsca)
- root.Position = Vector3.new(miejsca[losoweMiejsce].Position.X,
- 6,
- miejsca[losoweMiejsce].Position.Z)
- zombie.Parent = workspace.Zombiaki
- storage.ZombieDoWygenerowania.Value -= 1
- end
- end
- wait(0.2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement