AnimChannel:Duration()

Version added: before 9.5

Returns the duration of the animation channel (basically, the time of the last keyframe)

Return type (int32): the duration of the animation channel

Returns the duration of the animation channel (basically, the time of the last keyframe).