when the timer becomes 0 and once you kill it, it respawns back and it will keep coming back forever. i tried using a wait but it doesnt work. help?

local counter = 10 local allowed = true

while true do while counter >= 1 do counter -= 1 script.Parent.Text = counter end wait(1) if allowed == true and counter == 0 then allowed = false local d = game.ReplicatedStorage["Demon [Level 1000]"]:Clone() d.Parent = game.Workspace wait(100) allowed = true end end

2 comments

0

uh did u use a free model for a enemy?

0

Is there any errors in the output?