As said in the title, How do I make a radio like the one in Vibe Station? I want it to be modular, like you could put values with song ids in different folders for different stations. I want to have folders for different stations so if you put more you get more stations on the radio I'm not asking for code, I'm asking how do i make a script that does the following above?
I've made a script trying to replicate this:
local channels = {}
local SoundIndex = 0
local Index = script.Parent.Channel
local music = script.Parent.MusicPlayer
local soundinfo = game:GetService("MarketplaceService")
for i, v in pairs(script.Parent.channels:GetChildren()) do
table.insert(channels, v)
end
local function main()
for i, v in pairs(script.Parent.channels:GetDescendants()) do
if v.Parent == channels[Index.Value] then
Index:GetPropertyChangedSignal("Value"):Connect(function()
SoundIndex = SoundIndex + 1
script.Parent.MusicPlayer.SoundId = "rbxassetid://" .. v.Value[SoundIndex]
music:Play()
music.Ended:Wait()
wait(0.5)
end)
end
end
end
local function forward()
Index.Value = Index.Value + 1
if Index.Value == #channels + 1 then
Index.Value = 1
end
print(Index.Value)
main()
end
local function backward()
Index.Value = Index.Value - 1
if Index.Value <= 0 then
Index.Value = #channels
end
print(Index.Value)
main()
end
script.Parent.Frame.Forward.MouseButton1Click:Connect(forward)
script.Parent.Frame.Backward.MouseButton1Click:Connect(backward)
But it doesn't work. Again, all I'm asking for is how do I make a script that does something like the radio in vibe station.

2 comments
Sorry mate, as soon as I joined the game to see what the radio system was like I had to dip. First thing I saw was "damn girl you lookin mighty fine like febreeze" or som. Sorry I couldn't help.
you could've closed the chat but ok