local camera = workspace.CurrentCamera
local viewmodel = game.ReplicatedStorage:WaitForChild("viewmodel"):Clone()
viewmodel.Parent = camera
local animator = viewmodel:WaitForChild("AnimationController"):WaitForChild("Animator")
local animToPlay = animator:LoadAnimation(animator.Animation)
game:GetService("RunService"):BindToRenderStep(",", Enum.RenderPriority.Camera.Value, function()
local viewmodel = camera:WaitForChild("viewmodel") :: Model
viewmodel:SetPrimaryPartCFrame(camera.CFrame)
end)
animToPlay:Play()
print(animToPlay.IsPlaying)
printing true but the animation doesn’t seem to be playing on the arms