CEs.PlaySound.OnClientEvent:connect(function(n,t)if not n then return end if not t then if n:IsDescendantOf(plr.Character)then return end else if plr.Character==t then return end end local H=Instance.new("\083\111\117\110\100",n.Parent)H.SoundId=n.SoundId H.PlaybackSpeed=n.PlaybackSpeed H.Volume=n.Volume H.Name=n.Name.."\080\108\097\121\105\110\103"H:Play();(game:GetService("\068\101\098\114\105\115")):AddItem(H,n.TimeLength)end)CEs.StopSound.OnClientEvent:connect(function(n,t)if not n then return end if not t then if n:IsDescendantOf(plr.Character)then return end else if plr.Character==t then return end end local H=n.Parent:FindFirstChild(n.Name.."\080\108\097\121\105\110\103")if H then H:Destroy()end end)

CEs.PlaySound.OnClientEvent:connect(function(Sound,Rchr)
	if not Sound then return end
	if not Rchr then
		if Sound:IsDescendantOf(plr.Character) then return end
	else
		if plr.Character == Rchr then return end
	end
	
	local newSound = Instance.new("Sound", Sound.Parent)
	newSound.SoundId = Sound.SoundId
	newSound.PlaybackSpeed = Sound.PlaybackSpeed
	newSound.Volume = Sound.Volume
	newSound.Name = Sound.Name.."Playing"
	newSound:Play()
	game:GetService("Debris"):AddItem(newSound, Sound.TimeLength)
end)

CEs.StopSound.OnClientEvent:connect(function(Sound,Rchr)
	if not Sound then return end
	if not Rchr then
		if Sound:IsDescendantOf(plr.Character) then return end
	else
		if plr.Character == Rchr then return end
	end
	local newSound = Sound.Parent:FindFirstChild(Sound.Name.."Playing")
	if newSound then newSound:Destroy() end
end)
