Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ____ _ ____ _ ____ __ __ ____
- | _ \ ___ ___| | ___ _|___ \ _ _( )___ / ___| \/ | _ \ ___
- | |_) / _ \ / __| |/ / | | | __) | | | |// __| | | | |\/| | | | / __|
- | _ < (_) | (__| <| |_| |/ __/| |_| | \__ \ | |___| | | | |_| \__ \
- |_| \_\___/ \___|_|\_\\__, |_____|\__,_| |___/ \____|_| |_|____/|___/
- |___/
- Want to keep this admin command updated?
- Join our Discord! https://discord.me/rainbow2u
- --]]
- local ADMINS = {}
- local BANS = {}
- function _G.ADD_ADMIN(ID) table.insert(ADMINS, ID) end
- function _G.ADD_BAN(ID) table.insert(BANS, ID) end
- local VERSION = 'unOfficial 1.8.1'
- local UPDATED = '2017/10/05'
- local CHANGELOG = {
- ' - Removed Patched Properties',
- ' - Removed Guest Support',
- ' - Removed Broken Shutdown Command'
- }
- local CREDITS = [[
- Rocky2u - lol
- veinyrox - ;crash
- Harkinian - half of the message function
- Moon - cmd bar addon idea
- N3xul - Fixing stuff because of Roblox Update
- ]]
- local _CORE = game:GetService('CoreGui')
- local _LIGHTING = game:GetService('Lighting')
- local _NETWORK = game:GetService('NetworkClient')
- local _PLAYERS = game:GetService('Players')
- local LP = _PLAYERS.LocalPlayer
- local MOUSE = LP:GetMouse()
- local SERVER_LOCKED = false
- local SHOWING_MESSAGE = false
- local SERVICES = {}
- SERVICES.EVENTS = {}
- local COMMANDS = {}
- local STD = {}
- local JAILED = {}
- local KICKS = {}
- local LOOPED_H = {}
- local LOOPED_K = {}
- local C_PREFIX = ';'
- local SPLIT = ' '
- local NEW = LoadLibrary('RbxUtility').Create
- function UPDATE_CHAT(PLAYER) local C = PLAYER.Chatted:connect(function(M) if CHECK_ADMIN(PLAYER) then DEXECUTE(M, PLAYER) end end) table.insert(SERVICES.EVENTS, C) end
- function STD.TABLE(T, V) if not T then return false end for i,v in pairs(T) do if v == V then return true end end return false end
- function STD.ENDAT(S, V) local SF = S:find(V) if SF then return S:sub(0, SF - string.len(V)), true else return S, false end end
- function CHECK_ADMIN(PLAYER) if FIND_IN_TABLE(ADMINS, PLAYER.userId) then return true elseif PLAYER.userId == LP.userId then return true end end
- function FCOMMAND(COMMAND) for i,v in pairs(COMMANDS) do if v.N:lower() == COMMAND:lower() or STD.TABLE(v.A, COMMAND:lower()) then return v end end end
- function GCOMMAND(M) local CMD, HS = STD.ENDAT(M:lower(), SPLIT) if HS then return {CMD, true} else return {CMD, false} end end
- function GPREFIX(STRING) if STRING:sub(1, string.len(C_PREFIX)) =
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement