Cloning the player and making it play an animation

I’m trying to clone the player and have the clone play an animation but it’s not working. The cloning part works, its just that the animation won’t play.

char.Archivable = true
local clonedChar = char:Clone()
local animator= clonedChar.Humanoid:FindFirstChildOfClass("Animator")
clonedChar.Parent = workspace
for i,v in ipairs(clonedChar:GetChildren()) do
   if v:IsA("BasePart") then
      v.Anchored = true
      v.CanCollide = false
      v.CanTouch = false
   end
end
clonedChar:SetPrimaryPartCFrame(fakeChar:GetPrimaryPartCFrame())
fakeChar:Destroy()

local animation = Instance.new("Animation")
animation.Parent = clonedChar
animation.AnimationId = "rbxassetid://8968490470"

local track = animator:LoadAnimation(animation)
track.Looped = true

track:Play()

you have anchored every part of the cloned character
i think the played animation would not work for that

if i am right maybe you could just anchor the humanoidrootpart
i just assume that you want to play the animation on the cloned character without moving or falling

1 Like

It works now, thanks for the help

1 Like

You can also increase the density of the cloned character’s joints (limbs) to math.huge.