I made a viewmodel and made a looping animation to hold the gun like any other FPS but the animation won’t play. I’ve tried setting a breakpoint on the line that plays the animation and it said it played but it didn’t look like it did.
This is the code from the module script that plays the animation:
function module.equip(viewmodel, gun, hold)
local GunHandle = gun.GunComponents.Handle
local HRP_Motor6D = viewmodel:WaitForChild("HumanoidRootPart").Handle
gun.Parent = viewmodel
HRP_Motor6D.Part1 = GunHandle
local Hold = script.Parent.Glock_Animations.AnimationController:LoadAnimation(hold)
Hold:Play()
end