:AdjustSpeed() working inconsistently

Using adjustspeed to “pause” a character’s animations, only works a fraction of the time,

the print shows the animations that are playing, but they almost never are affected


if status.Class == "freeze" then
	for _, tracks in pairs(animator:GetPlayingAnimationTracks()) do
                print(tracks)
		tracks:AdjustSpeed(0)
		return
	end
end

1 Like

Your issue is that you’re breaking out of the for loop because of the return Removing it should work:

if status.Class == "freeze" then
	for _, tracks in pairs(animator:GetPlayingAnimationTracks()) do
        print(tracks)
		tracks:AdjustSpeed(0)
	end
end

Couldn’t you just do tracks:Stop()? Also remove the return, I don’t think it is required

Stop ends the animation, but adjusting its speed freezes the characters animation position

thanks, i keep overlooking the most obvious things lol

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.