I want it to spawn npc's while the text label says "Game", but when it says "Intermission", I want the zombies to stop spawning
If anyone can help I would really appreciate it! Thanks!
~~~~~~~~~~~~~~~~~ local NPC = game.ReplicatedStorage.Zombie local spawner = script.Parent GameTime = game.StarterGui.Timer.Frame.TextLabel
if GameTime.Text == "Game" then repeat local Clone = NPC:Clone() Clone.Torso.CFrame = spawner.CFrame Clone.Parent = workspace wait(2) until GameTime.Text == "Intermission" end ~~~~~~~~~~~~~~~~