Game Ban System

Hello Developers!

I’m trying to make a ban system for my game that use’s a external database or system (e.g trello, firebase etc) and I was wondering if anyone can help me. I want to try and make something that when a user joins the game and they are on the banned list that it kicks them from the game saying something like “You are banned for ban_reason”

Any help would be appreciated! :heart:

You could try this:

local BannedPlayers = {
	["Player1"] = {
		Reason = "Reason"
	},
}

game.Players.PlayerAdded:Connect(function(player)
	for playerTemp, array in pairs(BannedPlayers) do
		if player.Name == playerTemp then
			local reason = array.Reason
			player:Kick("Reason: "..reason)
            break
		end
	end
end)


You can’t just ask code, you have to atleast try to attempt it. However its a little complicated if u wanna try to connect to a trello or firebase. But this amazing post might help u out.