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

This sound script doesn't seem to work, could anyone help me?

Asked by 9 years ago

I made a code for my friend but the script is not working.

songs = {165065112, 145170576, 177027430, 153219396, 156643822, 180076355, 146682904, 146558717, 165497101, 143649712}
while true do
    local id = math.random(1, #songs)
    script.Parent.SoundId = "rbxassetid://"..id
    wait(10)
end

It is supposed to pick a random song to play, and then another random one. But not one bit of the code is working.

Could anyone help me out?

There was nothing in the output

Answer this question