while wait(1) do
if script.Parent.Text == "Enter in song ID" or script.Parent.Text == "" then
wait()
else
music = script.Parent.song
music.SoundId = "http://www.roblox.com/asset/?id="..tonumber(script.Parent.Text)-1
script.Parent.Parent.Fox.song:stop()
script.Parent.Parent.Radio.song:stop()
script.Parent.Parent.Viva.song:stop()
script.Parent.Parent.Notafraid.song:stop()
script.Parent.Parent.Fix.song:stop()
script.Parent.Parent.Lost.song:stop()
music:play()
end
end
I can't figure out what's wrong no matter what I do!!!!
The script lets ppl put in a song id into a textbox which is the parent of this script. There is a song whose parent is also the textbox and I'm changing the song id to the id entered and playing that song.
However the song ID isn't changing, and the song isn't playing...