Datastore Request was added to queue

I already made a separate post about this but no one else appeared to answer. Long story short, making mod gui, ban button upon pressing says “DataStore Request was added to queue”, I also have a problem where it kicks me instead of the playerToBan but when I add playerToBan instead of player… It errors saying that I attempted to call a nil value…

Code :

ban.OnServerEvent:Connect(function(player, playerToBan, reason)
	if not table.find(ADMIN, player.UserId) then return end
	playeruserID = getUserIdFromUsername(playerToBan)
	if playeruserID == 1 then
		print("Cannot Ban This User!")
		return
		else
		local success, errormessage = pcall(function()
			BanData:SetAsync(playeruserID, reason)
		end)
		if success then
			if game.Players:FindFirstChild(playerToBan) then return end
				playerToBan:Kick(reason)
			end
		end
end)

The “DataStore Request was added to queue” error normally only happens when there are too many requests being sent to the datastore service. Do you have any other scripts that could be sending datastore requests too often, therefore, putting new requests in a queue? As for the playerToBan issue, I don’t see anything wrong with the current code that could be causing it, but I could be wrong, it’s late and I am pretty tired. I am assuming that your getUserIdFromUsername is a function you defined above the given code.