I made a radio but the issue is it only check if one sound is playing. I think anyways that’s what’s happening. I only want it to play one audio at a time but it keeps trying to play multiple or restarts the one already playing.
code
local joey = true
while joey do
for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA("Sound") then
local joe = math.random(1, 3)
print(joe)
if v.Playing == false then
if joe == 1 then
script.Parent.HardRockMadness:Play()
print("playing rock madness")
end
if joe == 2 then
script.Parent["Fallschirmjäger"]:Play()
print("Playing fallschrimjager")
end
if joe == 3 then
script.Parent.RockStyle:Play()
print("Playing RockStyle")
end
wait(10)
end
end
end
end