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

How to increase playback speed?

Asked by 6 years ago

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!

0
PlaybackSpeed = PlaybackSpeed + 1 ^^ TheeDeathCaster 2368 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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!

Ad

Answer this question