I am trying to make an AntiBan for my Admin Commands, however it does not work..
Here is what I currently have
AntiBan = false
if Msg:lower() == Main.Bet .. "antiban" then
if not AntiBan then
AntiBan = true
if AntiBan then
repeat wait()
local H = Instance.new("Hint", game.Workspace)
if Plr == nil then
H.Text = Plr.Name .. " has either left the game with AntiBan true, or has been kicked or banned. The server will now shutdown..."
wait(3)
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
v:Kick("Please do not ban or kick an Cryptoin admin!")
end
end
until not AntiBan
end
end
end
Please help, I have tried multiple things.
THIS IS INSIDE OF AN MODULESCRIPT

3 comments
Please tab your code correctly to make it easier to read for people trying to help.
Also, have you received any errors?
Impossible to read that code.