local G={}local M=script.Parent:GetChildren()for M,t in pairs(M)do if t:IsA("\073\110\116\086\097\108\117\101")and t.Name=="\077\117\115\105\099\073\100"then table.insert(G,t.Value)end end local t=Instance.new("\083\111\117\110\100",script.Parent)t.Name="\077\117\115\105\099\080\108\097\121\101\114"if looped==true then t.Looped=true else t.Looped=false end t.Pitch=pitch t.Volume=volume while true do t.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..G[math.random(1,#G)]t:Play()wait(songPlayTime)t:Stop()wait(nextSongPlayTime)end
-- DO NOT EDIT THE BELOW UNLESS YOU'RE A SCRIPTER AND KNOW WHAT YOU'RE DOING! --

local songValues = {}
local songs = script.Parent:GetChildren()

for i, v in pairs(songs) do
	if v:IsA("IntValue") and v.Name == "MusicId" then
		table.insert(songValues, v.Value)
	end
end

local sound = Instance.new("Sound", script.Parent)
sound.Name = "MusicPlayer"

if looped == true then
	sound.Looped = true
else
	sound.Looped = false
end

sound.Pitch = pitch
sound.Volume = volume

while true do
	sound.SoundId = "rbxassetid://" .. songValues[math.random(1, #songValues)]
	sound:Play()
	wait(songPlayTime)
	sound:Stop()
	wait(nextSongPlayTime)
end
