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