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()