I am making a viewmodel system. I have an equip animation, and after thats finished I want it to go to the idle animation, but for some reason after the equip animation is finished, it reverts back to the default character rig and then plays the idle animation.
Is there anyway to smoothly lerp between these animations? Im not to familiar with animation systems so any help is appreciated.
local module = {}
function module.Init(...)
local anim = viewModel.Animations.Equip
local idle = viewModel.Animations.Idle
function module.Start()
local animationTrack = viewModel.AnimationController.Animator:LoadAnimation(anim)
animationTrack.Looped = false
animationTrack:Play()
animationTrack.Stopped:Connect(function()
print("Ahh")
local idleTrack = viewModel.AnimationController.Animator:LoadAnimation(idle)
animationTrack.Looped = true
animationTrack:Stop()
idleTrack:Play()
end)
end
end
return module