Everything seems to work, apart from the zombie cloning for Lighting then putting it into the 'Zombies' group in workspace. No errors come up on the console either. Any help would be appreciated.
Lighting = game:service("Lighting") function waittime() wait(10) end Lighting.TimeOfDay = "06:00:00" while true do wait() waittime() zombieswork = game.Workspace.Zombies:GetChildren() for i = 1, #zombieswork do zombieswork[i]:remove() waittime() for i = 10, 1, -1 do zombieslight = game.Lighting.Zombies:GetChildren() zombieslight:clone() zombieslight.parent = game.Workspace.Zombies print('Zombie spawned') end end end