I need help with spawning a zombie during night?
I tried making a zombie spawner for night time only and making sure its max 6 zombies
however, It doesn't seem to work can anybody help me?
01 | local NPC = game.ReplicatedStorage.Zombie |
02 | local spawner = game.Workspace.ZombieSpawns.XSp |
03 | local xox = game.ReplicatedStorage.Zombie.UpperTorso |
04 | local posXsp = game.Workspace.ZombieSpawns.XSp.Position |
05 | local lol = game.Workspace |
08 | if game.Lighting.ClockTime > = 17 and game.Lighting.ClockTime < = 6 then |
09 | local Colne = NPC:Clone() |
10 | Colne.xox.CFrame = CFrame.new(posXsp) + Vector 3. new( 1 , 0 , 0 ) |