Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to increase playback speed?

I am trying to make a sound get faster and faster as it continues, also be aware, I am a total noob at scripting and know probably nothing about it. So sorry!

script.Parent.Sound:Play()
script.Parent.Sound.PlaybackSpeed = 1+1 
script.Parent.Sound.Looped = true

Sorry that it is nooby, thanks if you can help!

1 comment

0

PlaybackSpeed = PlaybackSpeed + 1 ^^

1 answer

✓ Accepted answer

Your problem was that you need to do

script.Parent.Sound.PlayerbackSpeed = script.Parent.Sound.PlayerbackSpeed + 1

You need to tell ROBLOX Lua exactly what value you want to change.

If you want it to go faster FOREVER, this is a script you can use:


script.Parent.Sound.Looped = true

while wait(1) do --set that number to the amount of seconds you want it to wait
script.Parent.Sound:Play()
script.Parent.Sound.PlaybackSpeed = script.Parent.Sound.PlaybackSpeed + 1
end 

If this helped, please press "Accept Answer" under this. Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.