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

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

Asked by 10 years ago

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

Log in to vote
2
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
10 years ago

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()
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? xxMarvelBobbyxx 10 — 10y
0
Put the script inside workspace and make sure its a local script Operation_Meme 890 — 10y
Ad

Answer this question