so i have swords in my game and whenever i equip a sword, just like in gpo, idle anim plays, and theres also walking etc, everything works fine, but then theres the sprinting, now heres an example of how the sprint code in my game is:
local RunAnim = 'someidhere';
uis.inputbegan:connect(function()
if key == w then runanim:play end
end
now i want each time the player equips a tool that has a new run anim, to update the current running animation to the new running animation, now i tried doing it by using animator.animationplayed but it didnt work, does anybody know how to do this,
if you need more explanation tell me
Note: i want it to update instantly without having the player stop sprinting and sprint again to update current animations