There's a part in a sound file that i'd like to use but it's in the middle of the sound playing.
Is there a way to skip the part that i don't need?
01 | local sound = script.Sound |
02 | local whenToSkip = 10 -- 10 seconds into the sound |
03 | local howMuchToSkip = 5 |
04 |
05 | wait( 1 ) |
06 |
07 | sound:Play() |
08 |
09 | wait(whenToSkip) -- Wait until the song plays for this long |
10 |
11 | sound.TimePosition = sound.TimePosition + howMuchToSkip |
Feel free to change the whenToSkip
and howMuchToSkip
variables as you like.