Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

My AntiBan wont work for my Admin Commands?

Asked by 8 years ago

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

0
Please tab your code correctly to make it easier to read for people trying to help. Async_io 908 — 8y
0
Also, have you received any errors? Async_io 908 — 8y
0
Impossible to read that code. AZDev 590 — 8y

Answer this question