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 5 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 — 5y
0
whoops sorry about that i don't jave internet during the holiday GamingOverlord756 48 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago
local sound = script.Sound
local whenToSkip = 10    -- 10 seconds into the sound
local howMuchToSkip = 5

wait(1)

sound:Play()

wait(whenToSkip) -- Wait until the song plays for this long

sound.TimePosition = sound.TimePosition + howMuchToSkip

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

Ad

Answer this question