Advertisement
Tzuro

Untitled

Feb 27th, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. local miejsca = game.Workspace.Miejsca:GetChildren()
  2.  
  3. while true do
  4. local storage = game.ReplicatedStorage
  5. if storage.AktywnaGra.Value == true then
  6. if storage.ZombieDoWygenerowania.Value > 0 then
  7. local zombie = storage.Zombie:Clone()
  8. local root = zombie:FindFirstChild("HumanoidRootPart")
  9. local losoweMiejsce = math.random(1, #miejsca)
  10. root.Position = Vector3.new(miejsca[losoweMiejsce].Position.X,
  11. 6,
  12. miejsca[losoweMiejsce].Position.Z)
  13.  
  14. zombie.Parent = workspace.Zombiaki
  15. storage.ZombieDoWygenerowania.Value -= 1
  16. end
  17. end
  18. wait(0.2)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement