How to "Reload" an AnimationTrack

Im currently making a custom Animate script, supporting multiple run animations based on speed among other things

  1. I want to add support for changing the animations in-game, i’ve already achieved this effect using a modified version of the default roblox animate script

  2. when changing the animation ids, the animation loaded in the AnimationTrack doesn’t update, making it necessary for me to reload the entire script, but im not sure how to go about making only the AnimationTracks reload

  3. I’ve tried resetting the AnimationTrack by redoing Animator:LoadAnimation() but that bleeds AnimationTracks and i’d like changing animations to work for as long as possible.

This is how i load the animations (at the beginning of the script)

local AScr = script
local Animator = Humanoid.Animator
local Anims = require(Char.PlayerAnimationsModule) -- where i keep and change the Animation Ids

local Idle = Animator:LoadAnimation(AScr.Idle)
local Walk = Animator:LoadAnimation(AScr.Walk)
local Jog = Animator:LoadAnimation(AScr.Jog)
local Dash = Animator:LoadAnimation(AScr.Dash)
local Run = Animator:LoadAnimation(AScr.Run)

then i change the animation ids like this

	AScr.Idle.AnimationId = Anims.Idle
	AScr.Walk.AnimationId = Anims.Walk
	AScr.Jog.AnimationId = Anims.Jog
	AScr.Dash.AnimationId = Anims.Dash
	AScr.Run.AnimationId = Anims.Run