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

Is there a script for adding a song to your game to repetitively play?

In the Library part of the Catalog I found a sound ID that I liked, and I wanted to add it to my game to reptitively play.

1 answer

There is a Looped property of the audio object. If you set it to true then your song will play over and over.

local sound = Instance.new("Sound",workspace)
sound.SoundId = ""
sound.Looped = true
sound:Play()

2 comments

0

Thank you so much! I will try to see if this works. Do I have to put this script inside of anything inside Workspace?

0

Put the script inside workspace and make sure its a local script

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