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

How Do You Preload a Sound? [ANSWERED]

Asked by 9 years ago

[ANSWERED] How do you preload a sound? When I play the game, it doesn't play the sound.

while true do
    game.Soundscape.Sound:Play()
    wait(120.11100000000000421)
end

Thank you!

1 answer

Log in to vote
0
Answered by 9 years ago
local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset?id="
sound.Looped = true
sound.Parent = game.Soundscape
sound:Play()
Ad

Answer this question