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

How to skip a certain part of a sound file?

Asked by 6 years ago

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?

0
If I answered your question, PLEASE ACCEPT IT. Zenith_Lord 93 — 6y
0
whoops sorry about that i don't jave internet during the holiday GamingOverlord756 48 — 6y

1 answer

Log in to vote
1
Answered by 6 years ago
01local sound = script.Sound
02local whenToSkip = 10    -- 10 seconds into the sound
03local howMuchToSkip = 5
04 
05wait(1)
06 
07sound:Play()
08 
09wait(whenToSkip) -- Wait until the song plays for this long
10 
11sound.TimePosition = sound.TimePosition + howMuchToSkip

Feel free to change the whenToSkip and howMuchToSkip variables as you like.

Ad

Answer this question