Hello, i have an issue where my animation wont stop when using Track:Stop(), its a looped animation running in a basic stat training script that is called via a RemoteEvent, i checked to see if it was running at all and it was, but it didn’t stop the animation and there are no errors.
if CommandType == "Magic" then
local Animation = Instance.new("Animation")
Animation.AnimationId = "http://www.roblox.com/asset/?id=".. AnimationDictionary["MeditateSit"]
local Track = humanoid:LoadAnimation(Animation)
local IdleAnimation = Instance.new("Animation")
IdleAnimation.AnimationId = "http://www.roblox.com/asset/?id=".. AnimationDictionary["MeditateIdle"]
local IdleTrack = humanoid:LoadAnimation(IdleAnimation)
IdleTrack.Looped = true
if Parameter == "Add" then
PlayerStats.Magic.Value = PlayerMagic + (1450 + (PlayerLV * 50))
elseif Parameter == "Start" then
Track:Play()
task.wait(1)
IdleTrack:Play()
elseif Parameter == "End" then
IdleTrack:Stop() ---------------right here
end
end
the “Track” animation isnt looped so i didnt need to stop it since it only played once but the “IdleTrack” is looped, the problem is the :Stop() function isnt stopping the looped animation.
I don’t exactly know if it’ll make s difference, but you should be loading the animation via an Animator, that’s why when you do it with a Humanoid OR AnimationController it’ll be crossed out… because it’s deprecated.