I am making a script were you copy a npc and then paste him in random position it all works fine but i cant do it multiple times.

local original = workspace.child

local random1 = math.random(-254 , 254)
local random2 = math.random(-254 , 254)
local orientation = math.random(0 , 180)

local copy = original:Clone()

copy.Parent = original.Parent
local function spawn()
copy:SetPrimaryPartCFrame(CFrame.new(random1, 1.7, random2) * CFrame.Angles(math.rad(0), orientation, 0))

end

while true do
	wait (1)
	spawn()
	print(random1 , random2)
end