local V=game:GetService("\080\108\097\121\101\114\115")local N=require(script.Parent.Parent:WaitForChild("\115\097\110\105\116\105\122\101\080\108\097\121\101\114"))local q={postParse=function(q,E)local I={}if type(q)=="\116\097\098\108\101"then for V,m in V:GetPlayers()do local M for V,N in q do if m==N then M=true break end end if not M then m=N(E,m)if m then table.insert(I,m)end end end elseif typeof(q)=="\073\110\115\116\097\110\099\101"then for V,m in V:GetPlayers()do if m~=q then m=N(E,m)if m then table.insert(I,m)end end end end return I end;prefixes={["\037\036"]="\109\097\103\105\099\080\108\097\121\101\114\115",["\064"]="\114\111\108\101\080\108\097\121\101\114\115",["\037\037"]="\116\101\097\109\080\108\097\121\101\114\115"}}return function(V) end
local Players = game:GetService("Players")

local sanitizePlayer = require(script.Parent.Parent:WaitForChild("sanitizePlayer"))

-- TODO: finish inverse type

local typeInverse = {
	postParse = function(arg, self)
		local players = {}
		if type(arg) == "table" then
			for _, player in Players:GetPlayers() do
				local matched
				for _, player2 in arg do
					if player == player2 then
						matched = true
						break
					end
				end
				if not matched then
					player = sanitizePlayer(self, player)
					if player then
						table.insert(players, player)
					end
				end
			end
		elseif typeof(arg) == "Instance" then
			for _, player in Players:GetPlayers() do
				if player ~= arg then
					player = sanitizePlayer(self, player)
					if player then
						table.insert(players, player)
					end
				end
			end
		end
		return players
	end,
	prefixes = {
		["%$"] = "magicPlayers",
		["@"] = "rolePlayers",
		["%%"] = "teamPlayers",
	},
}

return function(_K)
	-- _K.Registry.registerType("inversePlayers", typeInverse)
end
