Why does my ChatHandler Script Say I'm not permitted to use Admin Commands?

I’m working on re-making my old chat commands project and for some reason I’m not allowed to use the commands, event though I am permitted (Have My Id on Module) Help Please
Code:

local PlayerService = game:GetService("Players")
local ModulesFolder = game.ServerStorage.SERVERSTORAGE
local MainScriptsFolder = game.ServerScriptService.SERVERSCRIPTSERRVICE
local ValidIDs = require(ModulesFolder.ValidIDs)
local AllCommands = require(ModulesFolder.AllCurrentCommands)
function CheckPlayersPermisson(PlayerToCheck,ModuleToSearch)
	local PlayerVar
	for _, validId in pairs(ModuleToSearch) do
		if PlayerToCheck.UserId == validId then
			PlayerVar = PlayerToCheck
		end
	end
	if PlayerVar ~= nil then
		return true
	else
		return false
	end
end
function SearchForClosestMatch(WhatToSearch, TypeOfSearch)
	if TypeOfSearch == "Action" then
		for _, validCmd in pairs(AllCommands) do
			if string.match(string.lower(WhatToSearch) or string.upper(WhatToSearch),"^".. string.lower(validCmd) or string.upper(validCmd)) then
				return validCmd
			end
		end
	elseif TypeOfSearch == "Player" then
		for _, plr in pairs(game.Players:GetPlayers()) do
			if string.match(string.lower(plr.Name), "^"..string.lower(WhatToSearch)) then
				return plr
			else
				return nil
			end
		end
	end
end

function Main(Message)
	local ArgumentTable = {}
	for Word in string.gmatch(Message,"%a+") do
		table.insert(ArgumentTable, #ArgumentTable +1, Word)
	end
	if #ArgumentTable > 0 then
		local Action = ArgumentTable[1]
		if SearchForClosestMatch(Action, "Action") == AllCommands[1] then
			KickTarget(ArgumentTable[2], ArgumentTable[3])
		end
	end
end

function KickTarget(Target, Reason)
	if Target == string.lower("All") or string.upper("All") or "All" then
		for _, plr in pairs(game.Players:GetPlayers()) do
			plr:Kick(Reason)
		end
	else
		local Player = SearchForClosestMatch(Target, "Player")
		Player:Kick(Reason)
	end
end


PlayerService.PlayerAdded:Connect(function(Player)
	print(Player.UserId)
	local Allowed = false
	if CheckPlayersPermisson(Player, ValidIDs) then
		Allowed = true
	end
	Player.Chatted:Connect(function(Msg) --Saves their messsge to variable 'Msg'
		if Allowed then
			Main(Msg)
		else
			warn(Player.Name.." Does Not Have Permission")
		end
	end)
end)