print[[To Ban A Player Enter _G.Ban("PLAYERNAME") Into The Command Bar]] print[[To Unban A Player Enter _G.Unban("PLAYERNAME") Into The Command Bar]] --[[ Variables for me to use ]]-- create = Instance.new Do = _G --[[ End of list ]]-- if game.Workspace:FindFirstChild("BannedList") == nil then local M = create("Model") M.Parent = game.Workspace M.Name = "BannedList" end Do.Ban = function(player) local BL = game.Workspace:FindFirstChild("BannedList") print("Checking for Bannedlist") wait(0.5) if BL ~= nil then print("Bannedlist found!") wait(0.5) if BL:FindFirstChild(player) == nil then print("Banning Player "..player) wait(0.5) local BanPlr = create("StringValue") BanPlr.Parent = BL BanPlr.Name = player print("Player "..player.." Has Been Banned") else print("Player "..player.." Has Already Been Banned") end else print("Bannedlist Not Found") end end Do.Unban = function(player) local BL = game.Workspace:FindFirstChild("BannedList") print("Checking for Bannedlist") wait(0.5) if BL ~= nil then print("Bannedlist found!") wait(0.5) if BL:FindFirstChild(player) ~= nil then print("Unbanning Player "..player) wait(0.5) BL[player]:Remove() print("Player "..player.." Has Been Unbanned") else print("Player "..player.." Was Not Banned") end else print("Bannedlist Not Found") end end game.Players.PlayerAdded:connect(function(player) BanList = game.Workspace.BannedList if BanList ~= nil then BL = BanList:GetChildren() for i = 1, #BL do if BL[i].Name == player.Name then player:Remove() end end end end)