Everything was going smoothly until I attempted to load an animation; at this point I get a "Cannot Load AnimationClipProvider Service" error;
local plr = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
local RS = game:GetService("RunService")
local rStorage = game:GetService("ReplicatedStorage")
local Anims = rStorage.Animations
local viewModel = rStorage.DefaultView:Clone()
local Animations = {
["idle"] = viewModel.AnimationController.Animator:LoadAnimation(Anims.Bare_Idle),
}
viewModel.Parent = camera
Animations.idle:Play()
RS:BindToRenderStep("ViewModel", 301, function(DT)
viewModel:PivotTo(camera.CFrame )
end)
end
I've looked this over and I can't seem to understand whats causing this; I have the animation controller and everything in the right place as well. Any pointers are appreciated

3 comments
I have encountered this problem before. I am still uncertain as to why, but I had to parent the ViewModel to the workspace before loading the animations onto it.
Thanks that fixed it! If I had to guess I'd say that the viewmodel doesn't exist "fast enough" when cloned as compared to being in the workspace; I'll just have them stored off the main map somewhere. (I'd upvote if I could but I'm not high enough rep)
In the title of this post edit it and put Solved