Roblox editor errors when trying to edit animation

Hello,

I’m trying to create some animations for my game but for some strange reason every time i add a keyframe or drag the slider the editor throws the following error:

22:33:45.945 builtin_AnimationClipEditor.rbxm.AnimationClipEditor.Src.Components.TrackActions:268: attempt to index nil with 'Type' - Edit

I am using a custom rig where a model is attached to the right hand of the rig via Motor6D and the other hand has a model attached in the same fashion. The Motor6Ds are named differently and their “Handles” are also named differently

Thanks in advance