I want it so the script grabs a random NPC from lighting then place it into workspace for a certain amount of time, then remove it and repeat. I got the part where it randomly picks and adds it to workspace but I don't know how to make it remove without having errors.
--Get NPCs from Lighting
local Lighti = game.Lighting:FindFirstChild("NPCs"):GetChildren()
local kler = Lighti[math.random(1, #Lighti)]
while true do
wait(0.05)
kler:Clone().Parent = game.Workspace
wait(100) --Just a random time I picked
kler:Remove()
end
--Let's say inside the NPCs model there is "NPC1" and "NPC2", I don't know how to get one to be removed after it's time for it to be removed.

2 comments
What error is it giving you?
I actually don't seem to be getting any errors, the model just doesn't want to remove.