Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't the animation start at the set TimePosition?

Asked by 8 years ago
Edited 8 years ago
local animTrack = Character.Humanoid:LoadAnimation(script.Frost:clone())
      animTrack.TimePosition = 1
print(animTrack.TimePosition)
animTrack:Play()

I tried printing the TimePosition and it is indeed set to 1, but the animation starts from the beginning instead of halfway through. Help would be greatly appreciated

EDIT Problem solved! The TimePosition has to be set after :Play() is called because apparently :Play() resets the TimePosition to 0. It would be nice to have a :Resume() method :p

Answer this question