Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --//Some unnamed Admin-Gui
- --//Made by Chebureki#5214
- --//Possible upates coming
- --//Release related Information, mostly for myself
- local Name = "CMD-ADMIN"
- local Version = "v1.0"
- local Changelogs = [[
- -Release ^^
- -Added the framework
- -Made the gui]]
- --//
- local ScreenGui = Instance.new("ScreenGui")
- local Header = Instance.new("Frame")
- local Container = Instance.new("Frame")
- local Output = Instance.new("ScrollingFrame")
- local InputIndicator = Instance.new("TextLabel")
- local Input = Instance.new("TextBox")
- local Template = Instance.new("TextLabel")
- local Title = Instance.new("TextLabel")
- local Close = Instance.new("TextButton")
- local Minimize = Instance.new("TextButton")
- local Min = Minimize
- local ExampleLine = Template
- ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
- ScreenGui.ResetOnSpawn = false
- ScreenGui.Name = "CMD-ADMIN"
- Header.Name = "Header"
- Header.Parent = ScreenGui
- Header.Active = true
- Header.BackgroundColor3 = Color3.new(0, 0, 0)
- Header.BorderSizePixel = 0
- Header.Draggable = true
- Header.Position = UDim2.new(0.0670785606, 0, 0.409535438, 0)
- Header.Size = UDim2.new(0, 338, 0, 21)
- Container.Name = "Container"
- Container.Parent = Header
- Container.BackgroundColor3 = Color3.new(0, 0, 0)
- Container.BackgroundTransparency = 0.30000001192093
- Container.BorderColor3 = Color3.new(0, 0, 0)
- Container.BorderSizePixel = 0
- Container.ClipsDescendants = true
- Container.Position = UDim2.new(0.00128474832, 0, 1.00211155, 0)
- Container.Size = UDim2.new(0, 338, 0, 294)
- Output.Name = "Output"
- Output.Parent = Container
- Output.BackgroundColor3 = Color3.new(1, 1, 1)
- Output.BackgroundTransparency = 1
- Output.Size = UDim2.new(0, 338, 0, 265)
- Output.BottomImage = ""
- Output.CanvasSize = UDim2.new(0, 0, 0, 300)
- Output.ScrollBarThickness = 5
- Output.TopImage = ""
- InputIndicator.Name = "InputIndicator"
- InputIndicator.Parent = Container
- InputIndicator.BackgroundColor3 = Color3.new(0, 0, 0)
- InputIndicator.BackgroundTransparency = 0.89999997615814
- InputIndicator.Position = UDim2.new(0, 0, 0.901360571, 0)
- InputIndicator.Size = UDim2.new(0, 32, 0, 29)
- InputIndicator.Font = Enum.Font.Code
- InputIndicator.Text = ">"
- InputIndicator.TextColor3 = Color3.new(1, 1, 1)
- InputIndicator.TextSize = 14
- Input.Name = "Input"
- Input.Parent = Container
- Input.BackgroundColor3 = Color3.new(0, 0, 0)
- Input.BorderSizePixel = 0
- Input.BackgroundTransparency = 0.89999997615814
- Input.Position = UDim2.new(0.0946745574, 0, 0.901360571, 0)
- Input.Size = UDim2.new(0, 300, 0, 29)
- Input.Font = Enum.Font.Code
- Input.Text = ""
- Input.TextColor3 = Color3.new(1, 1, 1)
- Input.TextSize = 14
- Input.TextWrapped = true
- Input.TextXAlignment = Enum.TextXAlignment.Left
- Template.Name = "Template"
- Template.Parent = Input
- Template.BackgroundColor3 = Color3.new(1, 1, 1)
- Template.BackgroundTransparency = 1
- Template.Size = UDim2.new(0, 332, 0, 15)
- Template.Visible = false
- Template.Font = Enum.Font.Code
- Template.Text = "[OUT]TEST"
- Template.TextColor3 = Color3.new(1, 1, 1)
- Template.TextSize = 14
- Template.TextXAlignment = Enum.TextXAlignment.Left
- Title.Name = "Title"
- Title.Parent = Header
- Title.BackgroundColor3 = Color3.new(1, 1, 1)
- Title.BackgroundTransparency = 1
- Title.Size = UDim2.new(0, 175, 0, 21)
- Title.Font = Enum.Font.SourceSans
- Title.Text = Name..Version
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextSize = 14
- Close.Name = "Close"
- Close.Parent = Header
- Close.BackgroundColor3 = Color3.new(0, 0, 0)
- Close.BorderSizePixel = 0
- Close.Position = UDim2.new(0.881656826, 0, 0, 0)
- Close.Size = UDim2.new(0, 40, 0, 21)
- Close.Font = Enum.Font.SourceSans
- Close.Text = "X"
- Close.TextColor3 = Color3.new(1, 1, 1)
- Close.TextSize = 14
- Minimize.Name = "Minimize"
- Minimize.Parent = Header
- Minimize.BackgroundColor3 = Color3.new(0, 0, 0)
- Minimize.BorderSizePixel = 0
- Minimize.Position = UDim2.new(0.763313651, 0, 0, 0)
- Minimize.Size = UDim2.new(0, 40, 0, 21)
- Minimize.Font = Enum.Font.SourceSans
- Minimize.Text = "_"
- Minimize.TextColor3 = Color3.new(1, 1, 1)
- Minimize.TextSize = 14
- --//Gui Style stuff
- local obama = 0
- function fade(outPutColor)
- obama = math.random(1,10000)
- local check = obama
- local originalColor = Close.BackgroundColor3
- for i=0,1,0.1 do
- if check~= obama then break end
- Close.BackgroundColor3 = originalColor:lerp(outPutColor,i)
- wait()
- end
- end
- Close.MouseEnter:Connect(function()
- fade(Color3.new(1,0,0))
- end)
- Close.MouseLeave:Connect(function()
- fade(Color3.new(0,0,0))
- end)
- Close.MouseButton1Click:Connect(function()
- ScreenGui:Destroy()
- end)
- local minimized = false
- local originalSize = Container.Size
- Min.MouseButton1Click:Connect(function()
- if minimized then
- Container:TweenSize(originalSize,Enum.EasingDirection.Out,Enum.EasingStyle.Quint,0.4)
- else
- Container:TweenSize(originalSize-UDim2.new(0,0,0,originalSize.Y.Offset),Enum.EasingDirection.Out,Enum.EasingStyle.Quint,0.4)
- end
- minimized = not minimized
- end)
- --//
- --//User Settings
- local settings = {}
- settings.UserColor = Color3.new(1,1,1)
- --//
- --//Parsing Stuff
- local parse = {}
- parse.getArgs = function(input)
- local Arguments = {}
- for arg in input:gmatch("%w+")do
- arg = string.gsub(arg,"%s","")
- table.insert(Arguments,arg)
- end
- return Arguments
- end
- local colorList = {
- ["red"] = Color3.new(1,0,0),
- ["green"] = Color3.new(0,1,0),
- ["blue"] = Color3.new(0,0,1)
- }
- parse.getColor3 = function(input)
- if colorList[input] ~= nil then
- return colorList[input]
- else
- return nil
- end
- end
- function getPlayers(input,player)
- local players = {}
- if input == "me" then
- return {player}
- end
- if input == "all" then
- return game.Players:GetPlayers()
- end
- if input == "others" then
- for _,v in pairs(game.Players:GetPlayers())do
- if v ~= player then
- table.insert(players,v)
- end
- end
- else
- for i,v in pairs(game.Players:GetPlayers())do
- if v.Name:match(input) then
- table.insert(players,v)
- end
- end
- end
- return players
- end
- --//
- --//Console Related functions
- local console = {}
- console.out = function(input,color,symbol)
- if color == nil then color = settings.UserColor end
- if symbol == nil then symbol = "" end
- if input == nil then input = "" end
- local line = ExampleLine:Clone()
- line.Position = UDim2.new(0,0,0,15*#(Output:GetChildren()))
- if string.find(input,"\n") ~=nil then
- local _,pos = string.find(input,"\n")
- console.out(string.sub(input,1,pos-1),color,symbol)
- console.out(string.sub(input,pos+1,#input),color,symbol)
- return
- end
- if #input > 44 then
- console.out(string.sub(input,1,44),color,symbol)
- console.out(string.sub(input,45,#input),color,symbol)
- return
- end
- line.Text = "["..symbol.."]"..input
- line.Visible = true
- line.Parent = Output
- line.TextColor3 = color
- Output.CanvasSize = UDim2.new(0,0,0,#(Output:GetChildren())*15)
- Output.CanvasPosition = Vector2.new(0,-15*17+15*#(Output:GetChildren()))
- end
- console.error = function(input)
- console.out(input,Color3.new(1,0,0),"?")
- end
- local commands = {}
- local addCommand = function(Name,Description,Command)
- commands[Name] = {}
- local container = commands[Name]
- container.Description = Description
- container.cmd = Command
- end
- addCommand("help","prints the use", function(Arguments,Raw)
- if Arguments[2] == nil then
- local counter = 1
- for command,func in pairs(commands)do
- console.out(command..": "..func.Description,Color3.new(1,1,0),counter)
- counter = counter+1
- end
- else
- if commands[Arguments[2]] ~= nil then
- console.out(Arguments[2]..": "..commands[Arguments[2]].Description,Color3.new(1,1,0))
- else
- console.error(Arguments[2].." is not a cmd!")
- end
- end
- end)
- addCommand("changelogs","self-explanatory", function(Arguments,Raw)
- console.out(Changelogs,Color3.new(1,1,0))
- end)
- addCommand("print","prints duh", function(Arguments,Raw)
- console.out(string.sub(Raw,string.len(Arguments[1])+2,string.len(Raw)))
- end)
- addCommand("toggleclear","Toggles the option", function(Arguments,Raw)
- Input.ClearTextOnFocus = not Input.ClearTextOnFocus
- console.out("Toggled to: "..tostring(Input.ClearTextOnFocus),Color3.new(0.5,0.5,1))
- end)
- addCommand("clear","clears the output", function(Arguments,Raw)
- Output:ClearAllChildren()
- console.out("Console has been cleared",Color3.new(0.5,0.5,1),"!")
- end)
- addCommand("color","changes the usercolor", function(Arguments,Raw)
- if parse.getColor3(Arguments[2]) ~= nil then
- settings.UserColor = parse.getColor3(Arguments[2])
- else
- console.error(Arguments[2].." is not a valid color!")
- end
- end)
- addCommand("lua","execute lua", function(Arguments,Raw)
- local success,message = pcall(function()
- print = function(...)
- console.out(table.concat({...}," "))
- end
- warn = function(...)
- console.out(table.concat({...}," "),Color3.new(1, 0.54902, 0),"!")
- end
- loadstring(string.sub(Raw,string.len(Arguments[1])+2,string.len(Raw)))()
- end)
- if not success then
- console.error("An error occured!")
- console.error(message)
- end
- end)
- addCommand("kill","kill [Target]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- player.Character.Humanoid.Health = 0
- end
- end
- end)
- addCommand("tp","tp [Target] [Destination]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if getPlayers(parameters[3],speaker)[1]== nil or #(getPlayers(parameters[3],speaker)) > 1 then
- return
- end
- for _,player in pairs(getPlayers(parameters[2],Raw,speaker))do
- if player.Character then
- player.Character:MoveTo(getPlayers(parameters[3],speaker)[1].Character.HumanoidRootPart.Position)
- end
- end
- end
- end)
- addCommand("kill","kill [Target]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- player.Character.Humanoid.Health = 0
- end
- end
- end)
- addCommand("ws","ws [Target] [WalkSpeed]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- player.Character.Humanoid.WalkSpeed = parameters[3]
- end
- end
- end)
- addCommand("jp","jp [Target] [JumpPower]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- player.Character.Humanoid.JumpPower = parameters[3]
- end
- end
- end)
- addCommand("fire","fire [Target]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- Instance.new("Fire",player.Character.HumanoidRootPart)
- end
- end
- end)
- addCommand("sparkle","sparkle [Target]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- Instance.new("Sparkles",player.Character.HumanoidRootPart)
- end
- end
- end)
- addCommand("smoke","smoke [Target]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- Instance.new("Smoke",player.Character.HumanoidRootPart)
- end
- end
- end)
- addCommand("ff","ff [Target]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- Instance.new("ForceField",player.Character)
- end
- end
- end)
- addCommand("god","god [Target]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- player.Character.Humanoid.MaxHealth = math.huge
- player.Character.Humanoid.Health = math.huge
- end
- end
- end)
- addCommand("explode","explode [Target]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- Instance.new("Explosion",player.Character).Position = player.Character.HumanoidRootPart.Position
- end
- end
- end)
- addCommand("freeze","freeze [Target]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- for _,part in pairs(player.Character:GetChildren())do
- if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
- part.Anchored = true
- end
- end
- end
- end
- end)
- addCommand("clone","clone [Target]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- player.Character.Archivable = true
- player.Character:Clone().Parent = workspace
- player.Character.Archivable = false
- end
- end
- end)
- addCommand("grav","grav [Force]",function(parameters,Raw,speaker)
- if tonumber(parameters[2]) == nil then return end
- workspace.Gravity = tonumber(parameters[2])
- end)
- addCommand("taw","taw [Target]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- for _,part in pairs(player.Character:GetChildren())do
- if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
- part.Anchored = false
- end
- end
- end
- end
- end)
- addCommand("heal","heal [Target] [Amount]",function(parameters,Raw,speaker)
- if tonumber(parameters[3]) == nil then parameters[3] = math.huge end
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- player.Character.Humanoid.Health = player.Character.Humanoid.Health + parameters[3]
- end
- end
- end)
- addCommand("damage","damage [Amount]",function(parameters,Raw,speaker)
- if tonumber(parameters[3]) == nil then return end
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- player.Character.Humanoid.Health = player.Character.Humanoid.Health - parameters[3]
- end
- end
- end)
- addCommand("health","health [Amount]",function(parameters,Raw,speaker)
- if tonumber(parameters[3]) == nil then return end
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- if tonumber(parameters[3]) > player.Character.Humanoid.MaxHealth then
- player.Character.Humanoid.MaxHealth = tonumber(parameters[3])
- end
- player.Character.Humanoid.Health = parameters[3]
- end
- end
- end)
- addCommand("sit","sit [Target]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- player.Character.Humanoid.Sit = true
- end
- end
- end)
- addCommand("btools","btools [Target]",function(parameters,Raw,speaker)
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- Instance.new("HopperBin",player.Backpack).BinType = Enum.BinType.Clone
- Instance.new("HopperBin",player.Backpack).BinType = Enum.BinType.Grab
- Instance.new("HopperBin",player.Backpack).BinType = Enum.BinType.Hammer
- end
- end)
- addCommand("transp","transp [Target] [Percentage]",function(parameters,Raw,speaker)
- if tonumber(parameters[3]) == nil then
- parameters[3] = 100
- end
- for _,player in pairs(getPlayers(parameters[2],speaker))do
- if player.Character then
- for _,part in pairs(player.Character:GetDescendants())do
- if (part:IsA("BasePart") and part.Name ~= "HumanoidRootPart") or part:IsA("Decal") then
- part.Transparency = tonumber(parameters[3])/100
- end
- end
- end
- end
- end)
- --//
- --//Input Stuff
- Input.FocusLost:Connect(function()
- local input = Input.Text
- if input == "" or input == nil then return end
- local Arguments = parse.getArgs(input)
- if commands[Arguments[1]]~= nil then
- commands[Arguments[1]].cmd(Arguments,input,game.Players.LocalPlayer)
- else
- console.error(Arguments[1].." is not a valid command!")
- end
- end)
- --//
- --//Beginning Messages
- console.out("G'day "..game.Players.LocalPlayer.Name,Color3.new(0.5,0.5,1),"!")
- console.out("Bazinga",Color3.new(0.5,0.5,1),"Server Message")
- console.out("Use 'help' to view all commands!",Color3.new(0.5,0.5,1),"!")
- --//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement