Hey guys! I have this code for a radio. I checked all sound ID's, and tested each separately. They're correct. But with this code, the songs don't play. Why?
while wait() do songs = script.Parent:GetChildren() rando = math.random(1,#songs) if songs[rando].Name ~= "Script" then workspace["Now Playing"].Value = songs[rando].Name songs[rando]:Play() end end
You've put:
workspace["Now Playing"].Value = songs[rando].Name
You've missed out game.
, so it would be:
game.Workspace["Now Playing"].Value = songs[rando].Name