-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


local sdb = false
local decendents = {}
function playSound(v)
	if not sdb then
		sdb = true
		decendents = {}
		local children = v:GetChildren()
		for i = 1,#children, 1 do
			if children[i]:IsA'Sound' then
				table.insert(decendents, children[i])
			end
			wait()
		end
		local soundClone = decendents[math.random(1, #decendents)]:Clone()
		nameobj = soundClone.Name
		soundClone.Parent = head
		soundClone.Name = "Voice"
		soundplaying = soundClone
		soundClone:Play()
		sdb = true
		return soundClone
	end
end

function removeSound()
	for _, v in pairs(head:GetChildren())do
		if v:IsA'Sound' then
			soundplaying = nil
			nameobj = nil
			sdb = false
			v:remove()
		end
	end
end
