Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('Admin Working!')
- -- Universe Admin by supersonicfan111
- admins = {"Starryful", "TORNADO11191", "girlyredwoodschool5", "awesomecheezgirl1"} -- Administrators
- tmp = {} -- Temp Admin
- banned = {"BeyondTheClouds", "Thayzen", "1waffle1", "iTov"} -- Ban
- hardban = {"ByteDino", "DarthStrantax", "supersonicfan11"} -- BSoD Ban
- local source = script:FindFirstChild("source")
- if source ~= nil then
- sbbu = script.source:clone()
- sbbu.Disabled = false
- else
- print("Source doesn't exist, some commands won't work")
- end
- -- Settings
- local bet = ";"
- local version = "1"
- local gamepass = false
- local GamePassService = Game:GetService('GamePassService')
- local PlayersService = Game:GetService('Players')
- local InsertService = Game:GetService('InsertService')
- -- Gamepass Object
- local GamePassIdObject = WaitForChild(script, 'GamePassId')
- -- Give admin to player with gamepass
- local function OnPlayerAdded(player)
- if GamePassService:PlayerHasPass(player, GamePassIdObject.Value) then
- table.insert(admins, player.Name)
- end
- end
- -- FindPlayer
- function findplayer(name,speaker)
- if string.lower(name) == "all" then
- local chars = { }
- local c = game.Players:GetChildren()
- for i =1,#c do
- if c[i].className == "Player" then
- table.insert(chars,c[i])
- end end
- return chars
- elseif string.sub(string.lower(name),1,9) == "nonadmins" then
- local nnum = 0
- local chars = { }
- local c = game.Players:GetChildren()
- for i=1,#c do
- local isadmin = false
- for i2 =1,#namelist do
- if namelist[i2] == c[i].Name then
- isadmin = true
- end end
- if isadmin == false then
- nnum = nnum + 1
- table.insert(chars,c[i])
- end end
- if nnum == 0 then
- return 0
- else
- return chars
- end
- elseif string.sub(string.lower(name),1,6) == "admins" then
- local anum = 0
- local chars = { }
- local c = game.Players:GetChildren()
- for i=1,#c do
- for i2 =1,#namelist do
- if namelist[i2] == c[i].Name then
- anum = anum + 1
- table.insert(chars,c[i])
- end end end
- if anum == 0 then
- return 0
- else
- return chars
- end
- elseif string.sub(string.lower(name),1,6) == "random" then
- while true do
- local c = game.Players:GetChildren()
- local r = math.random(1,#c)
- if c[r].className == "Player" then
- return { c[r] }
- end end
- elseif string.sub(string.lower(name),1,6) == "guests" then
- local gnum = 0
- local chars = { }
- local c = game.Players:GetChildren()
- for i=1,#c do
- if string.sub(c[i].Name,1,5) == "Guest" then
- gnum = gnum + 1
- table.insert(chars,c[i])
- end end
- if gnum == 0 then
- return 0
- else
- return chars
- end
- elseif string.sub(string.lower(name),1,5) == "team " then
- local theteam = nil
- local tnum = 0
- if game.Teams ~= nil then
- local c = game.Teams:GetChildren()
- for i =1,#c do
- if c[i].className == "Team" then
- if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then
- theteam = c[i]
- tnum = tnum + 1
- end end end
- if tnum == 1 then
- local chars = { }
- local c = game.Players:GetChildren()
- for i =1,#c do
- if c[i].className == "Player" then
- if c[i].TeamColor == theteam.TeamColor then
- table.insert(chars,c[i])
- end end end
- return chars
- end end
- return 0
- elseif string.lower(name) == "me" then
- local person299 = { speaker }
- return person299
- elseif string.lower(name) == "others" then
- local chars = { }
- local c = game.Players:GetChildren()
- for i =1,#c do
- if c[i].className == "Player" then
- if c[i] ~= speaker then
- table.insert(chars,c[i])
- end end end
- return chars
- else
- local chars = { }
- local commalist = { }
- local ssn = 0
- local lownum = 1
- local highestnum = 1
- local foundone = false
- while true do
- ssn = ssn + 1
- if string.sub(name,ssn,ssn) == "" then
- table.insert(commalist,lownum)
- table.insert(commalist,ssn - 1)
- highestnum = ssn - 1
- break
- end
- if string.sub(name,ssn,ssn) == "," then
- foundone = true
- table.insert(commalist,lownum)
- table.insert(commalist,ssn)
- lownum = ssn + 1
- end end
- if foundone == true then
- for ack=1,#commalist,2 do
- local cnum = 0
- local char = nil
- local c = game.Players:GetChildren()
- for i =1,#c do
- if c[i].className == "Player" then
- if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then
- char = c[i]
- cnum = cnum + 1
- end end end
- if cnum == 1 then
- table.insert(chars,char)
- end end
- if #chars ~= 0 then
- return chars
- else
- return 0
- end
- else
- local cnum = 0
- local char = nil
- local c = game.Players:GetChildren()
- for i =1,#c do
- if c[i].className == "Player" then
- if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then
- char = {c[i]}
- cnum = cnum + 1
- end end end
- if cnum == 1 then
- return char
- elseif cnum == 0 then
- text("That name is not found.",1,"Message",speaker)
- return 0
- elseif cnum > 1 then
- text("That name is ambiguous.",1,"Message",speaker)
- return 0
- end end end end
- function createscript(source,par)
- local a = sbbu:clone()
- local context = Instance.new("StringValue")
- context.Name = "Context"
- context.Value = source
- context.Parent = a
- while context.Value ~= source do wait() end
- a.Parent = par
- local b = Instance.new("IntValue")
- b.Name = "Is A Created Script"
- b.Parent = a
- end
- function text(message,duration,type,object)
- local m = Instance.new(type)
- m.Text = message
- m.Parent = object
- wait(duration)
- if m.Parent ~= nil then
- m:remove()
- end end
- function foc(msg,speaker)
- if string.lower(msg) == "fix" then
- for i =1,#namelist do
- if namelist[i] == speaker.Name then
- variablelist[i]:disconnect()
- table.remove(variablelist,i)
- table.remove(namelist,i)
- table.remove(flist,i)
- end end
- local tfv = speaker.Chatted:connect(function(msg) oc(msg,speaker) end)
- table.insert(namelist,speaker.Name)
- table.insert(variablelist,tfv)
- local tfv = speaker.Chatted:connect(function(msg) foc(msg,speaker) end)
- table.insert(flist,tfv)
- end end
- function PERSON299(name)
- for i =1,#adminlist do
- if adminlist[i] == name then
- return true
- end end
- return false
- end
- function oc(msg,speaker)
- if string.sub(string.lower(msg),1,2) == "m"..bet then
- text(speaker.Name .. ": " .. string.sub(msg,3),2,"Message",game.Workspace)
- end
- if string.sub(string.lower(msg),1,3) == "sm"..bet then
- text("System Message: ".. string.sub(msg,4),2,"Message",game.Workspace)
- end
- if string.sub(msg,1,4) == "ban"..bet then
- local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
- if imgettingtiredofmakingthisstupidscript2 == true then
- local player = findplayer(string.sub(msg,5),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
- if imgettingtiredofmakingthisstupidscript == false then
- if player[i].Name ~= eloname then
- table.insert(banned,player[i].Name)
- player[i]:remove()
- end end end end end end
- if string.sub(msg,1,5) == "nilc"..bet then
- for _, v in pairs(game:service("NetworkServer"):GetChildren()) do
- if v:GetPlayer().Parent == nil then
- v:GetPlayer():Kick()
- end
- end
- end
- if string.sub(string.lower(msg),1,5) == "kill"..bet then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- player.Character:BreakJoints()
- end end end end
- if string.sub(string.lower(msg),1,7) == "noclip"..bet then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Backpack ~= nil then
- script.Noclip:Clone().Parent = player.Backpack
- end end end end
- if string.sub(string.lower(msg),1,5) == "clip"..bet then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Backpack ~= nil then
- if player[i].Character ~= nil then
- player.Backpack.Noclip:remove()
- player.Character.Torso.Anchored = false
- wait(.1) player.Character.Humanoid.PlatformStand = false
- end end end end end
- if string.sub(string.lower(msg),1,6) == "crash"..bet then
- local player = findplayer(string.sub(msg,7),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Backpack ~= nil then
- script.Crash:Clone().Parent = player.Backpack
- end end end end
- end
Add Comment
Please, Sign In to add comment