Cancel ability to press shift during this animation

try to rewrite the check like this

if (gameProccesed and IsTyping) or animationTrack.IsPlaying then

Also this is the roblox documentation about AnimationTrack | Roblox Creator Documentation

Hm it also does not seem to do anything, isn’t there a way to disable the sprint script when the sit animation plays?