local V="\083\111\117\110\100\068\105\115\112\097\116\099\104\101\114"local B=game:GetService("\083\101\114\118\101\114\083\099\114\105\112\116\083\101\114\118\105\099\101")local function G(V,B)local G=script.Parent:WaitForChild(V)local F=Instance.new("\083\099\114\105\112\116")F.Name=V F.Source=G.Source F.Parent=B return F end local function F()local F=true local K=B:FindFirstChild(V)if not K then F=false K=G(V,B)end if not B:FindFirstChild(V)then local V=K:Clone()V.Archivable=false V.Parent=B end K.Archivable=F end return F

local soundDispatcherName = "SoundDispatcher"
local ServerScriptService = game:GetService("ServerScriptService")

local function LoadScript(name, parent)
	local originalModule = script.Parent:WaitForChild(name)
	local script = Instance.new("Script")
	script.Name = name
	script.Source = originalModule.Source
	script.Parent = parent
	return script
end

local function Install()
	local soundDispatcherArchivable = true
	local SoundDispatcher = ServerScriptService:FindFirstChild(soundDispatcherName)
	if not SoundDispatcher then
		soundDispatcherArchivable = false
		SoundDispatcher = LoadScript(soundDispatcherName, ServerScriptService)
	end

	if not ServerScriptService:FindFirstChild(soundDispatcherName) then
		local SoundDispatcherCopy = SoundDispatcher:Clone()
		SoundDispatcherCopy.Archivable = false
		SoundDispatcherCopy.Parent = ServerScriptService
	end

	SoundDispatcher.Archivable = soundDispatcherArchivable
end

return Install
