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

How do I get the length of a sound?

Asked by 10 years ago

I've tried using the sound's value 'TimeLength' but it never updates immediately so I can't actually use it, I was making something for my game that will only work if this works. Please help, I've even tried using GetProductInfo but there is nothing to get the length of an audio.

2 answers

Log in to vote
0
Answered by 10 years ago

As stated in the change log, Sound.TimeLength and Sound.TimePosition have been disabled due to bugs. Just wait until they turn it back on again.

Ad
Log in to vote
-2
Answered by 10 years ago

Try putting it in a "while true do" loop and put a wait(yourtimehere) afterwards so that it keeps checking it constantly.

Answer this question