Cloning a player makes the clone directly on top of the player

        for i = 1, 10, 1 do
            local newclone = t:Clone()
            for i,v in pairs(newclone:GetDescendants()) do
                if v:IsA("BasePart") or v:IsA("MeshPart") then
                    v.Anchored = true
                    v.CanCollide = false
                end
            end
            
            newclone.Parent = workspace
            local frame = t.HumanoidRootPart.CFrame * CFrame.new(0,-3,-1)
            newclone:MoveTo(frame.Position)
            t = newclone
            wait(1)
        end

This code entirely works however i just want to know how to make the clone not be directly on top of the player

So does the MoveTo frame bit work?

It does but its ignoring the Y value

Try either t.HumanoidRootPart.CFrame = Cframe.New, or t.HumanoidRootPart.CFrame *= Cframe.New

Im not sure what you mean by the first solution but the second solution just gives a syntax error

What does the error say exactly? Nevermind im being stupid lemme figure this out

in the script editor it says Expected identifier when parsing expression, got “=”

Can you give me the full script with all the variables?

	local t = player.Character
	t.Archivable = true
	
	for i = 1, 10, 1 do
		local newclone = t:Clone()
		for i,v in pairs(newclone:GetDescendants()) do
			if v:IsA("BasePart") or v:IsA("MeshPart") then
				v.Anchored = false
				v.CanCollide = false
			end
		end
		
		newclone.Parent = workspace
		local frame = t.HumanoidRootPart.CFrame *= CFrame.new(0,-3,-1)
		newclone:MoveTo(frame.Position)
		t = newclone
		wait(1)
	end

Use Model:PivotTo instead of MoveTo if you want to disregard obstructions.

1 Like

thanks it works now. I didnt know :MoveTo worked like that

1 Like

(see second paragraph)
edit/note: PivotTo is basically the same as SetPrimaryPartCFrame but newer

1 Like

PivotTo() also doesn’t require that the model has a primary part set whereas as its name suggests SetPrimaryPartCFrame() does.

1 Like

Ah, that’s great to know. Thanks!
(So that’s the functionality Roblox was considering to add with PivotTo)