local i=script.Parent local M={}local Y=nil for i,Y in pairs(i:GetChildren())do if Y:IsA("\083\111\117\110\100")then table.insert(M,Y)end end while true do for i,U in pairs(M)do local X=M[math.random(1,#M)]repeat wait()X=M[math.random(1,#M)]until X~=Y Y=X X:Play()X.Ended:Wait()X:Stop()end wait()end
--Script Created by CarloMagnificient
local songs = script.Parent
local tablee = {}
local lastsong = nil

for i, v in pairs(songs:GetChildren()) do
	if v:IsA("Sound") then
		table.insert(tablee, v)
	end
end

while true do
	for a, c in pairs(tablee) do
		local chosensong = tablee[math.random(1, #tablee)]
		repeat
			wait()
			chosensong = tablee[math.random(1, #tablee)]
		until chosensong ~= lastsong
		lastsong = chosensong
		chosensong:Play()
		chosensong.Ended:Wait()
		chosensong:Stop()
	end
	wait()
end
