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

How do I loop a song in my game?

Asked by 10 years ago

When I add a song and put the script on it. I have problems to do make the song loop itself. I need you guys to help me please and thanks.

8 answers

Log in to vote
1
Answered by 10 years ago

In your song properties thick the "Looped" box

script (if you need it)

LOCAITONTOAUDIO.Looped = true

if its not that then i dont know .-.

Ad
Log in to vote
1
Answered by 10 years ago
audio = Instance.new("Sound",Workspace)
audio.SoundId = "http://www.roblox.com/asset/?id=AUDIOID"
while true do
wait(10)
audio:Play()
end
Log in to vote
0
Answered by 10 years ago

Oh no problem but explaining may take some time... http://www.roblox.com/Music-script-Newest-version-item?id=164816688 Uh here is my music script it has looped option <3

Log in to vote
0
Answered by 10 years ago

To loop a song, you must go onto the sound's audio and click on the looped option.

Then, just do something like this:

audio=game.Workspace.audio

audio:Play()

This will endlessly keep on playing the song until you use audio:Stop()

Good luck with your project!

0
Thanks this really helped chill22518 145 — 10y
0
No problem! WelpNathan 307 — 10y
Log in to vote
0
Answered by
Adryin 120
10 years ago

Heres the most simple version I guess..

local AudioId = [[THE SOUND ID HERE]]

i = Instance.new("Sound")
i.Parent = game.Workspace
i.SoundId = "rbxassetid://"..AudioId
wait()
i.Looped = true
i.Volume = 1
Log in to vote
0
Answered by 10 years ago

PUT THIS SCRIPT IN THE AUDIO! Very simple.

script.Parent.Looped=true
Log in to vote
0
Answered by
woodengop 1134 Moderation Voter
10 years ago

Or Just open Localscript and PUT IT IN STARTERGUI And put the Sound In Workspace and click Loop

Heres the Script

Game.Workspace.Sound:play() -- You can rename the Sound to what ever as long as you Name the Sound in Workspace the same name in the Script
Log in to vote
0
Answered by 10 years ago

Put this in your audio...

script . Parent . Looped = true script . Parent : Play()

Answer this question