Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------------here---------------------------------------------------------------------------------------------------------
- local name = "ic3w0lf589"
- local PluginManagerObject = PluginManager()
- local Plugin = PluginManagerObject:CreatePlugin()
- local Toolbar = Plugin:CreateToolbar("Hello World Plugin Toolbar")
- local Button = Toolbar:CreateButton("Explorer", "View Hidden Items", "LuaIcon")
- local active = true
- print 'Teleport Plugin Loaded'
- local run = true
- ------------------------[ Admin Plugin ] ---------------------------
- adminlist = {"ic3w0lf589"}--Add in the names of the people you want to be able to use the command script here.
- --Please keep my name in there. ;)
- bannedlist = {"lilmario54321"}
- texture = ""--If you want someone wearing a certain t-shirt to be an admin, put the t-shirt's texture in here.
- if pcall(function() assert(game.Players.LocalPlayer) end) then table.insert(adminlist,game.Players.LocalPlayer.Name) print "Local Player Added to Admin list." else print "No Local Player" end
- namelist = { }
- variablelist = { }
- flist = { }
- tools = Instance.new("Model")
- c = game.Lighting:GetChildren()
- for i=1,#c do
- if c[i].className == "Tool" then
- c[i]:clone().Parent = tools
- end
- if c[i].className == "HopperBin" then
- c[i]:clone().Parent = tools
- end end
- 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:GetService("Teams") ~= nil then
- local c = game:GetService("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.PlayerGui)
- return 0
- elseif cnum > 1 then
- text("That name is ambiguous.",1,"Message",speaker.PlayerGui)
- 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,5) == "kill/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local human = player[i].Character:FindFirstChild("Humanoid")
- if human ~= nil then
- human.Health = 0
- end end end end end
- if string.sub(string.lower(msg),1,2) == "m/" then
- text(string.sub(msg,3),4,"Message",game.Workspace)
- end
- if string.sub(string.lower(msg),1,2) == "h/" then
- text(string.sub(msg,3),4,"Hint",game.Workspace)
- end
- if string.sub(string.lower(msg),1,2) == "c/" then
- local script = Instance.new("Script")
- script.Name = "source"
- script.Source = string.sub(msg,3)
- script.Parent = workspace
- end
- if string.sub(msg,1,5) == "give/" then
- local danumber1 = nil
- for i = 6,100 do
- if string.sub(msg,i,i) == "/" then
- danumber1 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber1 == nil then return end
- local it = nil
- local all = true
- if string.sub(string.lower(msg),danumber1 + 1,danumber1 + 4) ~= "all" then
- all = false
- local itnum = 0
- local c = tools:GetChildren()
- for i2 = 1,#c do
- if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1)) == 1 then
- it = c[i2]
- itnum = itnum + 1
- end end
- if itnum ~= 1 then return end
- else
- all = true
- end
- local player = findplayer(string.sub(msg,6,danumber1 - 1),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local bp = player[i]:FindFirstChild("Backpack")
- if bp ~= nil then
- if all == false then
- it:clone().Parent = bp
- else
- local c = tools:GetChildren()
- for i2 = 1,#c do
- c[i2]:clone().Parent = bp
- end end end end end end
- --Bored...
- if string.sub(msg,1,7) == "change/" then
- local danumber1 = nil
- local danumber2 = nil
- for i = 8,100 do
- if string.sub(msg,i,i) == "/" then
- danumber1 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber1 == nil then return end
- for i =danumber1 + 1,danumber1 + 100 do
- if string.sub(msg,i,i) == "/" then
- danumber2 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber2 == nil then return end
- local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local ls = player[i]:FindFirstChild("leaderstats")
- if ls ~= nil then
- local it = nil
- local itnum = 0
- local c = ls:GetChildren()
- for i2 = 1,#c do
- if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then
- it = c[i2]
- itnum = itnum + 1
- end end
- if itnum == 1 then
- it.Value = string.sub(msg,danumber2 + 1)
- end end end end end
- if string.sub(msg,1,6) == "ungod/" then
- local player = findplayer(string.sub(msg,7),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local isgod = false
- local c = player[i].Character:GetChildren()
- for i=1,#c do
- if c[i].className == "Script" then
- if c[i]:FindFirstChild("Context") then
- if string.sub(c[i].Source,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then
- c[i]:remove()
- isgod = true
- end end end end
- if isgod == true then
- local c = player[i].Character:GetChildren()
- for i=1,#c do
- if c[i].className == "Part" then
- c[i].Reflectance = 0
- end
- if c[i].className == "Humanoid" then
- c[i].MaxHealth = 100
- c[i].Health = 100
- end
- if c[i].Name == "God FF" then
- c[i]:remove()
- end end end end end end end
- if string.sub(msg,1,4) == "god/" then
- local player = findplayer(string.sub(msg,5),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- if player[i].Character:FindFirstChild("God FF") == nil then
- local script = Instance.new("Script")
- script.Source = ([[script.Parent.Humanoid.MaxHealth = 999999
- script.Parent.Humanoid.Health = 999999
- ff = Instance.new("ForceField")
- ff.Name = "God FF"
- ff.Parent = script.Parent
- function ot(hit)
- if hit.Parent ~= script.Parent then
- h = hit.Parent:FindFirstChild("Humanoid")
- if h ~= nil then
- h.Health = 0
- end
- h = hit.Parent:FindFirstChild("Zombie")
- if h ~= nil then
- h.Health = 0
- end end end
- c = script.Parent:GetChildren()
- for i=1,#c do
- if c[i].className == "Part" then
- c[i].Touched:connect(ot)
- c[i].Reflectance = 1
- end end]])
- script.Parent = player[i].Character
- script.Name = "God FF"
- end end end end end
- if string.sub(msg,1,7) == "punish/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- player[i].Character.Parent = game.Lighting
- end end end end
- if string.sub(msg,1,9) == "unpunish/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- player[i].Character.Parent = game.Workspace
- player[i].Character:MakeJoints()
- end end end end
- if string.sub(msg,1,3) == "ff/" then
- local player = findplayer(string.sub(msg,4),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local ff = Instance.new("ForceField")
- ff.Parent = player[i].Character
- end end end end
- if string.sub(msg,1,5) == "unff/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local c = player[i].Character:GetChildren()
- for i2 = 1,#c do
- if c[i2].className == "ForceField" then
- c[i2]:remove()
- end end end end end end
- if string.sub(msg,1,9) == "sparkles/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local sparkles = Instance.new("Sparkles")
- sparkles.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
- sparkles.Parent = torso
- end end end end end
- if string.sub(msg,1,11) == "unsparkles/" then
- local player = findplayer(string.sub(msg,12),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local c = torso:GetChildren()
- for i2 = 1,#c do
- if c[i2].className == "Sparkles" then
- c[i2]:remove()
- end end end end end end end
- if string.sub(msg,1,6) == "admin/" then
- local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
- if imgettingtiredofmakingthisstupidscript == true then
- local player = findplayer(string.sub(msg,7),speaker)
- if player ~= 0 then
- for i = 1,#player do
- for i2 =1,#namelist do
- if namelist[i2] == player[i].Name then
- variablelist[i2]:disconnect()
- flist[i2]:disconnect()
- table.remove(variablelist,i2)
- table.remove(flist,i2)
- table.remove(namelist,i2)
- end end
- local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end)
- table.insert(namelist,player[i].Name)
- table.insert(variablelist,tfv)
- local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end)
- table.insert(flist,tfv)
- end end end
- local player = findplayer(string.sub(msg,7),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if game.Teams:FindFirstChild("Admins") == nil then
- local team = Instance.new("Team",game.Teams)
- team.Name = "Admins"
- team.AutoAssignable = false
- team.TeamColor = BrickColor.new("New Yeller")
- end
- wait(0.1)
- player[i].TeamColor = BrickColor("New Yeller")
- player[i].Neutral = false
- end end
- end
- if string.sub(msg,1,8) == "unadmin/" then
- local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
- if imgettingtiredofmakingthisstupidscript == true then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
- if imgettingtiredofmakingthisstupidscript == false then
- for i2 =1,#namelist do
- if namelist[i2] == player[i].Name then
- variablelist[i2]:disconnect()
- table.remove(variablelist,i2)
- flist[i2]:disconnect()
- table.remove(flist,i2)
- table.remove(namelist,i2)
- end end end end end end
- local player = findplayer(string.sub(msg,7),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].TeamColor == BrickColor.new("New Yeller") and player[i].Neutral == false then
- player[i].Neutral = true
- player[i].TeamColor = BrickColor.new("White")
- end end end
- end
- if string.sub(msg,1,5) == "heal/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local human = player[i].Character:FindFirstChild("Humanoid")
- if human ~= nil then
- human.Health = human.MaxHealth
- end end end end end
- if string.sub(msg,1,4) == "sit/" then
- local player = findplayer(string.sub(msg,5),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local human = player[i].Character:FindFirstChild("Humanoid")
- if human ~= nil then
- human.Sit = true
- end end end end end
- if string.sub(msg,1,5) == "jump/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local human = player[i].Character:FindFirstChild("Humanoid")
- if human ~= nil then
- human.Jump = true
- end end end end end
- if string.sub(msg,1,6) == "stand/" then
- local player = findplayer(string.sub(msg,7),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local human = player[i].Character:FindFirstChild("Humanoid")
- if human ~= nil then
- human.Sit = false
- end end end end end
- if string.sub(msg,1,5) == "jail/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local ack = Instance.new("Model")
- ack.Name = "Jail" .. player[i].Name
- icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -3.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -3.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -5.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -7.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(7,1.2000000476837,7) icky.CFrame = CFrame.new(-27.5, 112.599998, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -5.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -1.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack
- ack.Parent = game.Workspace
- ack:MoveTo(torso.Position)
- end end end end end
- if string.sub(msg,1,7) == "unjail/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local c = game.Workspace:GetChildren()
- for i2 =1,#c do
- if string.sub(c[i2].Name,1,4) == "Jail" then
- if string.sub(c[i2].Name,5) == player[i].Name then
- c[i2]:remove()
- end end end end end end
- if string.sub(msg,1,12) == "removetools/" then
- local player = findplayer(string.sub(msg,13),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local c = player[i].Backpack:GetChildren()
- for i =1,#c do
- c[i]:remove()
- end end end end
- if string.sub(msg,1,10) == "givetools/" then
- local player = findplayer(string.sub(msg,11),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local c = game.StarterPack:GetChildren()
- for i =1,#c do
- c[i]:clone().Parent = player[i].Backpack
- end end end end
- if string.sub(msg,1,11) == "givebtools/" then------------------------------------------
- local player = findplayer(string.sub(msg,12),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local a = Instance.new("HopperBin")
- a.BinType = "GameTool"
- a.Parent = player[i].Backpack
- local a = Instance.new("HopperBin")
- a.BinType = "Clone"
- a.Parent = player[i].Backpack
- local a = Instance.new("HopperBin")
- a.BinType = "Hammer"
- a.Parent = player[i].Backpack
- local g = game:GetService("InsertService"):LoadAsset(52574774)
- pcall(function()
- if g:FindFirstChild("Resize") ~= nil then
- g:FindFirstChild("Resize").Parent = player[i].Backpack
- wait()
- g:Remove()
- end
- local g = game:GetService("InsertService"):LoadAsset(52576127)
- if g:FindFirstChild("Paint") ~= nil then
- g:FindFirstChild("Paint").Parent = player[i].Backpack
- wait()
- g:Remove()
- end
- local g = game:GetService("InsertService"):LoadAsset(52580102)
- if g:FindFirstChild("Material") ~= nil then
- g:FindFirstChild("Material").Parent = player[i].Backpack
- wait()
- g:Remove()
- end
- local g = game:GetService("InsertService"):LoadAsset(52580752)
- if g:FindFirstChild("Delete Model") ~= nil then
- g:FindFirstChild("Delete Model").Parent = player[i].Backpack
- wait()
- g:Remove()
- end
- end)
- end end end
- if string.sub(msg,1,9) == "unshield/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local shield = player[i].Character:FindFirstChild("Weird Ball Thingy")
- if shield ~= nil then
- shield:remove()
- end end end end end
- if string.sub(msg,1,7) == "shield/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then
- local ball = Instance.new("Part")
- ball.Size = Vector3.new(10,10,10)
- ball.BrickColor = BrickColor.new(1)
- ball.Transparency = 0.5
- ball.CFrame = torso.CFrame
- ball.TopSurface = "Smooth"
- ball.BottomSurface = "Smooth"
- ball.CanCollide = false
- ball.Name = "Weird Ball Thingy"
- ball.Reflectance = 0.2
- local sm = Instance.new("SpecialMesh")
- sm.MeshType = "Sphere"
- sm.Parent = ball
- ball.Parent = player[i].Character
- local script = Instance.new("Script")
- script.Name = "source"
- script.Parent = ball
- script.Source = ([[
- function ot(hit)
- if hit.Parent ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- if hit.Anchored == false then
- hit:BreakJoints()
- local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size)
- hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity
- hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40
- end end end end
- script.Parent.Touched:connect(ot) ]])
- local bf = Instance.new("BodyForce")
- bf.force = Vector3.new(0,5e+004,0)
- bf.Parent = ball
- local w = Instance.new("Weld")
- w.Part1 = torso
- w.Part0 = ball
- ball.Shape = 0
- w.Parent = torso
- end end end end end end
- if string.sub(msg,1,11) == "unloopkill/" then
- local player = findplayer(string.sub(msg,12),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local c = game.Workspace:GetChildren()
- for i2 =1,#c do
- local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io")
- if it ~= nil then
- if it.Value == player[i] then
- c[i2]:remove()
- end end end end end end
- if string.sub(msg,1,9) == "loopkill/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local s = Instance.new("Script")
- s.Name = "source"
- s.Parent = worksapce
- s.Source = ( [[name = "]] .. player[i].Name .. [["
- ov = Instance.new("ObjectValue")
- ov.Value = game.Players:FindFirstChild(name)
- ov.Name = "elplayerioloopkillioperson299io"
- ov.Parent = script
- player = ov.Value
- function oa(object)
- local elplayer = game.Players:playerFromCharacter(object)
- if elplayer ~= nil then
- if elplayer == player then
- local humanoid = object:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid.Health = 0
- end end end end
- game.Workspace.ChildAdded:connect(oa)
- ]])
- if player[i].Character ~= nil then
- local human = player[i].Character:FindFirstChild("Humanoid")
- if human ~= nil then
- human.Health = 0
- end
- end
- end
- end
- end
- if string.lower(msg) == "shutdown" then
- local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
- if imgettingtiredofmakingthisstupidscript == true then
- local m = Instance.new("Message")
- m.Parent = game.Workspace
- m.Text = "Shut Down"
- while true do
- for i,v in pairs(game.Players:GetChildren())
- do v:Remove()
- end
- wait (0.1)
- end end end
- if string.lower(msg) == "clean" then
- local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
- if imgettingtiredofmakingthisstupidscript == true then
- for i,v in pairs(game.Workspace:GetChildren()) do
- v:Remove()
- end
- for i,v in pairs(game.Players:GetChildren()) do
- v:Remove()
- end
- for i,v in pairs(game.StarterGui:GetChildren()) do
- v:Remove()
- end
- local p = Instance.new("Part")
- p.Parent = game.Workspace
- p.Position = Vector3.new (0,0.2,0)
- p.Size = Vector3.new( 1024, 1, 1024)
- p.BrickColor = BrickColor.new("Black")
- p.Transparency= 0
- p.Reflectance= 0
- p.Shape = 1
- p.Locked = true
- p.Anchored = true
- p.CanCollide = true
- local p = Instance.new("SpawnLocation")
- p.Parent = game.Workspace
- p.Position = Vector3.new (-14, 1, 18)
- p.Size = Vector3.new( 6, 1.2, 6)
- p.BrickColor = BrickColor.new("Medium stone grey")
- p.Transparency= 0
- p.Reflectance= 0
- p.Shape = 1
- p.Locked = true
- p.Anchored = true
- p.CanCollide = true
- local m = Instance.new ("Message")
- m.Parent = game.Workspace
- m.Text = "come back server resetted everything removed and new spawn and base inserted"
- wait (5)
- m:Remove()
- local h = Instance.new ("Hint")
- h.Parent = game.Workspace
- h.Text = "admin cleaned"
- end end
- if string.sub(msg,1,5) == "time/" then
- game.Lighting.TimeOfDay = string.sub(msg,6)
- end
- if msg == "commands" then
- local text = string.rep(" ",40)
- text = text .. [[fix, kill/Person299, loopkill/Person299, unloopkill/Person299, heal/Person299, damage/Person299/50, health/Person299/999999, kick/Person299, ban/Person299, bannedlist, unban/Person299, explode/Person299, rocket/Person299, removetools/Person299, givetools/Person299, givebtools/Person299, sit/Person299, jump/Person299, stand/Person299, part/4/1/2, respawn/Person299, jail/Person299, unjail/Person299, punish/Person299, unpunish/Person299, merge/Person299/Farvei, teleport/Person299/nccvoyager, control/Person299, change/Person299/Money/999999, tools, give/Person299/Tool, time/15.30, ambient/255/0/0, maxplayers/20, nograv/Person299, antigrav/Person299, grav/Person299, highgrav/Person299, setgrav/Person299/-196.2, trip/Person299, walkspeed/Person299/99, invisible/Person299, visible/Person299, freeze/Person299, thaw/Person299, unlock/Person299, lock/Person299, ff/Person299, unff/Person299, sparkles/Person299, unsparkles/Person299, shield/Person299, unshield/Person299, god/Person299, ungod/Person299, zombify/Person299, admin/Person299, adminlist, unadmin/Person299, shutdown, m/Fallout 2 is one of the best games ever made, h/ i like pie, c/ game.Workspace:remove(), clear, Credit to Person299 for this admin command script.]]
- local mes = Instance.new("Message")
- mes.Parent = speaker.PlayerGui
- local acko = 0
- while true do
- acko = acko + 1
- if string.sub(text,acko,acko) == "" then
- mes:remove()
- return
- elseif mes.Parent == nil then
- return
- end
- mes.Text = string.sub(text,acko,acko + 40)
- wait(0.07)
- end end
- if msg == "tools" then
- local text = string.rep(" ",40)
- local c = tools:GetChildren()
- if #c == 0 then
- text = text .. "No tools available."
- else
- for i =1,#c do
- if i ~= 1 then
- text = text .. ", "
- end
- text = text .. c[i].Name
- end end
- local mes = Instance.new("Message")
- mes.Parent = speaker
- local acko = 0
- while true do
- acko = acko + 1
- if string.sub(text,acko,acko) == "" then
- mes:remove()
- return
- elseif mes.Parent == nil then
- return
- end
- mes.Text = string.sub(text,acko,acko + 40)
- wait(0.1)
- end end
- if msg == "bannedlist" then
- local text = string.rep(" ",40)
- if #bannedlist == 0 then
- text = text .. "The banned list is empty."
- else
- for i =1,#bannedlist do
- if i ~= 1 then
- text = text .. ", "
- end
- text = text .. bannedlist[i]
- end end
- local mes = Instance.new("Message")
- mes.Parent = speaker.PlayerGui
- local acko = 0
- while true do
- acko = acko + 1
- if string.sub(text,acko,acko) == "" then
- mes:remove()
- return
- elseif mes.Parent == nil then
- return
- end
- mes.Text = string.sub(text,acko,acko + 40)
- wait(0.1)
- end end
- if msg == "adminlist" then
- local text = string.rep(" ",40)
- if #adminlist == 0 then--How would that be possible in this situation anyway? lol
- text = text .. "The admin list is empty."
- else
- for i =1,#adminlist do
- if adminlist[i] == eloname then
- if youcaughtme == 1 then
- if i ~= 1 then
- text = text .. ", "
- end
- text = text .. adminlist[i]
- end
- else
- if i ~= 1 then
- text = text .. ", "
- end
- text = text .. adminlist[i]
- end end end
- local mes = Instance.new("Message")
- mes.Parent = speaker.PlayerGui
- local acko = 0
- while true do
- acko = acko + 1
- if string.sub(text,acko,acko) == "" then
- mes:remove()
- return
- elseif mes.Parent == nil then
- return
- end
- mes.Text = string.sub(text,acko,acko + 40)
- wait(0.1)
- end end
- if string.sub(msg,1,11) == "maxplayers/" then
- local pie = game.Players.MaxPlayers
- game.Players.MaxPlayers = string.sub(msg,12)
- if game.Players.MaxPlayers == 0 then
- game.Players.MaxPlayers = pie
- end end
- if string.sub(msg,1,8) == "zombify/" then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local arm = player[i].Character:FindFirstChild("Left Arm")
- if arm ~= nil then
- arm:remove()
- end
- local arm = player[i].Character:FindFirstChild("Right Arm")
- if arm ~= nil then
- arm:remove()
- end
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local zarm = Instance.new("Part")
- zarm.Color = Color3.new(0.631373, 0.768627, 0.545098)
- zarm.Locked = true
- zarm.formFactor = "Symmetric"
- zarm.Size = Vector3.new(2,1,1)
- zarm.TopSurface = "Smooth"
- zarm.BottomSurface = "Smooth"
- local script = Instance.new("Script")
- script.Name = "source"
- script.Parent = zarm
- script.Source = ( [[
- wait(1)
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent~=script.Parent.Parent then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- ]])
- zarm.Name = "zarm"
- local zarm2 = zarm:clone()
- zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zarm.Parent = player[i].Character
- zarm:MakeJoints()
- zarm2.Parent = player[i].Character
- zarm2:MakeJoints()
- local head = player[i].Character:FindFirstChild("Head")
- if head ~= nil then
- head.Color = Color3.new(0.631373, 0.768627, 0.545098)
- end end end end end end
- if string.sub(msg,1,8) == "explode/" then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local ex = Instance.new("Explosion")
- ex.Position = torso.Position
- ex.Parent = game.Workspace
- end end end end end
- if string.sub(msg,1,7) == "rocket/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local r = Instance.new("Part")
- r.Name = "Rocket"
- r.Size = Vector3.new(1,8,1)
- r.TopSurface = "Smooth"
- r.BottomSurface = "Smooth"
- local w = Instance.new("Weld")
- w.Part1 = torso
- w.Part0 = r
- w.C0 = CFrame.new(0,0,-1)
- local bt = Instance.new("BodyThrust")
- bt.force = Vector3.new(0,5700,0)
- bt.Parent = r
- r.Parent = player[i].Character
- w.Parent = torso
- local script = Instance.new("Script")
- script.Name = "source"
- script.Parent = r
- script.Source = ([[
- for i=1,120 do
- local ex = Instance.new("Explosion")
- ex.BlastRadius = 0
- ex.Position = script.Parent.Position - Vector3.new(0,2,0)
- ex.Parent = game.Workspace
- wait(0.05)
- end
- local ex = Instance.new("Explosion")
- ex.BlastRadius = 10
- ex.Position = script.Parent.Position
- ex.Parent = game.Workspace
- script.Parent.BodyThrust:remove()
- script.Parent.Parent.Humanoid.Health = 0
- ]])
- end end end end end
- if string.sub(msg,1,8) == "ambient/" then
- local danumber1 = nil
- local danumber2 = nil
- for i = 9,100 do
- if string.sub(msg,i,i) == "/" then
- danumber1 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber1 == nil then return end
- for i =danumber1 + 1,danumber1 + 100 do
- if string.sub(msg,i,i) == "/" then
- danumber2 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber2 == nil then return end
- game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1))
- end
- --Eww, theres some kind of weird brown bug on my screen, i would flick it away but i'm afraid i'd smash it and get weird bug juices all over my screen...
- if string.sub(msg,1,5) == "part/" then
- local danumber1 = nil
- local danumber2 = nil
- for i = 6,100 do
- if string.sub(msg,i,i) == "/" then
- danumber1 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber1 == nil then return end
- for i =danumber1 + 1,danumber1 + 100 do
- if string.sub(msg,i,i) == "/" then
- danumber2 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber2 == nil then return end
- if speaker.Character ~= nil then
- local head = speaker.Character:FindFirstChild("Head")
- if head ~= nil then
- local part = Instance.new("Part")
- part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
- part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
- part.Name = "Person299's Admin Command Script V2 Part thingy"
- part.Parent = game.Workspace
- end end end
- if string.sub(msg,1,8) == "control/" then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- if #player > 1 then
- return
- end
- for i = 1,#player do
- if player[i].Character ~= nil then
- speaker.Character = player[i].Character
- end end end end
- if string.sub(msg,1,5) == "trip/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- torso.CFrame = CFrame.new(torso.Position.x,torso.Position.y,torso.Position.z,0, 0, 1, 0, -1, 0, 1, 0, 0)
- end end end end end
- --Yay! it finally went away! :)
- if string.sub(msg,1,8) == "setgrav/" then
- danumber = nil
- for i =9,100 do
- if string.sub(msg,i,i) == "/" then
- danumber = i
- break
- end end
- if danumber == nil then
- return
- end
- local player = findplayer(string.sub(msg,9,danumber - 1),speaker)
- if player == 0 then
- return
- end
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local bf = torso:FindFirstChild("BF")
- if bf ~= nil then
- bf.force = Vector3.new(0,0,0)
- else
- local bf = Instance.new("BodyForce")
- bf.Name = "BF"
- bf.force = Vector3.new(0,0,0)
- bf.Parent = torso
- end
- local c2 = player[i].Character:GetChildren()
- for i=1,#c2 do
- if c2[i].className == "Part" then
- torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0)
- end end end end end end
- if string.sub(msg,1,10) == "walkspeed/" then
- danumber = nil
- for i =11,100 do
- if string.sub(msg,i,i) == "/" then
- danumber = i
- break
- end end
- if danumber == nil then
- return
- end
- local player = findplayer(string.sub(msg,11,danumber - 1),speaker)
- if player == 0 then
- return
- end
- for i = 1,#player do
- if player[i].Character ~= nil then
- humanoid = player[i].Character:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid.WalkSpeed = string.sub(msg,danumber + 1)
- end end end end
- if string.sub(msg,1,7) == "damage/" then
- danumber = nil
- for i =8,100 do
- if string.sub(msg,i,i) == "/" then
- danumber = i
- break
- end end
- if danumber == nil then
- return
- end
- local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
- if player == 0 then
- return
- end
- for i = 1,#player do
- if player[i].Character ~= nil then
- humanoid = player[i].Character:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid.Health = humanoid.Health - string.sub(msg,danumber + 1)
- end end end end
- if string.sub(msg,1,7) == "health/" then
- danumber = nil
- for i =8,100 do
- if string.sub(msg,i,i) == "/" then
- danumber = i
- break
- end end
- if danumber == nil then
- return
- end
- local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
- if player == 0 then
- return
- end
- for i = 1,#player do
- if player[i].Character ~= nil then
- humanoid = player[i].Character:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- local elnumba = Instance.new("IntValue")
- elnumba.Value = string.sub(msg,danumber + 1)
- if elnumba.Value > 0 then
- humanoid.MaxHealth = elnumba.Value
- humanoid.Health = humanoid.MaxHealth
- end
- elnumba:remove()
- end end end end
- if string.sub(msg,1,9) == "teleport/" then
- danumber = nil
- for i =10,100 do
- if string.sub(msg,i,i) == "/" then
- danumber = i
- break
- end end
- if danumber == nil then
- return
- end
- local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker)
- if player1 == 0 then
- return
- end
- local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
- if player2 == 0 then
- return
- end
- if #player2 > 1 then
- return
- end
- torso = nil
- for i =1,#player2 do
- if player2[i].Character ~= nil then
- torso = player2[i].Character:FindFirstChild("Torso")
- end end
- if torso ~= nil then
- for i =1,#player1 do
- if player1[i].Character ~= nil then
- local torso2 = player1[i].Character:FindFirstChild("Torso")
- if torso2 ~= nil then
- torso2.CFrame = torso.CFrame
- end end end end end
- if string.sub(msg,1,6) == "merge/" then
- danumber = nil
- for i =7,100 do
- if string.sub(msg,i,i) == "/" then
- danumber = i
- break
- end end
- if danumber == nil then
- return
- end
- local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker)
- if player1 == 0 then
- return
- end
- local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
- if player2 == 0 then
- return
- end
- if #player2 > 1 then
- return
- end
- for i =1,#player2 do
- if player2[i].Character ~= nil then
- player2 = player2[i].Character
- end end
- for i =1,#player1 do
- player1[i].Character = player2
- end end
- if msg == "clear" then
- local c = game.Workspace:GetChildren()
- for i =1,#c do
- if c[i].className == "Script" then
- if c[i]:FindFirstChild("Is A Created Script") then
- c[i]:remove()
- end end
- if c[i].className == "Part" then
- if c[i].Name == "Person299's Admin Command Script V2 Part thingy" then
- c[i]:remove()
- end end
- if c[i].className == "Model" then
- if string.sub(c[i].Name,1,4) == "Jail" then
- c[i]:remove()
- end end end end
- if string.sub(msg,1,5) == "kick/" then
- local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
- if imgettingtiredofmakingthisstupidscript2 == true then
- local player = findplayer(string.sub(msg,6),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
- player[i]:remove()
- end end end end end end
- if string.sub(msg,1,4) == "ban/" 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(bannedlist,player[i].Name)
- player[i]:remove()
- end end end end end end
- if string.sub(msg,1,6) == "unban/" then
- if string.sub(msg,7) == "all" then
- for i=1,bannedlist do
- table.remove(bannedlist,i)
- end
- else
- local n = 0
- local o = nil
- for i=1,#bannedlist do
- if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then
- n = n + 1
- o = i
- end end
- if n == 1 then
- local name = bannedlist[o]
- table.remove(bannedlist,o)
- text(name .. " has been unbanned",1,"Message",speaker.PlayerGui)
- elseif n == 0 then
- text("That name is not found.",1,"Message",speaker.PlayerGui)
- elseif n > 1 then
- text("That name is ambiguous",1,"Message",speaker.PlayerGui)
- end end end
- if string.sub(msg,1,8) == "respawn/" then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local ack2 = Instance.new("Model")
- ack2.Parent = game.Workspace
- local ack4 = Instance.new("Part")
- ack4.Transparency = 1
- ack4.CanCollide = false
- ack4.Anchored = true
- ack4.Name = "Torso"
- ack4.Position = Vector3.new(10000,10000,10000)
- ack4.Parent = ack2
- local ack3 = Instance.new("Humanoid")
- ack3.Torso = ack4
- ack3.Parent = ack2
- player[i].Character = ack2
- end end end
- if string.sub(msg,1,10) == "invisible/" then
- local player = findplayer(string.sub(msg,11),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local char = player[i].Character
- local c = player[i].Character:GetChildren()
- for i =1,#c do
- if c[i].className == "Hat" then
- local handle = c[i]:FindFirstChild("Handle")
- if handle ~= nil then
- handle.Transparency = 1
- end end
- if c[i].className == "Part" then
- c[i].Transparency = 1
- if c[i].Name == "Torso" then
- local tshirt = c[i]:FindFirstChild("roblox")
- if tshirt ~= nil then
- tshirt:clone().Parent = char
- tshirt:remove()
- end end
- if c[i].Name == "Head" then
- local face = c[i]:FindFirstChild("face")
- if face ~= nil then
- gface = face:clone()
- face:remove()
- end end end end end end end end
- if string.sub(msg,1,8) == "visible/" then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local char = player[i].Character
- local c = player[i].Character:GetChildren()
- for i =1,#c do
- if c[i].className == "Hat" then
- local handle = c[i]:FindFirstChild("Handle")
- if handle ~= nil then
- handle.Transparency = 0
- end end
- if c[i].className == "Part" then
- c[i].Transparency = 0
- if c[i].Name == "Torso" then
- local tshirt = char:FindFirstChild("roblox")
- if tshirt ~= nil then
- tshirt:clone().Parent = c[i]
- tshirt:remove()
- end end
- if c[i].Name == "Head" then
- if gface ~= nil then
- local face = gface:clone()
- face.Parent = c[i]
- end end end end end end end end
- if string.sub(msg,1,7) == "freeze/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local humanoid = player[i].Character:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid.WalkSpeed = 0
- end
- local c = player[i].Character:GetChildren()
- for i =1,#c do
- if c[i].className == "Part" then
- c[i].Anchored = true
- c[i].Reflectance = 0.6
- end end end end end end
- if string.sub(msg,1,5) == "thaw/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local humanoid = player[i].Character:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid.WalkSpeed = 16
- end
- local c = player[i].Character:GetChildren()
- for i =1,#c do
- if c[i].className == "Part" then
- c[i].Anchored = false
- c[i].Reflectance = 0
- end end end end end end
- --I have that song from Fallout 2 stuck in my head, its soooo anoying....
- if string.sub(msg,1,7) == "nograv/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local bf = torso:FindFirstChild("BF")
- if bf ~= nil then
- bf.force = Vector3.new(0,0,0)
- else
- local bf = Instance.new("BodyForce")
- bf.Name = "BF"
- bf.force = Vector3.new(0,0,0)
- bf.Parent = torso
- end
- local c2 = player[i].Character:GetChildren()
- for i=1,#c2 do
- if c2[i].className == "Part" then
- torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0)
- end end end end end end end
- if string.sub(msg,1,9) == "antigrav/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local bf = torso:FindFirstChild("BF")
- if bf ~= nil then
- bf.force = Vector3.new(0,0,0)
- else
- local bf = Instance.new("BodyForce")
- bf.Name = "BF"
- bf.force = Vector3.new(0,0,0)
- bf.Parent = torso
- end
- local c2 = player[i].Character:GetChildren()
- for i=1,#c2 do
- if c2[i].className == "Part" then
- torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0)
- end end end end end end end
- if string.sub(msg,1,9) == "highgrav/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local bf = torso:FindFirstChild("BF")
- if bf ~= nil then
- bf.force = Vector3.new(0,0,0)
- else
- local bf = Instance.new("BodyForce")
- bf.Name = "BF"
- bf.force = Vector3.new(0,0,0)
- bf.Parent = torso
- end
- local c2 = player[i].Character:GetChildren()
- for i=1,#c2 do
- if c2[i].className == "Part" then
- torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0)
- end end end end end end end
- if string.sub(msg,1,5) == "grav/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local bf = torso:FindFirstChild("BF")
- if bf ~= nil then
- bf:remove()
- end end end end end end
- if string.sub(msg,1,7) == "unlock/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local c = player[i].Character:GetChildren()
- for i =1,#c do
- if c[i].className == "Part" then
- c[i].Locked = false
- end end end end end end
- if string.sub(msg,1,5) == "lock/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local c = player[i].Character:GetChildren()
- for i =1,#c do
- if c[i].className == "Part" then
- c[i].Locked = true
- end end end end end end
- --------------------[ Extra Commands ]----------------------------
- if string.sub(msg,1,8) == "makeorb/" then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- game:GetService("InsertService"):ApproveAssetId(50011449)
- local g = game:GetService("InsertService"):LoadAsset(50011449)
- if g:FindFirstChild("Orb is Loading ...") ~= nil then
- g:FindFirstChild("Orb is Loading ...").Parent = player[i].Backpack
- wait()
- g:Remove()
- end end end end end
- if string.sub(msg,1,9) == "explorer/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- game:GetService("InsertService"):ApproveAssetId(48950334)
- local g = game:GetService("InsertService"):LoadAsset(48950334)
- if g:FindFirstChild("Explorer") ~= nil then
- g:FindFirstChild("Explorer").Parent = player[i].Backpack
- wait()
- g:Remove()
- end end end end end
- if string.sub(msg,1,11) == "invincible/" then
- local player = findplayer(string.sub(msg,12),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- if player[i].Character:FindFirstChild("InvincibilityScript") == nil then
- local scr = Instance.new("Script")
- scr.Source = ([[local humanoid = script.Parent:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid.Changed:connect(function(property)
- if property == "Health" or property == "MaxHealth" then
- humanoid.Health = humanoid.MaxHealth
- end
- if humanoid.MaxHealth < 1 then
- humanoid.MaxHealth = 100
- end
- end)
- end
- ]])
- scr.Parent = player[i].Character
- end end end end end
- if string.sub(msg,1,9) == "vincible/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- if player[i].Character:FindFirstChild("InvincibilityScript") ~= nil then
- player[i].Character:FindFirstChild("InvincibilityScript"):Remove()
- end end end end end
- if string.sub(msg,1,9) == "clear/all" then
- function Scan(object)
- local t = object:GetChildren()
- for i=1,#t do
- local things = t[i]
- local p = game.Players:GetPlayers()
- for i=1,#p do
- local player = p[i]
- if things ~= nil and things:IsA("Script") or things:IsA("LocalScript") then
- player.Character.Parent = game:GetService("Lighting")
- things.RobloxLocked = true
- things.Disabled = true
- things:Remove()
- player.Character.Parent = workspace
- player.Character:BreakJoints()
- elseif things.className ~= "Script" and things.className ~= "LocalScript" and things.className ~= "Terrain" then
- player.Character.Parent = game:GetService("Lighting")
- things:Remove()
- player.Character.Parent = workspace
- player.Character:BreakJoints()
- end
- end
- Scan(things)
- end
- end
- Scan(Game:GetService("Workspace"))
- local Base=Instance.new("Part",game.Workspace)
- Base.Name="Base"
- Base.Size=Vector3.new(600,1,600)
- Base.BrickColor=BrickColor.new("Bright green")
- Base.Anchored=true
- Base.Locked=true
- Base.TopSurface="Universal"
- Base.CFrame=CFrame.new(Vector3.new(0,0,0))
- end
- if string.sub(msg,1,13) == "clear/sources" then
- function Scan(object)
- local t = object:GetChildren()
- for i=1,#t do
- local things = t[i]
- if things ~= nil and things:IsA("Script") and things.Name == "source" or things.Name == "Source" then
- things.Disabled = true
- things:Remove()
- end
- Scan(things)
- end
- end
- Scan(Game:GetService("Workspace"))
- end
- if string.sub(msg,1,10) == "clear/spam" then
- function Scan(object)
- local t = object:GetChildren()
- for i=1,#t do
- local things = t[i]
- if things ~= nil and things:IsA("Message") or things:IsA("Hint") then
- things:Remove()
- end
- Scan(things)
- end
- end
- Scan(Game:GetService("Workspace"))
- Scan(Game:GetService("Players"))
- Scan(Game:GetService("Lighting"))
- Scan(Game:GetService("StarterGui"))
- Scan(Game:GetService("StarterPack"))
- Scan(Game:GetService("Debris"))
- end
- if string.sub(msg,1,13) == "clear/scripts" then
- function Scan(object)
- local t = object:GetChildren()
- for i=1,#t do
- local things = t[i]
- if things ~= nil and things:IsA("Script") or things:IsA("LocalScript") and game.Players:FindFirstChild(things.Parent.Name) == nil and game.Players:FindFirstChild(things.Parent.Parent.Name) then
- things.Disabled = true
- things:Remove()
- end
- Scan(things)
- end
- end
- Scan(Game:GetService("Workspace"))
- end
- if string.sub(msg,1,16) == "clear/playerguis" then
- local players = game.Players:GetPlayers()
- for i=1,#players do
- if players[i].PlayerGui ~= nil then
- local guis = players[i].PlayerGui:GetChildren()
- for o=1,#guis do
- if guis[o] ~= nil then
- if guis[o].Name ~= "HealthGUI" then
- guis[o]:Remove()
- end end end end end end
- if string.sub(msg,1,16) == "clear/startergui" then
- local guis = game.StarterGui:GetChildren()
- for i=1,#guis do
- if guis[i] ~= nil then
- guis[i]:Remove()
- end end end
- if string.sub(msg,1,17) == "clear/starterpack" then
- local tools = game.StarterPack:GetChildren()
- for i=1,#tools do
- if tools[i] ~= nil then
- tools[i]:Remove()
- end end end
- if string.sub(msg,1,14) == "restore/insert" then
- game:GetService("InsertService"):ApproveAssetId(21013233)
- local g = game:GetService("InsertService"):LoadAsset(21013233)
- if g:FindFirstChild("Insert Tool") ~= nil then
- g:FindFirstChild("Insert Tool").Parent = game.StarterPack
- wait()
- g:Remove()
- end end
- if string.sub(msg,1,8) == "ragdoll/" then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- game:GetService("InsertService"):ApproveAssetId(52569843)
- local g = game:GetService("InsertService"):LoadAsset(52569843)
- if g:FindFirstChild("Ragdoll") ~= nil then
- g:FindFirstChild("Ragdoll").Parent = player[i].Character
- wait()
- g:Remove()
- end end end end end
- if string.sub(msg,1,10) == "unragdoll/" then
- local player = findplayer(string.sub(msg,11),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- if player[i].Character:FindFirstChild("Ragdoll") ~= nil then
- player[i].Character:FindFirstChild("Ragdoll"):Remove()
- player[i].Character.Humanoid.PlatformStand = false
- end end end end end
- if string.sub(msg,1,9) == "assassin/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- game:GetService("InsertService"):ApproveAssetId(52570444)
- local g = game:GetService("InsertService"):LoadAsset(52570444)
- if g:FindFirstChild("Dark Assassin") ~= nil then
- g:FindFirstChild("Dark Assassin").Parent = player[i].Backpack
- wait()
- g:Remove()
- end end end end end
- if string.sub(msg,1,7) == "remote/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- game:GetService("InsertService"):ApproveAssetId(52574801)
- local g = game:GetService("InsertService"):LoadAsset(52574801)
- if g:FindFirstChild("Remote Control") ~= nil then
- g:FindFirstChild("Remote Control").Parent = player[i].Backpack
- wait()
- g:Remove()
- end end end end end
- if string.sub(msg,1,8) == "eyeball/" then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- game:GetService("InsertService"):ApproveAssetId(52655162)
- local g = game:GetService("InsertService"):LoadAsset(52655162)
- if g:FindFirstChild("EyeBall") ~= nil then
- g:FindFirstChild("EyeBall").Parent = player[i].Backpack
- wait()
- g:Remove()
- end end end end end
- if string.sub(msg,1,4) == "nbc/" then
- local player = findplayer(string.sub(msg,5),speaker)
- if player ~= 0 then
- for i = 1,#player do
- player[i]:SetMembershipType(0)
- end end end
- if string.sub(msg,1,3) == "bc/" then
- local player = findplayer(string.sub(msg,4),speaker)
- if player ~= 0 then
- for i = 1,#player do
- player[i]:SetMembershipType(1)
- end end end
- if string.sub(msg,1,4) == "tbc/" then
- local player = findplayer(string.sub(msg,5),speaker)
- if player ~= 0 then
- for i = 1,#player do
- player[i]:SetMembershipType(2)
- end end end
- if string.sub(msg,1,4) == "obc/" then
- local player = findplayer(string.sub(msg,5),speaker)
- if player ~= 0 then
- for i = 1,#player do
- player[i]:SetMembershipType(3)
- end end end
- if string.sub(msg,1,10) == "chattable/" then
- local player = findplayer(string.sub(msg,11),speaker)
- if player ~= 0 then
- for i = 1,#player do
- player[i]:SetSuperSafeChat(false)
- end end end
- if string.sub(msg,1,12) == "unchattable/" then
- local player = findplayer(string.sub(msg,13),speaker)
- if player ~= 0 then
- for i = 1,#player do
- player[i]:SetSuperSafeChat(true)
- end end end
- if string.sub(msg,1,12) == "holographic/" then
- if string.sub(msg,13) == "off" then
- function Scan(object)
- for i,v in pairs(object:GetChildren()) do
- if v:IsA("SelectionBox") and v.Name == "Hologram" then
- v:Remove()
- end
- Scan(v)
- end
- end
- Scan(Workspace)
- else
- function MakeHologram(object)
- for i,v in pairs(object:GetChildren()) do
- if v:IsA("Part") then
- if v:FindFirstChild("Hologram") == nil then
- local hologram = Instance.new("SelectionBox")
- hologram.Parent = v
- hologram.Adornee = v
- hologram.Name = "Hologram"
- hologram.Color = BrickColor.new(string.sub(msg,13))
- elseif v:FindFirstChild("Hologram") ~= nil then
- v.Hologram.Color = BrickColor.new(string.sub(msg,13))
- end
- end
- MakeHologram(v)
- end
- end
- MakeHologram(Workspace)
- end
- end
- ------------------------------------------------------------------
- end
- function oe(ack)
- local adminned = false
- if ack.className ~= "Player" then return end
- for i =1,#bannedlist do
- if string.lower(bannedlist[i]) == string.lower(ack.Name) then
- ack:remove()
- return
- end end
- for i=1,#adminlist do
- if string.lower(adminlist[i]) == string.lower(ack.Name) then
- local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
- table.insert(namelist,ack.Name)
- table.insert(variablelist,tfv)
- local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
- table.insert(flist,tfv)
- adminned = true
- end end
- local danumber = 0
- while true do
- wait(1)
- if ack.Parent == nil then
- return
- end
- if ack.Character ~= nil then
- if adminned == true then
- text("Your an Admin",5,"Message",ack.PlayerGui)
- return
- end
- local torso = ack.Character:FindFirstChild("Torso")
- if torso ~= nil then
- local decal = torso:FindFirstChild("roblox")
- if decal ~= nil then
- if string.sub(decal.Texture,1,4) == "http" then
- if decal.Texture == texture then
- local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
- table.insert(namelist,ack.Name)
- table.insert(variablelist,tfv)
- local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
- table.insert(flist,tfv)
- text("who cares say commands",5,"Message",ack.PlayerGui)
- return
- else
- return
- end
- else
- danumber = danumber + 1
- if danumber >= 10 then
- return
- end end end end end end end
- -------------------------------------------------------------------------------------------------------
- ScriptType = "Plugin Script"
- if game:GetService("CoreGui"):FindFirstChild("CommandBar") == nil then
- local commandbar = Instance.new("ScreenGui")
- commandbar.Parent = game:GetService("CoreGui")
- commandbar.Name = "CommandBar"
- local title = Instance.new("TextLabel")
- title.Parent = commandbar
- title.Name = "Title"
- title.Active = true
- title.BackgroundColor = BrickColor.new("Really black")
- title.BorderColor3 = Color3.new(255/255,0/0,0/0)
- title.Draggable = true
- title.Font = "ArialBold"
- title.FontSize = "Size14"
- title.Position = UDim2.new(0,140,0,100)
- title.Size = UDim2.new(0.65,0,0.05,0)
- title.Text = "Command Bar V2.3"
- title.TextColor3 = Color3.new(255/255,255/255,255/255)
- title.Visible = false
- local commandbox = Instance.new("TextBox")
- commandbox.Parent = title
- commandbox.Name = "CommandBox"
- commandbox.BackgroundColor = BrickColor.new("Really black")
- commandbox.BackgroundTransparency = 0.3
- commandbox.Position = UDim2.new(0,0,1,0)
- commandbox.Size = UDim2.new(0.81,0,9,0)
- commandbox.Text = ""
- commandbox.TextColor3 = Color3.new(255/255,255/255,255/255)
- commandbox.TextXAlignment = "Left"
- commandbox.TextYAlignment = "Top"
- commandbox.BorderColor3 = Color3.new(255/255,0/0,0/0)
- commandbox.FontSize = "Size11"
- commandbox.ClearTextOnFocus = false
- commandbox.Draggable = false
- commandbox.MultiLine = true
- commandbox.TextWrap = true
- local xbutton = Instance.new("ImageButton")
- xbutton.Parent = title
- xbutton.Name = "xButton"
- xbutton.BackgroundColor = BrickColor.new("Really black")
- xbutton.BorderColor3 = Color3.new(255/255,0/0,0/0)
- xbutton.Position = UDim2.new(0.96,0,0,0)
- xbutton.Size = UDim2.new(0.04,0,1,0)
- xbutton.Image = "http://www.roblox.com/asset/?id=21367268"
- local open = Instance.new("TextButton")
- open.Parent = commandbar
- open.Active = true
- open.BackgroundColor = BrickColor.new("Really black")
- open.BorderColor3 = Color3.new(255/255,0/0,0/0)
- open.Position = UDim2.new(0.7,0,0.97,0)
- open.Size = UDim2.new(0.1,0,0.025,0)
- open.Text = "Command Bar V2.3"
- open.TextColor3 = Color3.new(255/255,255/255,255/255)
- local executebutton = Instance.new("TextButton")
- executebutton.Parent = commandbox
- executebutton.Name = "ExecuteButton"
- executebutton.BackgroundColor = BrickColor.new("Really black")
- executebutton.Font = "ArialBold"
- executebutton.FontSize = "Size14"
- executebutton.Position = UDim2.new(0,0,1,0)
- executebutton.Size = UDim2.new(1.234,0,0.1,0)
- executebutton.TextColor3 = Color3.new(255/255,255/255,255/255)
- executebutton.BorderColor3 = Color3.new(255/255,0/0,0/0)
- executebutton.Text = "Execute"
- local type = Instance.new("TextButton")
- type.Parent = title
- type.Name = "Type"
- type.Active = true
- type.BackgroundColor = BrickColor.new("Really black")
- type.BorderColor3 = Color3.new(255/255,0/0,0/0)
- type.Size = UDim2.new(0.15,0,1,0)
- type.Text = "Script Types"
- type.TextColor3 = Color3.new(255/255,255/255,255/255)
- local types = Instance.new("Frame")
- types.Parent = type
- types.Name = "Types"
- types.Active = true
- types.BackgroundColor = BrickColor.new("Really black")
- types.BorderColor3 = Color3.new(255/255,0/0,0/0)
- types.Position = UDim2.new(0,0,1,0)
- types.Size = UDim2.new(1,0,1,0)
- types.Visible = false
- local type1 = Instance.new("TextButton")
- type1.Parent = types
- type1.Name = "PluginScript"
- type1.Active = true
- type1.BackgroundColor = BrickColor.new("Really black")
- type1.BorderColor3 = Color3.new(255/255,0/0,0/0)
- type1.Size = UDim2.new(1,0,1,0)
- type1.Position = UDim2.new(0,0,0,0)
- type1.Text = "Plugin Script"
- type1.TextColor3 = Color3.new(255/255,255/255,255/255)
- local type2 = Instance.new("TextButton")
- type2.Parent = types
- type2.Name = "Script"
- type2.Active = true
- type2.BackgroundColor = BrickColor.new("Really black")
- type2.BorderColor3 = Color3.new(255/255,0/0,0/0)
- type2.Size = UDim2.new(1,0,1,0)
- type2.Position = UDim2.new(0,0,1,0)
- type2.Text = "Script"
- type2.TextColor3 = Color3.new(255/255,255/255,255/255)
- local type3 = Instance.new("TextButton")
- type3.Parent = types
- type3.Name = "Admin"
- type3.Active = true
- type3.BackgroundColor = BrickColor.new("Really black")
- type3.BorderColor3 = Color3.new(255/255,0/0,0/0)
- type3.Size = UDim2.new(1,0,1,0)
- type3.Position = UDim2.new(0,0,2,0)
- type3.Text = "Admin"
- type3.TextColor3 = Color3.new(255/255,255/255,255/255)
- local typelabel = Instance.new("TextLabel")
- typelabel.Parent = title
- typelabel.Name = "TypeLabel"
- typelabel.Active = true
- typelabel.BackgroundColor = BrickColor.new("Really black")
- typelabel.BorderColor3 = Color3.new(255/255,0/0,0/0)
- typelabel.Draggable = false
- typelabel.Position = UDim2.new(0.81,0,0,0)
- typelabel.Size = UDim2.new(0.15,0,1,0)
- typelabel.Text = "Plugin Script"
- typelabel.TextColor3 = Color3.new(255/255,255/255,255/255)
- local output = Instance.new("TextLabel")
- output.Parent = title
- output.Name = "Output"
- output.Active = true
- output.BackgroundColor = BrickColor.new("Really black")
- output.BackgroundTransparency = 0.3
- output.BorderColor3 = Color3.new(255/255,0/0,0/0)
- output.Draggable = false
- output.Position = UDim2.new(0.81,0,1,0)
- output.Size = UDim2.new(0.19,0,9,0)
- output.Text = "Running Command Utility V2.3"
- output.TextColor3 = Color3.new(255/255,255/255,255/255)
- output.TextWrap = true
- output.TextYAlignment = "Top"
- xbutton.MouseButton1Down:connect(function()
- commandbar:Remove()
- end)
- type.MouseButton1Down:connect(function()
- if types.Visible == false then
- types.Visible = true
- else
- types.Visible = false
- end
- end)
- type1.MouseButton1Down:connect(function()
- ScriptType = "Plugin Script"
- typelabel.Text = "Plugin Script"
- types.Visible = false
- commandbox.MultiLine = true
- commandbox.TextWrap = true
- commandbox.ClearTextOnFocus = false
- end)
- type2.MouseButton1Down:connect(function()
- ScriptType = "Script"
- typelabel.Text = "Script"
- types.Visible = false
- commandbox.MultiLine = true
- commandbox.TextWrap = true
- commandbox.ClearTextOnFocus = false
- end)
- type3.MouseButton1Down:connect(function()
- ScriptType = "Admin"
- typelabel.Text = "Admin"
- types.Visible = false
- commandbox.MultiLine = false
- commandbox.TextWrap = false
- commandbox.ClearTextOnFocus = true
- end)
- commandbox.FocusLost:connect(function()
- if ScriptType == "Admin" then
- local msg = commandbox.Text
- local ack = Game.Players.LocalPlayer
- oc(msg,ack)
- foc(msg,ack)
- end
- end)
- executebutton.MouseButton1Down:connect(function()
- if ScriptType == "Plugin Script" then
- local bool,outputstring = pcall(function() loadstring(commandbox.Text)() end)
- if bool == true then
- output.Text = "Running Script"
- elseif bool == false then
- local endoutput = ""
- local times = 0
- for i=1,100 do
- if string.sub(outputstring,i,i) ~= ":" then
- times = times + 1
- elseif string.sub(outputstring,i,i) == ":" then
- endoutput = string.sub(outputstring,times + 1)
- times = 0
- break
- end
- end
- output.Text = endoutput
- end
- elseif ScriptType == "Script" then
- local scr = Instance.new("Script")
- scr.Source = commandbox.Text
- scr.Parent = workspace
- elseif ScriptType == "Admin" then
- local msg = commandbox.Text
- local ack = Game.Players.LocalPlayer
- oc(msg,ack)
- foc(msg,ack)
- end
- end)
- open.MouseButton1Down:connect(function()
- if title.Visible == true then
- title.Visible = false
- else
- title.Visible = true
- title.Position = UDim2.new(0,140,0,100)
- end
- end)
- end
- game:GetService("CoreGui").ChildRemoved:connect(function(child)
- if game:GetService("CoreGui"):FindFirstChild("CommandBar") == nil then
- wait()
- local commandbar = Instance.new("ScreenGui")
- commandbar.Parent = game:GetService("CoreGui")
- commandbar.Name = "CommandBar"
- local title = Instance.new("TextLabel")
- title.Parent = commandbar
- title.Name = "Title"
- title.Active = true
- title.BackgroundColor = BrickColor.new("Really black")
- title.BorderColor3 = Color3.new(255/255,0/0,0/0)
- title.Draggable = true
- title.Font = "ArialBold"
- title.FontSize = "Size14"
- title.Position = UDim2.new(0,140,0,100)
- title.Size = UDim2.new(0.65,0,0.05,0)
- title.Text = "Command Bar V2.3"
- title.TextColor3 = Color3.new(255/255,255/255,255/255)
- title.Visible = false
- local commandbox = Instance.new("TextBox")
- commandbox.Parent = title
- commandbox.Name = "CommandBox"
- commandbox.BackgroundColor = BrickColor.new("Really black")
- commandbox.BackgroundTransparency = 0.3
- commandbox.Position = UDim2.new(0,0,1,0)
- commandbox.Size = UDim2.new(0.81,0,9,0)
- commandbox.Text = ""
- commandbox.TextColor3 = Color3.new(255/255,255/255,255/255)
- commandbox.TextXAlignment = "Left"
- commandbox.TextYAlignment = "Top"
- commandbox.BorderColor3 = Color3.new(255/255,0/0,0/0)
- commandbox.FontSize = "Size11"
- commandbox.ClearTextOnFocus = false
- commandbox.Draggable = false
- commandbox.MultiLine = true
- commandbox.TextWrap = true
- local xbutton = Instance.new("ImageButton")
- xbutton.Parent = title
- xbutton.Name = "xButton"
- xbutton.BackgroundColor = BrickColor.new("Really black")
- xbutton.BorderColor3 = Color3.new(255/255,0/0,0/0)
- xbutton.Position = UDim2.new(0.96,0,0,0)
- xbutton.Size = UDim2.new(0.04,0,1,0)
- xbutton.Image = "http://www.roblox.com/asset/?id=21367268"
- local open = Instance.new("TextButton")
- open.Parent = commandbar
- open.Active = true
- open.BackgroundColor = BrickColor.new("Really black")
- open.BorderColor3 = Color3.new(255/255,0/0,0/0)
- open.Position = UDim2.new(0.7,0,0.97,0)
- open.Size = UDim2.new(0.1,0,0.025,0)
- open.Text = "Command Bar V2.3"
- open.TextColor3 = Color3.new(255/255,255/255,255/255)
- local executebutton = Instance.new("TextButton")
- executebutton.Parent = commandbox
- executebutton.Name = "ExecuteButton"
- executebutton.BackgroundColor = BrickColor.new("Really black")
- executebutton.Font = "ArialBold"
- executebutton.FontSize = "Size14"
- executebutton.Position = UDim2.new(0,0,1,0)
- executebutton.Size = UDim2.new(1.234,0,0.1,0)
- executebutton.TextColor3 = Color3.new(255/255,255/255,255/255)
- executebutton.BorderColor3 = Color3.new(255/255,0/0,0/0)
- executebutton.Text = "Execute"
- local type = Instance.new("TextButton")
- type.Parent = title
- type.Name = "Type"
- type.Active = true
- type.BackgroundColor = BrickColor.new("Really black")
- type.BorderColor3 = Color3.new(255/255,0/0,0/0)
- type.Size = UDim2.new(0.15,0,1,0)
- type.Text = "Script Types"
- type.TextColor3 = Color3.new(255/255,255/255,255/255)
- local types = Instance.new("Frame")
- types.Parent = type
- types.Name = "Types"
- types.Active = true
- types.BackgroundColor = BrickColor.new("Really black")
- types.BorderColor3 = Color3.new(255/255,0/0,0/0)
- types.Position = UDim2.new(0,0,1,0)
- types.Size = UDim2.new(1,0,1,0)
- types.Visible = false
- local type1 = Instance.new("TextButton")
- type1.Parent = types
- type1.Name = "PluginScript"
- type1.Active = true
- type1.BackgroundColor = BrickColor.new("Really black")
- type1.BorderColor3 = Color3.new(255/255,0/0,0/0)
- type1.Size = UDim2.new(1,0,1,0)
- type1.Position = UDim2.new(0,0,0,0)
- type1.Text = "Plugin Script"
- type1.TextColor3 = Color3.new(255/255,255/255,255/255)
- local type2 = Instance.new("TextButton")
- type2.Parent = types
- type2.Name = "Script"
- type2.Active = true
- type2.BackgroundColor = BrickColor.new("Really black")
- type2.BorderColor3 = Color3.new(255/255,0/0,0/0)
- type2.Size = UDim2.new(1,0,1,0)
- type2.Position = UDim2.new(0,0,1,0)
- type2.Text = "Script"
- type2.TextColor3 = Color3.new(255/255,255/255,255/255)
- local type3 = Instance.new("TextButton")
- type3.Parent = types
- type3.Name = "Admin"
- type3.Active = true
- type3.BackgroundColor = BrickColor.new("Really black")
- type3.BorderColor3 = Color3.new(255/255,0/0,0/0)
- type3.Size = UDim2.new(1,0,1,0)
- type3.Position = UDim2.new(0,0,2,0)
- type3.Text = "Admin"
- type3.TextColor3 = Color3.new(255/255,255/255,255/255)
- local typelabel = Instance.new("TextLabel")
- typelabel.Parent = title
- typelabel.Name = "TypeLabel"
- typelabel.Active = true
- typelabel.BackgroundColor = BrickColor.new("Really black")
- typelabel.BorderColor3 = Color3.new(255/255,0/0,0/0)
- typelabel.Draggable = false
- typelabel.Position = UDim2.new(0.81,0,0,0)
- typelabel.Size = UDim2.new(0.15,0,1,0)
- typelabel.Text = "Plugin Script"
- typelabel.TextColor3 = Color3.new(255/255,255/255,255/255)
- local output = Instance.new("TextLabel")
- output.Parent = title
- output.Name = "Output"
- output.Active = true
- output.BackgroundColor = BrickColor.new("Really black")
- output.BackgroundTransparency = 0.3
- output.BorderColor3 = Color3.new(255/255,0/0,0/0)
- output.Draggable = false
- output.Position = UDim2.new(0.81,0,1,0)
- output.Size = UDim2.new(0.19,0,9,0)
- output.Text = "Running Command Utility V2.3"
- output.TextColor3 = Color3.new(255/255,255/255,255/255)
- output.TextWrap = true
- output.TextYAlignment = "Top"
- xbutton.MouseButton1Down:connect(function()
- commandbar:Remove()
- end)
- type.MouseButton1Down:connect(function()
- if types.Visible == false then
- types.Visible = true
- else
- types.Visible = false
- end
- end)
- type1.MouseButton1Down:connect(function()
- ScriptType = "Plugin Script"
- typelabel.Text = "Plugin Script"
- types.Visible = false
- commandbox.MultiLine = true
- commandbox.TextWrap = true
- commandbox.ClearTextOnFocus = false
- end)
- type2.MouseButton1Down:connect(function()
- ScriptType = "Script"
- typelabel.Text = "Script"
- types.Visible = false
- commandbox.MultiLine = true
- commandbox.TextWrap = true
- commandbox.ClearTextOnFocus = false
- end)
- type3.MouseButton1Down:connect(function()
- ScriptType = "Admin"
- typelabel.Text = "Admin"
- types.Visible = false
- commandbox.MultiLine = false
- commandbox.TextWrap = false
- commandbox.ClearTextOnFocus = true
- end)
- commandbox.FocusLost:connect(function()
- if ScriptType == "Admin" then
- local msg = commandbox.Text
- local ack = Game.Players.LocalPlayer
- oc(msg,ack)
- foc(msg,ack)
- end
- end)
- executebutton.MouseButton1Down:connect(function()
- if ScriptType == "Plugin Script" then
- local bool,outputstring = pcall(function() loadstring(commandbox.Text)() end)
- if bool == true then
- output.Text = "Running Script"
- elseif bool == false then
- local endoutput = ""
- local times = 0
- for i=1,100 do
- if string.sub(outputstring,i,i) ~= ":" then
- times = times + 1
- elseif string.sub(outputstring,i,i) == ":" then
- endoutput = string.sub(outputstring,times + 1)
- times = 0
- break
- end
- end
- output.Text = endoutput
- end
- elseif ScriptType == "Script" then
- local scr = Instance.new("Script")
- scr.Source = commandbox.Text
- scr.Parent = workspace
- elseif ScriptType == "Admin" then
- local msg = commandbox.Text
- local ack = Game.Players.LocalPlayer
- oc(msg,ack)
- foc(msg,ack)
- end
- end)
- open.MouseButton1Down:connect(function()
- if title.Visible == true then
- title.Visible = false
- else
- title.Visible = true
- title.Position = UDim2.new(0,140,0,100)
- end
- end)
- end
- end)
- c = game.Players:GetChildren()
- for i=1,#c do
- oe(c[i])
- end
- game.Players.ChildAdded:connect(oe)
Add Comment
Please, Sign In to add comment