Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Enemy = require(script.Enemy)
- local map = workspace.Grassland
- for i = 1, 3 do
- local success, errorMessage = pcall(function()
- Enemy.Spawn("Zombie", map)
- end)
- if not success then
- warn("Error spawning enemy: " .. errorMessage)
- end
- task.wait(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement