Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- // Variables: // --
- local Players = {}
- local Admins = {}
- local Bans = {}
- local Anti = {"likeajumpingpro","BeyondPlayzMC","altaccounttesting21"}
- local Prefix = ":"
- local Slocked = false
- -- // Short Functions: // --
- local GetRank = function(player)
- local f = false
- for i,v in pairs(Admins) do
- if v == player then
- f = true
- end
- end
- if f == false then
- return("None")
- else
- return("Admin")
- end
- end
- local Kick = function(plr)
- local suc, err = pcall(function()
- if plr.Name == game.Players.LocalPlayer.Name then
- warn("Lmao, someone tried kicking you.")
- else
- local f = false
- for k,n in pairs(Anti) do
- if plr.Name == n then
- f = true
- end
- end
- if f == true then
- if game.Players.LocalPlayer.Name == "likeajumpingpro" then
- else
- game.Players.LocalPlayer:Kick("Stop kicking invincible admins, lmao.")
- end
- else
- game.Players.LocalPlayer.Backpack.Delete.delete:FireServer(plr)
- end
- end
- end)
- if suc then
- else
- warn("Your btools must no longer exist.")
- end
- end
- local Find = function(input)
- local find = ""
- for i,v in pairs(game.Players:GetPlayers()) do
- local str = v.Name:lower()
- local length = #input
- if str:sub(1,length) == input then
- find = v.Name
- end
- end
- if find == "" then
- return("None")
- else
- return(game.Players[find])
- end
- end
- local Delete = function(item)
- local suc, err = pcall(function()
- game.Players.LocalPlayer.Backpack.Delete.delete:FireServer(item)
- end)
- if suc then
- else
- warn("Your btools must no longer exist.")
- end
- end
- local Input = function(msg,plr)
- local Rank = GetRank(plr)
- if Rank == "Admin" then
- local Command = msg:lower()
- if Command:sub(1,6) == ""..Prefix.."kick " then
- local Result = Find(Command:sub(7,#Command))
- if Result == "None" then
- else
- Kick(Result)
- end
- else
- if Command:sub(1,5) == ""..Prefix.."ban " then
- local Result = Find(Command:sub(7,#Command))
- table.insert(Bans, Result.Name)
- if Result == "None" then
- else
- Kick(Result)
- end
- else
- if Command:sub(1,4) == ""..Prefix.."get" then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Backpack:FindFirstChild("Delete") then
- if v.Name == game.Players.LocalPlayer.Name then
- else
- Kick(v)
- warn("Possible threat: "..v.Name.."")
- end
- end
- end
- else
- if Command:sub(1,6) == ""..Prefix.."speed" then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 85
- else
- if Command:sub(1,6) == ""..Prefix.."slock" then
- Slocked = true
- else
- if Command:sub(1,8) == ""..Prefix.."unslock" then
- Slocked = false
- else
- if Command:sub(1,7) == ""..Prefix.."admin " then
- local Result = Find(Command:sub(8,#Command))
- if Result == "None" then
- else
- table.insert(Admins, Result.Name)
- end
- else
- if Command:sub(1,7) == ""..Prefix.."unlock" then
- for i,v in pairs(game.Workspace:GetDescendants()) do
- local suc, err = pcall(function()
- v.Locked = false
- end)
- end
- else
- if Command:sub(1,4) == ""..Prefix.."des" then
- Delete(workspace.Terrain.GameFolder.Admin.Pads)
- Delete(workspace.Terrain.GameFolder.Admin.Regen)
- Delete(workspace.Terrain.GameFolder.Folder)
- Delete(workspace.Terrain.GameFolder.Workspace.Obby)
- else
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- -- // Set-up: // --
- table.insert(Admins, game.Players.LocalPlayer.Name)
- -- // Command Input: // --
- while wait(0.1) do
- for i,v in pairs(game.Players:GetPlayers()) do
- local f = false
- for k,c in pairs(Players) do
- if v.Name == c then
- f = true
- end
- end
- if f == true then
- else
- table.insert(Players,v.Name)
- v.Chatted:Connect(function(msg)
- Input(msg,v.Name)
- end)
- end
- for i,n in pairs(Bans) do
- if v.Name == n then
- Kick(v)
- end
- end
- if Slocked == true then
- if v.Name == game.Players.LocalPlayer.Name then
- else
- Kick(v)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement