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

How can I make it so it loops the sound?

Asked by 10 years ago

I need this script so it will loop the sound.

local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=137847809" --Change the last numbers of the link to the id of your audio.
sound.Parent = script.Parent
sound.Volume = 50
sound:play()

3 answers

Log in to vote
2
Answered by 10 years ago
local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=137847809" --Change the last numbers of the link to the id of your audio.
sound.Parent = script.Parent
sound.Volume = 50
sound.Looped=true
sound:play()

0
2ways HexC3D 830 — 10y
0
owow Tempestatem 884 — 10y
0
how do i stop the looping with another script >:( emilisss44 0 — 3y
Ad
Log in to vote
2
Answered by 10 years ago

Try adding sound.Looped to your script, true for it to Loop the sound over and over again repeatedly until set to false or :Stop(), or false for it to only :Play() once. sound.Looped = true Loops the sound. sound.Looped = false Doesn't loop the sound. I hope this helped!

Log in to vote
0
Answered by 3 years ago

Actually you no longer need a script, just move the audio to SoundService, then go to properties and scroll down till you find the word Loop with an unchecked box next to it. Then you can click it and it will loop. Also make sure to scroll down a bit more and enable Playing or it wont play in-game.

Answer this question