Cannot load the AnimationClipProvider Service. How to fix this?

I made a ViewportFrame for a model and play an animation on that model.

If i play the animation this error comes up:

Cannot load the AnimationClipProvider Service

This is my code:

ClonedChar.Parent = viewportframe.WorldModel
			ClonedChar:SetPrimaryPartCFrame(CFrame.new(Vector3.new(0,-1,-5),Vector3.new(25,-1,30)))
			
			game:GetService('RunService').Stepped:Wait()
			local animationTrack = ClonedChar.Humanoid.Animator:LoadAnimation(ClonedChar.Animations.Idle)
			animationTrack:Play()
1 Like

try using

game:GetService('RunService').PreSimulation:Wait()

instead of the .stepped

Still didn’t work btw the code is in an function that’s fired in about 15sec

What is the parent of the worldmodel? a screengui or a workspace

If its a screengui, then the screengui should have reset on spawn enabled

The parent of the worldmodel is a viewportframe and the viewportframes parent is a screengui.

Turning On Spawn Enabled still didn’t work

Did you ever find the solution to this? Encountering it right now and nothing seems to be working.

Still have not found a solution for this problem :confused: