Here is what I have
playing = false
local TableOfIDs = {"160594536","412765335","632668884","326087110","714630890"}
math.randomseed(tick())
while wait() do
if playing == false then
script.Music:Stop()
script.Music.SoundId = "http://www.roblox.com/Asset?ID="..(TableOfIDs{math.random(1,#TableOfIDs)})
script.Music:Play()
else
print (";D")
end
end
while wait() do
if script.Music.isPlaying == true then
playing = true
else
playing = false
end
end
And this is the error
Workspace.Script:9: attempt to call global 'TableOfIDs' (a table value)
I don't understand what is wrong...

1 comment
For your title, IT claims that it is a table value, because of the error.