Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to use TimePosition?

Hi all! I'm currently manipulating audio in my latest project. Problem is, I can't seem to get TimePosition to work properly.

Bill.TimePosition = 19
Bill:Play()

This is clearly a small chunk of the code. The script seems to simply skip placing the audio at 19 seconds. I looked around on the forums, but couldn't find anything very useful.

If anyone knows how to make this work, please let me know! Thanks!

1 answer

✓ Accepted answer

Calling the function Play on the sound will make it start at TimePosition 0. You need to use the function Resume, which will play it from the current TimePosition:

Bill.TimePosition = 19
Bill:Resume()

Keep in mind, TimePosition, TimeLength, and Resume will only work client side. If you want it to play for everyone at that specific time position, then you'll have to set the TimePosition and call Resume for every player in the game.

2 comments

0

Thank you so much! This was driving me crazy

0

No problem :)

This discussion is preserved as it was. New answers, comments, and votes are closed.