How can i make a whole StarterCharacter Anchored?

Hello Roblox,
So i mate a code which makes a corpse but i want to make it anchored.
Heres my code:


local cd = game.ReplicatedStorage.ClickDetector
local ps = game.ReplicatedStorage.PromptScript
local pp = game.ReplicatedStorage.ProximityPrompt
local bg = game.ReplicatedStorage.BillboardGui

script.Parent.Archivable = true
local Body = script.Parent:Clone()
Body.Name = script.Parent.Name .. "'s_DeadBody"

while true do
	wait(0.1)
	if script.Parent.Humanoid.Health == 0 then
		if game.ReplicatedStorage.Dead.Value == false then
			wait(0.5)
			Body.HumanoidRootPart.Position = script.Parent.HumanoidRootPart.Position
			Body.HumanoidRootPart.Orientation = script.Parent.HumanoidRootPart.Orientation
			--cd:Clone().Parent = Body
			--ps:Clone().Parent = Body
			pp:Clone().Parent = Body
			--bg:Clone().Parent = Body
			Body.Parent = game.Workspace
			game.ReplicatedStorage.Dead.Value = true
		end
	end
end

Please help me
~Maini

You want the player to not be able to move? You just want to anchor the whole body?

I just want to make the Clone() anchored

Which part of the line? There are few lines that state cloned Characters.

In the code above i made a clone of the player when he dies and it has the same position & rotation.
i want to use this clone (line 7)

By anchoring the humanoidrootpart which is the primarypart of a character the character would be locked.

If you are talking about this, then you can use this script:

local cd = game.ReplicatedStorage.ClickDetector
local ps = game.ReplicatedStorage.PromptScript
local pp = game.ReplicatedStorage.ProximityPrompt
local bg = game.ReplicatedStorage.BillboardGui

script.Parent.Archivable = true
local Body = script.Parent:Clone()
Body.Name = script.Parent.Name .. "'s_DeadBody"
Body:FindFirstChild("HumanoidRootPart").Anchored = true

while true do
	wait(0.1)
	if script.Parent.Humanoid.Health == 0 then
		if game.ReplicatedStorage.Dead.Value == false then
			wait(0.5)
			Body.HumanoidRootPart.Position = script.Parent.HumanoidRootPart.Position
			Body.HumanoidRootPart.Orientation = script.Parent.HumanoidRootPart.Orientation
			--cd:Clone().Parent = Body
			--ps:Clone().Parent = Body
			pp:Clone().Parent = Body
			--bg:Clone().Parent = Body
			Body.Parent = game.Workspace
			game.ReplicatedStorage.Dead.Value = true
		end
	end
end

But the HumanoidRootPart has to be always anchored. Doesn’t it?

If it’s Anchored, it won’t move since the PrimaryPart of the Character is the HumanoidRootPart.