Advertisement
Anukun_Lucifer

MainScript EP.03

Oct 21st, 2023
3,232
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | Gaming | 0 1
  1. local mob = require(script.MobScript)
  2. local map = workspace.Grassland
  3.  
  4. for wave = 1,10 do
  5.     if wave <= 2 then
  6.         mob.Spawn("Cameraman",5 * wave,map)
  7.         mob.Spawn("Zombie", 3 * wave, map)
  8.     elseif wave <= 5 then
  9.         for i = 1,5 do
  10.             mob.Spawn("Cameraman",wave,map)
  11.             mob.Spawn("Zombie", wave, map)
  12.             mob.Spawn("Naruto", 3, map)
  13.         end
  14.     elseif wave <=9 then
  15.         mob.Spawn("Cameraman",wave,map)
  16.         mob.Spawn("Zombie", wave, map)
  17.         for i= 1,5 do
  18.             mob.Spawn("Cameraman",5*(wave*0.5),map)
  19.             mob.Spawn("Naruto", 2 *(wave*0.5), map)
  20.         end
  21.     elseif wave == 10 then
  22.         mob.Spawn("Cameraman",100,map)
  23.     end
  24.    
  25.     repeat
  26.         task.wait(1)
  27.     until #map.Mob:GetChildren() == 0
  28.     task.wait(1)
  29. end
Tags: Roblox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement