Im trying to add a ban function to my holo commands(I released them on a different account) and I have some questions, first is how in general would this be performed(I have a sketch of something I think it would look like but its not very much) anyways, any help is greatly appreciated.
local admins ={"",}-- What Users(Needs to be EXACT)
local bans = {"ProphetCybrax"}
local gid = 0 -- What group THIS IS NEEDED
local gidranks = {0,0,0,0} -- What Ranks you want NEEDED
--Dont Mess with the Below --
--
function contains(list, element)
for _, value in pairs(list) do
if value == element then
return true
end
end
end
game.Players.PlayerAdded:connect(function(Xd)
if contains(bans, Xd.Name) then
for _,i in pairs(bans)do
if Xd.Name == i then
Xd:Kick()
end
end
end
end)

4 comments
the sketch works by the way, I just want to know if this is a "Decent" way to perform this
You need to be able to add players to the ban list in game, so do a player.Chatted(msg) function for it. But it looks good.
your not supposed to be able to ban people in game just yet, this is just a holo commands script.
Well, I do not know any other ways to ban, other than :remove() (performed on the player). You have got it sorted :) If you need help making an in game ban command, refer to me :)