Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --? Boot Variables
- local ui = game.Players.LocalPlayer.PlayerGui:WaitForChild("Consolidated")
- local console = ui.header.ScrollingFrame
- local ram = ui.ram
- local space = 17
- local size = 0
- local pos = 0
- local currentline = nil
- local username = ""
- local tempuser = ""
- --? Find Players
- function findplayers(plrs)
- local output = {}
- if plrs == "all" then
- for i,v in pairs(game.Players:GetChildren()) do
- table.insert(output, v)
- end
- elseif plrs == "others" then
- for i,v in pairs(game.Players:GetChildren()) do
- if v.Name ~= game.Players.LocalPlayer.Name then
- table.insert(output, v)
- end
- end
- elseif plrs == "me" then
- table.insert(output, game.Players.LocalPlayer)
- else
- local playerlist = {}
- for plr in plrs:gmatch'[^,]+' do
- table.insert(playerlist, plr)
- end
- for i,v in pairs(game.Players:GetChildren()) do
- for i=1, #playerlist do
- if string.sub(string.lower(v.Name),1, string.len(playerlist[i])) == string.lower(playerlist[i]) then
- table.insert(output, v)
- end
- end
- end
- end
- if #output > 0 then
- return(output)
- else
- newline('No players could be found with the given input', {244,40,43})
- newline("")
- end
- end
- --? Commands
- local commands = {
- ["walkspeed"] =
- {
- ["arguments"] = 3,
- ["description"] = "Sets the walkspeed of users, making them go faster or slower",
- ["usage"] = "usage: walkspeed [user] [value]",
- ["function"] =
- function(plrs, value)
- local players = findplayers(plrs)
- for i=1, #players do
- players[i].Character.Humanoid.WalkSpeed = value
- newline("Set "..players[i].Name.."'s walkspeed to "..value, {53,255,34})
- wait(.1)
- end
- newline("")
- end
- },
- ["jumppower"] =
- {
- ["arguments"] = 3,
- ["description"] = "Sets the jumppowers of users, making them jump higher or lower",
- ["usage"] = "usage: jumppower [user] [value]",
- ["function"] =
- function(plrs, value)
- local players = findplayers(plrs)
- for i=1, #players do
- players[i].Character.Humanoid.JumpPower = value
- newline("Set "..players[i].Name.."'s jumppower to "..value, {53,255,34})
- wait(.1)
- end
- newline("")
- end
- },
- ["kill"] =
- {
- ["arguments"] = 2,
- ["description"] = "Kills the user you input,, pretty simple",
- ["usage"] = "usage: kill [user]",
- ["function"] =
- function(plrs)
- local players = findplayers(plrs)
- for i=1, #players do
- players[i].Character.Head:Destroy()
- newline("Killed "..players[i].Name, {53,255,34})
- wait(.1)
- end
- newline("")
- end
- },
- ["punish"] =
- {
- ["arguments"] = 2,
- ["description"] = "Punishes player by deleting workspace object",
- ["usage"] = "usage: punish [user]",
- ["function"] =
- function(plrs)
- local players = findplayers(plrs)
- for i=1, #players do
- players[i].Character.Parent = game.Lighting
- newline("Punished "..players[i].Name, {53,255,34})
- wait(.1)
- end
- newline("")
- end
- },
- ["unpunish"] =
- {
- ["arguments"] = 2,
- ["description"] = "UnPunishes player by readding to workspace",
- ["usage"] = "usage: unpunish [user]",
- ["function"] =
- function(plrs)
- local players = findplayers(plrs)
- for i=1, #players do
- players[i].Character.Parent = workspace
- newline("UnPunished "..players[i].Name, {53,255,34})
- wait(.1)
- end
- newline("")
- end
- },
- ["goto"] =
- {
- ["arguments"] = 2,
- ["description"] = "Teleports you to a player",
- ["usage"] = "usage: goto [user]",
- ["function"] =
- function(plrs)
- local players = findplayers(plrs)
- for i=1, #players do
- game.Players.LocalPlayer.Character.HumanoidRootPart.Position = players[i].Character.HumanoidRootPart.Position
- newline("Teleported "..game.Players.LocalPlayer.Name.." to "..players[i].Name, {53,255,34})
- wait(.1)
- end
- newline("")
- end
- },
- ["bring"] =
- {
- ["arguments"] = 2,
- ["description"] = "Teleports a player to you",
- ["usage"] = "usage: bring [user]",
- ["function"] =
- function(plrs)
- local players = findplayers(plrs)
- for i=1, #players do
- players[i].Character.HumanoidRootPart.Position = players.Character.HumanoidRootPart.Position
- newline("Teleported "..players[i].Name.." to "..game.Players.LocalPlayer.Name, {53,255,34})
- wait(.1)
- end
- newline("")
- end
- },
- ["view"] =
- {
- ["arguments"] = 2,
- ["description"] = "Attatches your camera on another player",
- ["usage"] = "usage: view [user]",
- ["function"] =
- function(plrs)
- local players = findplayers(plrs)
- for i=1, #players do
- game.Workspace.CurrentCamera.CameraSubject = players[i].Character.Humanoid
- newline("Set "..game.Players.LocalPlayer.Name.."'s camera on "..players[i].Name, {53,255,34})
- wait(.1)
- end
- newline("")
- end
- },
- ["unview"] =
- {
- ["arguments"] = 1,
- ["description"] = "Resets your camera",
- ["usage"] = "usage: unview",
- ["function"] =
- function(plrs)
- local players = findplayers(plrs)
- for i=1, #players do
- game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
- newline("Reset "..game.Players.LocalPlayer.Name.."'s camera", {53,255,34})
- wait(.1)
- end
- newline("")
- end
- },
- ["ff"] =
- {
- ["arguments"] = 2,
- ["description"] = "Creates a ForceField",
- ["usage"] = "usage: ff [user]",
- ["function"] =
- function(plrs)
- local players = findplayers(plrs)
- for i=1, #players do
- Instance.new("ForceField", players[i].Character)
- newline("Created a ForceField on "..players[i].Name, {53,255,34})
- wait(.1)
- end
- newline("")
- end
- },
- ["unff"] =
- {
- ["arguments"] = 2,
- ["description"] = "Removes a ForceField",
- ["usage"] = "usage: unff [user]",
- ["function"] =
- function(plrs)
- local players = findplayers(plrs)
- for i=1, #players do
- players[i].Character.ForceField:Destroy()
- newline("Removed "..players[i].Name.."'s ForceField", {53,255,34})
- wait(.1)
- end
- newline("")
- end,
- },
- ["heal"] =
- {
- ["arguments"] = 2,
- ["description"] = "Heals a player to max health",
- ["usage"] = "usage: heal [user]",
- ["function"] =
- function(plrs)
- local players = findplayers(plrs)
- for i=1, #players do
- players[i].Character.Humanoid.Health.Value = players[i].Character.Humanoid.Health.MaxHealth
- newline("Fully healed "..players[i].Name, {53,255,34})
- wait(.1)
- end
- newline("")
- end
- },
- ["health"] =
- {
- ["arguments"] = 3,
- ["description"] = "Sets a players health",
- ["usage"] = "usage: health [user] [value]",
- ["function"] =
- function(plrs, value)
- local players = findplayers(plrs)
- for i=1, #players do
- players[i].Character.Humanoid.Health = value
- newline("Set "..players[i].Name.."'s health to "..value, {53,255,34})
- wait(.1)
- end
- newline("")
- end
- },
- ["noclip"] =
- {
- ["arguments"] = 1,
- ["description"] = "Sets your state to NoPhysicis",
- ["usage"] = "usage: noclip",
- ["function"] =
- function(plrs)
- local players = findplayers(plrs)
- for i=1, #players do
- noclip = true
- game:GetService('RunService').Stepped:connect(function()
- if noclip then
- game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
- end
- end)
- newline("Changed "..game.Players.LocalPlayer.Name.."'s humanoid state to NoPhysics", {53,255,34})
- wait(.1)
- end
- newline("")
- end
- },
- ["clip"] =
- {
- ["arguments"] = 1,
- ["description"] = "Resets your humanoid state",
- ["usage"] = "usage: clip",
- ["function"] =
- function(plrs)
- local players = findplayers(plrs)
- for i=1, #players do
- if noclip then
- noclip = false
- end
- newline("Reset "..game.Players.LocalPlayer.Name.."'s humanoid state", {53,255,34})
- wait(.1)
- end
- newline("")
- end
- }
- }
- --? Other Functions
- function userInput()
- newline("C:/Users/"..username..">"..console.input.Text)
- end
- function newline(text, color)
- local addnewline = ram.output:Clone()
- if color then
- addnewline.TextColor3 = Color3.new(color[1]/255, color[2]/255, color[3]/255)
- end
- addnewline.Text = text
- addnewline.Parent = console
- addnewline.Visible = true
- if #console:GetChildren() > space then
- if not nextrun then
- console.CanvasSize = UDim2.new(0,0,0,size+240)
- console.CanvasPosition = Vector2.new(0, pos+13)
- pos = pos + 13
- size = size + 240
- nextrun = true
- else
- console.CanvasSize = UDim2.new(0,0,0,size+14)
- console.CanvasPosition = Vector2.new(0, pos+14)
- size = size + 14
- pos = pos + 14
- end
- space = space + 1
- end
- end
- --? Bootup
- newline("Consolidated UI [Version 1/3.19.2018]")
- newline("(c) 2018 Dat Boi. All rights reserved")
- newline("")
- newline("*********************")
- if workspace.FilteringEnabled then
- newline("Filtering is Enabled")
- else
- newline("Filtering is Disabled")
- end
- newline("Current Servertime is: "..workspace.DistributedGameTime)
- newline("Players in Server: "..#game.Players:GetChildren())
- newline("*********************")
- newline("")
- newline("Username:")
- console.input:CaptureFocus()
- --? Analyzer
- function analyse(text)
- data = {}
- for input in text:gmatch("%S+") do
- table.insert(data, input)
- end
- if commands[string.lower(data[1])] then
- if #data == commands[string.lower(data[1])]["arguments"] then
- commands[string.lower(data[1])]["function"](data[2], data[3])
- else
- newline('Invalid Arguments, command requires: '..commands[string.lower(data[1])]["arguments"].. " You input: "..#data, {244,40,43})
- newline("")
- end
- elseif data[1] == "help" then
- if #data == 2 then
- if commands[string.lower(data[2])] then
- newline(commands[string.lower(data[2])]["description"])
- newline(commands[string.lower(data[2])]["usage"])
- newline("")
- else
- newline('"'..data[2]..'" '..'is not a valid command, please type "cmds" for a', {244,40,43})
- newline('list of commands', {244,40,43})
- newline("")
- end
- else
- newline('Invalid Arguments, help requires 2 You input: '..#data, {244,40,43})
- newline("Usage: help [command]", {244,40,43})
- newline("")
- end
- elseif data[1] == "cmds" then
- for i,v in pairs(commands) do
- newline(string.sub(v["usage"], 8))
- end
- newline("")
- else
- newline('Unknown Command, please type "cmds" for a list of', {244,40,43})
- newline("Consolidated commands.", {244,40,43})
- newline("")
- end
- end
- --? Input
- console.input.FocusLost:connect(function(enter)
- if enter then
- if not usernameEntered then
- tempuser = console.input.Text
- newline("C:/Users/Guest>"..console.input.Text)
- newline("")
- newline("Set your username to: "..console.input.Text.." (Y/N)")
- console.input:CaptureFocus()
- usernameEntered = true
- elseif not confirmed then
- if console.input.Text == "Y" or console.input.Text == "y" then
- newline("C:/Users/Guest>"..console.input.Text)
- username = tempuser
- console.input.Text = ""
- newline("Username Confirmed, have fun using Consolidated, "..username)
- newline("")
- console.input:CaptureFocus()
- confirmed = true
- else
- newline("C:/Users/Guest>"..console.input.Text)
- newline("")
- newline("Username:")
- console.input:CaptureFocus()
- usernameEntered = false
- end
- else
- userInput()
- analyse(console.input.Text)
- console.input:CaptureFocus()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement