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

0

Please tab your code correctly to make it easier to read for people trying to help.

0

Also, have you received any errors?

0

Impossible to read that code.