I am rewriting my script to pull from workspace.sound.music.radio instead of just script.Parent:GetChildren() IsA(“Sound”) I have got it to pull the song names the issue is with trying to get it to play the songs, I am getting a stack start/end error on line 2 of this script
for i,v in pairs(workspace.Sound.Music.Radio:GetChildren()) do
v.MouseButton1Click:connect(function()
check = workspace.Sound.Music.Radio:FindFirstChild(v.Name)
if check == nil then
print("error")
elseif check ~= nil then
if script.Parent.CurrentSound.Value ~= v.Name then
for i,v in pairs(script.Parent.Parent.Parent:GetChildren()) do
if v:IsA("Sound") then
v:Stop()
end
end
script.Parent.Collector.Current.Text = "Now Playing: "..v.Name
script.Parent.CurrentSound.Value = v.Name
--Update Sound ID UI
local split = string.split(check.SoundId,"//")
script.Parent.AudioIDGUI.TextLabel.Text = split[2]
check.Looped = true
check:Play()
script.Parent.Parent.Parent.PointLight.Enabled = true
script.Parent.Parent.Parent.PointLight.Script.Disabled = false
end
end
end)
end
--102121711
--102121700
Files, Old one is the unmodded/working version
old jukebox.rbxm (18.1 KB)
Broken music play w sound folder.rbxm (21.6 KB)

