I need some help, I have a script where I'm trying to set a custom walk and idle animation while a tool is equipped

humanoid:LoadAnimation is deprecated, so you should load animation on the animator instead. You can create an animator by using Instance.new(“Animator”) or reference it from the humanoid: local animator = humanoid:FindFirstChildOfClass("Animator")