function methods.InternalApplyRobloxFilter(K,M,O,y)if RunService:IsServer()and not RunService:IsStudio()then local e=K:GetSpeaker(M)local d=y and K:GetSpeaker(y)if e==nil then return nil end local P=e:GetPlayer()local h=d and d:GetPlayer()if P==nil then return O end local o=tick()local i=0 while true do local M,y=pcall(function()if h then return Chat:FilterStringAsync(O,P,h)else return Chat:FilterStringForBroadcast(O,P)end end)if M then return y else warn("\069\114\114\111\114 \102\105\108\116\101\114\105\110\103 \109\101\115\115\097\103\101\058",y)end i=i+1 if i>MAX_FILTER_RETRIES or tick()-o>MAX_FILTER_DURATION then K:InternalNotifyFilterIssue()return nil end local e=FILTER_BACKOFF_INTERVALS[math.min(#FILTER_BACKOFF_INTERVALS,i)]local d=e+(math.random()*2-1)*e wait(d)end else if not StudioMessageFilteredCache[O]then StudioMessageFilteredCache[O]=true wait(.2)end return O end return nil end
--///////////////// Internal-Use Methods
--//////////////////////////////////////
--DO NOT REMOVE THIS. Chat must be filtered or your game will face
--moderation.
function methods:InternalApplyRobloxFilter(speakerName, message, toSpeakerName) --// USES FFLAG
	if RunService:IsServer() and not RunService:IsStudio() then
		local fromSpeaker = self:GetSpeaker(speakerName)
		local toSpeaker = toSpeakerName and self:GetSpeaker(toSpeakerName)

		if fromSpeaker == nil then
			return nil
		end

		local fromPlayerObj = fromSpeaker:GetPlayer()
		local toPlayerObj = toSpeaker and toSpeaker:GetPlayer()

		if fromPlayerObj == nil then
			return message
		end

		local filterStartTime = tick()
		local filterRetries = 0
		while true do
			local success, message = pcall(function()
				if toPlayerObj then
					return Chat:FilterStringAsync(message, fromPlayerObj, toPlayerObj)
				else
					return Chat:FilterStringForBroadcast(message, fromPlayerObj)
				end
			end)
			if success then
				return message
			else
				warn("Error filtering message:", message)
			end
			filterRetries = filterRetries + 1
			if filterRetries > MAX_FILTER_RETRIES or (tick() - filterStartTime) > MAX_FILTER_DURATION then
				self:InternalNotifyFilterIssue()
				return nil
			end
			local backoffInterval = FILTER_BACKOFF_INTERVALS[math.min(#FILTER_BACKOFF_INTERVALS, filterRetries)]
			-- backoffWait = backoffInterval +/- (0 -> backoffInterval)
			local backoffWait = backoffInterval + ((math.random() * 2 - 1) * backoffInterval)
			wait(backoffWait)
		end
	else
		--// Simulate filtering latency.
		--// There is only latency the first time the message is filtered, all following calls will be instant.
		if not StudioMessageFilteredCache[message] then
			StudioMessageFilteredCache[message] = true
			wait(0.2)
		end
		return message
	end

	return nil
end
