In my code I have a sound that plays and then it waits for 6 seconds. The problem is, the sound sometimes is delayed by like half a second and doesn't stop where I want it to. Can you point me into the right direction as to what I would use to stop the song when it is a certain amount of time in? Is there a certain function I need to use or something???
✓ ANSWER ACCEPTED
Is there a way to wait until a sound is a certain amount of time in?
2 answers
✓ Accepted answer
There are some answers in the comments but yes you could just add a wait to the part of the song you want to stop or https://developer.roblox.com/en-us/api-reference/property/Sound/TimePosition
Wow, I figured it out. Apparently you can't just put equals 'cause it just plays through the sound anyways... You have to put >= or >...
1 comment
0
I feel so stupid for asking this after figuring it out... It works perfectly now though...
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Sound.TimePosition
I tried using repeat wait () until it was a certain amount of time in but it didn't work. Then I just assumed that I can't use it. Is there a different way I should use it?