Here is my script
local Object = game.Lighting.NPC:Clone() local cloneMade = script.Parent.Parent.Parent.cloneDoingMaze function startNPC() Object.Parent = game.Workspace end script.Parent.Touched:Connect(function() if cloneMade == false then startNPC() wait(0.1) cloneMade = true else script.Parent.Parent.Name = "There is already an npc doing the maze" end end)