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

I need Sound Help?

I have a sound in my game. It works in Studio but not in Play mode. Help?

Script:

while true do
local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=27697743"
sound.Parent = game.Soundscape
sound:Play()
wait (120)
end

1 answer

✓ Accepted answer

Your script appears to be running fine, the music is a bit quiet though.

Some of the code does seem kind of ugly, I'll clean it up for you.

--Make sure this is in a local script, and is in StarterPack, or StarterGui.
local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=27697743"
sound.Parent = game.Soundscape
sound:Play()
sound.Looped = true --Now the song can play over and over again, without while true do.
sound.Volume = 2 --Not sure how well this will work, but hopefully it will make it sound better.

1 comment

0

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