I had gotten bored so I made a Ban script, and I need to know if it works.
Bans = {"Player1"}
local Kick = false -- set to true to kick
for i,v in pairs(Bans) do
if v.Name == #Bans then
elseif Kick = true then
v:Kick()
end
end
end
end
I had gotten bored so I made a Ban script, and I need to know if it works.
Bans = {"Player1"}
local Kick = false -- set to true to kick
for i,v in pairs(Bans) do
if v.Name == #Bans then
elseif Kick = true then
v:Kick()
end
end
end
end
No this script would not work.
I can not modify the script at this time.
Nope, but try this
local bans = {"Random"}
function onjoin(player)
for i = 1, #bans do
if bans[i] == player.Name
then
player:remove()
end
end
end
game.Players.PlayerAdded:connect(onjoin)
Your mistake was you need to have a players actual child in game.Players to compare
This discussion is preserved as it was. New answers, comments, and votes are closed.