Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Credits to creator --> https://pastebin.com/u/the-j
- -- Instances:
- local PL = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local Corner = Instance.new("UICorner")
- local ScrollingFrameCommands = Instance.new("ScrollingFrame")
- local ScrollLabels = Instance.new("Folder")
- local Title = Instance.new("TextLabel")
- local Description = Instance.new("Folder")
- local Descriptor = Instance.new("TextLabel")
- local Corner_2 = Instance.new("UICorner")
- local MainTitle = Instance.new("TextLabel")
- local Corner_3 = Instance.new("UICorner")
- local Executor = Instance.new("TextButton")
- local Corner_4 = Instance.new("UICorner")
- local CommandBar = Instance.new("TextBox")
- local Corner_5 = Instance.new("UICorner")
- local SwitchFrame = Instance.new("TextButton")
- local Corner_6 = Instance.new("UICorner")
- --Properties:
- PL.Name = "PL"
- PL.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- PL.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = PL
- MainFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- MainFrame.Position = UDim2.new(0.784710407, 0, 0.339702725, 0)
- MainFrame.Size = UDim2.new(0.21473597, 0, 0.318577498, 0)
- Corner.Name = "Corner"
- Corner.Parent = MainFrame
- ScrollingFrameCommands.Name = "ScrollingFrameCommands"
- ScrollingFrameCommands.Parent = MainFrame
- ScrollingFrameCommands.Active = true
- ScrollingFrameCommands.BackgroundColor3 = Color3.fromRGB(225, 225, 225)
- ScrollingFrameCommands.BorderSizePixel = 0
- ScrollingFrameCommands.Position = UDim2.new(0, 0, 0.158280194, 0)
- ScrollingFrameCommands.Size = UDim2.new(0.5, 0, 0.674941719, 0)
- ScrollLabels.Name = "ScrollLabels"
- ScrollLabels.Parent = ScrollingFrameCommands
- Title.Name = "Title"
- Title.Parent = ScrollLabels
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Title.Font = Enum.Font.SourceSans
- Title.Text = "Commands:"
- Title.TextColor3 = Color3.fromRGB(0, 0, 0)
- Title.TextScaled = true
- Title.TextSize = 14.000
- Title.TextWrapped = true
- Description.Name = "Description"
- Description.Parent = MainFrame
- Descriptor.Name = "Descriptor"
- Descriptor.Parent = Description
- Descriptor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Descriptor.Position = UDim2.new(0, 0, 0.99966687, 0)
- Descriptor.Size = UDim2.new(1, 0, 0.400000006, 0)
- Descriptor.Visible = false
- Descriptor.Font = Enum.Font.SourceSans
- Descriptor.Text = ""
- Descriptor.TextColor3 = Color3.fromRGB(0, 0, 0)
- Descriptor.TextScaled = true
- Descriptor.TextSize = 14.000
- Descriptor.TextWrapped = true
- Corner_2.Name = "Corner"
- Corner_2.Parent = Descriptor
- MainTitle.Name = "MainTitle"
- MainTitle.Parent = MainFrame
- MainTitle.BackgroundColor3 = Color3.fromRGB(225, 225, 225)
- MainTitle.Size = UDim2.new(1, 0, 0.125, 0)
- MainTitle.Font = Enum.Font.SourceSans
- MainTitle.Text = "Prison Life"
- MainTitle.TextColor3 = Color3.fromRGB(0, 0, 0)
- MainTitle.TextScaled = true
- MainTitle.TextSize = 14.000
- MainTitle.TextWrapped = true
- Corner_3.Name = "Corner"
- Corner_3.Parent = MainTitle
- Executor.Name = "Executor"
- Executor.Parent = MainFrame
- Executor.BackgroundColor3 = Color3.fromRGB(225, 225, 225)
- Executor.Position = UDim2.new(-3.02633623e-07, 0, 0.874708414, 0)
- Executor.Size = UDim2.new(1, 0, 0.125, 0)
- Executor.Font = Enum.Font.SourceSans
- Executor.Text = "Execute Command"
- Executor.TextColor3 = Color3.fromRGB(0, 0, 0)
- Executor.TextScaled = true
- Executor.TextSize = 14.000
- Executor.TextWrapped = true
- Corner_4.Name = "Corner"
- Corner_4.Parent = Executor
- CommandBar.Name = "CommandBar"
- CommandBar.Parent = MainFrame
- CommandBar.BackgroundColor3 = Color3.fromRGB(225, 225, 225)
- CommandBar.Position = UDim2.new(0.57516849, 0, 0.33322227, 0)
- CommandBar.Size = UDim2.new(0.35950017, 0, 0.333288938, 0)
- CommandBar.Font = Enum.Font.SourceSans
- CommandBar.Text = "Commands in here!"
- CommandBar.TextColor3 = Color3.fromRGB(0, 0, 0)
- CommandBar.TextScaled = true
- CommandBar.TextSize = 14.000
- CommandBar.TextWrapped = true
- Corner_5.Name = "Corner"
- Corner_5.Parent = CommandBar
- SwitchFrame.Name = "SwitchFrame"
- SwitchFrame.Parent = PL
- SwitchFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SwitchFrame.Position = UDim2.new(0.958262265, 0, 0.262738854, 0)
- SwitchFrame.Size = UDim2.new(0.0403747819, 0, 0.0761146545, 0)
- SwitchFrame.Font = Enum.Font.SourceSans
- SwitchFrame.Text = ">"
- SwitchFrame.TextColor3 = Color3.fromRGB(0, 0, 0)
- SwitchFrame.TextScaled = true
- SwitchFrame.TextSize = 14.000
- SwitchFrame.TextWrapped = true
- Corner_6.Name = "Corner"
- Corner_6.Parent = SwitchFrame
- -- Scripts:
- local function LRBLGN_fake_script() -- ScrollLabels.AssembleAll
- local script = Instance.new('LocalScript', ScrollLabels)
- local mainframe = script.Parent.Parent.Parent
- local descriptor = mainframe.Description.Descriptor
- local scroll_labels = script.Parent
- local exec = mainframe.Executor
- local cmdbar = script.Parent.Parent.Parent.CommandBar
- local players = game:GetService("Players")
- local plr = players.LocalPlayer
- local mouse = plr:GetMouse()
- local switchframebutton = mainframe.Parent.SwitchFrame
- local framevisible = true
- switchframebutton.MouseEnter:Connect(function()
- if framevisible == false then
- switchframebutton.BackgroundTransparency = 0
- switchframebutton.TextTransparency = 0
- end
- end)
- switchframebutton.MouseLeave:Connect(function()
- if framevisible == false then
- switchframebutton.BackgroundTransparency = 1
- switchframebutton.TextTransparency = 1
- end
- end)
- switchframebutton.MouseButton1Up:Connect(function()
- framevisible = not framevisible
- if framevisible == false then
- mainframe.Position = UDim2.new(1, 0, 0.34, 0)
- switchframebutton.BackgroundTransparency = 1
- switchframebutton.TextTransparency = 1
- switchframebutton.Text = "<"
- else
- mainframe.Position = UDim2.new(0.785, 0, 0.34, 0)
- switchframebutton.Text = ">"
- switchframebutton.BackgroundTransparency = 0
- switchframebutton.TextTransparency = 0
- end
- end)
- local TWEENING_BUSY = false
- local showdesc = function(reverseProcess, isError)
- if TWEENING_BUSY == true and isError == false then
- return
- end
- TWEENING_BUSY = true
- if isError then
- descriptor.TextTransparency = 1
- descriptor.BackgroundTransparency = 1
- descriptor.Visible = false
- task.wait(.3)
- end
- if reverseProcess then
- for i = 1, 30 do
- descriptor.BackgroundTransparency = i/30
- descriptor.TextTransparency = i/30
- task.wait()
- end
- descriptor.Visible = false
- else
- descriptor.Visible = true
- for i = 1, 30 do
- descriptor.BackgroundTransparency = 1 - i/30
- descriptor.TextTransparency = 1 - i/30
- task.wait()
- end
- end
- TWEENING_BUSY = false
- end
- local addcmd = function(name, desc, func, hasArgs, typeOfArg)
- -- creates the label
- local total = 0
- for _, obj in pairs(scroll_labels:GetChildren()) do
- if obj:IsA("TextLabel") then
- total += 1
- end
- end
- local lbl = Instance.new("TextLabel", scroll_labels)
- lbl.Name = "Label_" .. name
- lbl.Text = name
- lbl.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- lbl.BackgroundTransparency = 1.000
- lbl.Size = UDim2.new(1, 0, 0.05, 0)
- lbl.Position = UDim2.new(0, 0, total*0.05, 0)
- lbl.Font = Enum.Font.SourceSans
- lbl.TextColor3 = Color3.fromRGB(0, 0, 0)
- lbl.TextScaled = true
- lbl.TextSize = 14.000
- lbl.TextWrapped = true
- -- handling of description stuff
- local insertdesc = function()
- lbl.MouseLeave:Connect(function()
- descriptor.TextTransparency = 1
- descriptor.BackgroundTransparency = 1
- descriptor.Visible = false
- descriptor.Text = ""
- end)
- descriptor.TextTransparency = 0
- descriptor.BackgroundTransparency = 0
- descriptor.Visible = true
- end
- -- inserts description for the command
- lbl.MouseEnter:Connect(function()
- local stop = false
- local conn = lbl.MouseLeave:Connect(function()
- stop = true
- end)
- task.wait(.2)
- if stop == false then
- conn:Disconnect()
- descriptor.Text = desc
- insertdesc()
- end
- task.wait(1)
- if stop == false then
- cmdbar.Text = name
- if hasArgs then
- if typeOfArg == "string" then
- cmdbar.Text = cmdbar.Text .." ".. plr.Name
- elseif typeOfArg == "number" then
- cmdbar.Text = cmdbar.Text .." ".. tostring(math.random(16,75))
- end
- end
- end
- end)
- -- loads when the executor is clicked on
- exec.MouseButton1Up:Connect(function()
- local text = cmdbar.Text:lower()
- local lname = name:lower()
- if not string.find(text, lname) then return end
- if hasArgs then
- local args = string.sub(text, lname:len()+1, text:len())
- if typeOfArg == "number" then
- args = tonumber(args)
- end
- if string.find(args, " ") then
- if string.split(args, " ")[2] == "" then
- args = string.split(args, " ")[1]
- else
- args = string.split(args, " ")[2]
- end
- end
- func(args)
- else
- func()
- end
- end)
- end
- -- main functions and stuff or wtv
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Items = workspace["Prison_ITEMS"]
- local Giver = Items.giver
- local function checkRoot()
- if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
- if plr.Character:FindFirstChild("Humanoid") and plr.Character:FindFirstChild("Humanoid").Health ~= 0 then
- return true
- end
- end
- return false
- end
- local function teleportTo(isCFrame, arg)
- if checkRoot() then
- if isCFrame then
- plr.Character:FindFirstChild("HumanoidRootPart").CFrame = arg
- else
- plr.Character:FindFirstChild("HumanoidRootPart").CFrame = arg.CFrame + Vector3.new(0,5,0)
- end
- end
- end
- local T_Remington870 = Giver:FindFirstChild("Remington 870"):FindFirstChild("ITEMPICKUP")
- local T_M9 = Giver:FindFirstChild("M9"):FindFirstChild("ITEMPICKUP")
- local T_AK47 = Giver:FindFirstChild("AK-47"):FindFirstChild("ITEMPICKUP")
- local meleeEvent = ReplicatedStorage.meleeEvent
- local function grabItem(itempickup)
- if checkRoot() then
- local rootpart = plr.Character:FindFirstChild("HumanoidRootPart")
- local cf = rootpart.CFrame
- teleportTo(false, itempickup)
- if plr.Character:FindFirstChild("Humanoid") then
- plr.Character:FindFirstChild("Humanoid"):ChangeState(Enum.HumanoidStateType.Running)
- plr.Character:FindFirstChild("Humanoid"):ChangeState(Enum.HumanoidStateType.Running)
- end
- workspace:WaitForChild("Remote"):WaitForChild("ItemHandler"):InvokeServer(itempickup) -- wont tp u back if not on the main game because it waits for a response
- workspace:WaitForChild("Remote"):WaitForChild("ItemHandler"):InvokeServer(itempickup)
- workspace:WaitForChild("Remote"):WaitForChild("ItemHandler"):InvokeServer(itempickup)
- task.wait(.4)
- teleportTo(true, cf)
- end
- end
- addcmd("GrabRemington", "Grabs the Remington", function()
- grabItem(T_Remington870)
- end)
- addcmd("GrabM9", "Grabs the M9", function()
- grabItem(T_M9)
- end)
- addcmd("GrabAK47", "Grabs the AK47", function()
- grabItem(T_AK47)
- end)
- addcmd("CrashServer", "Uses the Remington870 to crash the running server", function() -- skidded lol
- grabItem(T_Remington870)
- if not checkRoot() then return end
- local rem
- for i, v in pairs(plr.Backpack:GetChildren()) do
- if v.Name == "Remington 870" then
- v.Parent = plr.Character
- rem = v
- break
- end
- end
- if not rem then return end
- plr.Character:FindFirstChildOfClass("Humanoid"):UnequipTools()
- while game:GetService("RunService").Stepped:Wait() do
- for count = 0, 50, 50 do
- coroutine.resume(coroutine.create(function()
- local bulletTable = {}
- table.insert(bulletTable, {
- Hit = nil,
- Distance = 100,
- Cframe = CFrame.new(0,1,1),
- RayObject = Ray.new(Vector3.new(0.1,0.2), Vector3.new(0.3,0.4))
- })
- ReplicatedStorage.ShootEvent:FireServer(bulletTable, rem)
- task.wait()
- end))
- end
- end
- end)
- addcmd("KillAura", "Kills those that are around you", function()
- for i = 1, 250 do
- for i, e in pairs(game.Players:GetPlayers()) do
- if e ~= plr then
- meleeEvent:FireServer(e)
- end
- end
- end
- end)
- addcmd("KillAll", "Uses Kill Aura's remote method to teleport to everyone and kill them all", function()
- if not checkRoot() then return end
- local cf = plr.Character:FindFirstChild("HumanoidRootPart").CFrame
- local getplrs = game.Players:GetPlayers()
- for i = 1, #getplrs do
- local otherplr = getplrs[i]
- if otherplr == plr then continue end
- if otherplr and otherplr.Character and otherplr.Character:FindFirstChild("Humanoid") then
- local otherchar = otherplr.Character
- if otherchar:FindFirstChild("HumanoidRootPart") then
- local other_rp = otherchar:FindFirstChild("HumanoidRootPart")
- local other_hum = otherchar:FindFirstChild("Humanoid")
- repeat teleportTo(false, other_rp) meleeEvent:FireServer(otherplr) task.wait() until other_hum.Health < 1 or not other_rp or otherchar:FindFirstChild("ForceField")
- else
- continue
- end
- else
- continue
- end
- end
- teleportTo(true, cf)
- end)
- addcmd("Kill", "Kill [player] - Can be shortened, but must be the original username and not display name", function(name)
- if not checkRoot() then return end
- local cf = plr.Character:FindFirstChild("HumanoidRootPart").CFrame
- name = name:lower()
- local len = name:len()
- local affectedplayer = nil
- local plrs = players:GetPlayers()
- for i, v in pairs(plrs) do
- if v.Name:lower() == name then
- affectedplayer = v
- end
- end
- if affectedplayer == nil then
- for i, v in pairs(plrs) do
- if string.find(string.sub(v.Name:lower(), 1, len), name) then
- affectedplayer = v
- end
- end
- end
- if affectedplayer == nil or affectedplayer == plr then return end
- if affectedplayer and affectedplayer.Character and affectedplayer.Character:FindFirstChild("Humanoid") then
- local otherchar = affectedplayer.Character
- if otherchar:FindFirstChild("HumanoidRootPart") then
- local other_rp = otherchar:FindFirstChild("HumanoidRootPart")
- local other_hum = otherchar:FindFirstChild("Humanoid")
- repeat teleportTo(false, other_rp) meleeEvent:FireServer(affectedplayer) task.wait() until other_hum.Health < 1 or not other_rp
- end
- end
- teleportTo(true, cf)
- end, true, "string")
- addcmd("GetKeyCard", "Grabs a random key card from the ground; Does not do anything if none can be found", function()
- local KC = Items.single:FindFirstChild("Key card")
- if not checkRoot() or not KC then return end
- local cf = plr.Character:FindFirstChild("HumanoidRootPart").CFrame
- teleportTo(false, KC:FindFirstChild("ITEMPICKUP"))
- for i = 1, 3 do workspace:WaitForChild("Remote"):WaitForChild("ItemHandler"):InvokeServer() end
- task.wait(.2)
- teleportTo(true, cf)
- end)
- addcmd("Arrest", "Arrest [player] - Can be shortened, but must be the original username and not display name", function(name)
- if not checkRoot() then return end
- local cf = plr.Character:FindFirstChild("HumanoidRootPart").CFrame
- name = name:lower()
- local len = name:len()
- local affectedplayer = nil
- local plrs = players:GetPlayers()
- for i, v in pairs(plrs) do
- if v.Name:lower() == name then
- affectedplayer = v
- end
- end
- if affectedplayer == nil then
- for i, v in pairs(plrs) do
- if string.find(string.sub(v.Name:lower(), 1, len), name) then
- affectedplayer = v
- end
- end
- end
- if affectedplayer == nil or affectedplayer == plr then return end
- if affectedplayer and affectedplayer.Character and affectedplayer.Character:FindFirstChild("Head") then
- local otherchar = affectedplayer.Character
- teleportTo(false, otherchar.Head)
- for i = 1, 3 do
- workspace:WaitForChild("Remote"):WaitForChild("arrest"):InvokeServer(otherchar.Head)
- workspace:WaitForChild("Remote"):WaitForChild("ItemHandler"):InvokeServer(otherchar.Head)
- end
- task.wait(.2)
- teleportTo(true, cf)
- end
- end, true, "string")
- addcmd("RealPlayerNames", "Gives players a Billboard gui providing the true name [Switchable]", function()
- local function givegui(v, head)
- local gui = Instance.new("BillboardGui", head)
- gui.Size = UDim2.new(7,0,2,0)
- gui.StudsOffset = Vector3.new(0,2,0)
- gui.AlwaysOnTop = true
- local text = Instance.new("TextLabel", gui)
- text.BackgroundTransparency = 1
- text.Text = v.Name
- text.Size = UDim2.new(1,0,1,0)
- text.TextScaled = true
- end
- for i, v in pairs(game:GetService("Players"):GetPlayers()) do
- task.spawn(function()
- local char = v.Character or v.CharacterAdded:Wait()
- repeat task.wait() until char:FindFirstChild("Head")
- givegui(v, char:FindFirstChild("Head"))
- v.CharacterAdded:Connect(function(newchar)
- char = newchar
- repeat task.wait(.1) until char:FindFirstChild("Head")
- givegui(v, char:FindFirstChild("Head"))
- end)
- end)
- end
- end)
- addcmd("ESP", "Puts a highlight in every player's character", function()
- local function givehl(v, char)
- local hl = Instance.new("Highlight", char)
- hl.FillColor = Color3.fromRGB(255,255,255)
- hl.OutlineTransparency = 1
- end
- for i, v in pairs(game:GetService("Players"):GetPlayers()) do
- task.spawn(function()
- local char = v.Character or v.CharacterAdded:Wait()
- givehl(v, char)
- v.CharacterAdded:Connect(function(newchar)
- char = newchar
- repeat task.wait(.1) until char:FindFirstChild("Humanoid")
- givehl(v, char)
- end)
- end)
- end
- end)
- local Lighting = game.Lighting
- local switchToDay = false
- local originalTime = 0
- task.spawn(function() -- lighting
- Lighting:GetPropertyChangedSignal("ClockTime"):Connect(function()
- if switchToDay then
- Lighting.ClockTime = 14.5
- end
- end)
- Lighting.ClockTime = Lighting.ClockTime + 0.01
- Lighting.ClockTime = Lighting.ClockTime - 0.01
- end)
- addcmd("AlwaysDay", "Screw night time! [Switchable]", function()
- switchToDay = not switchToDay
- if switchToDay == true then
- originalTime = Lighting.ClockTime
- Lighting.ClockTime = 14.5
- else
- Lighting.ClockTime = originalTime
- end
- end)
- -- walkspeed and jumppower and noclip stuff
- local noclip = false
- local walkspeed = 16
- local jumppower = 50
- local overridehumanoidproperties = false
- task.spawn(function()
- local char = plr.Character or plr.CharacterAdded:Wait()
- repeat task.wait() until char:FindFirstChild("Humanoid")
- local hum = char:FindFirstChild("Humanoid")
- hum.UseJumpPower = true
- plr.CharacterRemoving:Connect(function()
- char = nil; hum = nil
- end)
- plr.CharacterAdded:Connect(function(c)
- task.wait()
- char = c
- repeat task.wait() until char:FindFirstChild("Humanoid")
- hum = char:FindFirstChild("Humanoid")
- hum.UseJumpPower = true
- end)
- game:GetService("RunService").Stepped:Connect(function()
- if checkRoot() and char then
- plr.Character:FindFirstChild("Torso").CanCollide = not noclip
- plr.Character:FindFirstChild("Head").CanCollide = not noclip
- end
- end)
- while task.wait() do
- if char and hum and hum.WalkSpeed and hum.WalkSpeed ~= 0 and not overridehumanoidproperties then
- hum.WalkSpeed = walkspeed
- end
- if char and hum and hum.JumpPower and not overridehumanoidproperties then
- hum.JumpPower = jumppower
- end
- end
- end)
- addcmd("SwitchNoclip", "Switches the ability to go through walls and roofs", function()
- noclip = not noclip
- end)
- addcmd("SetWalkSpeed", "SetWalkSpeed [walkspeed]", function(new)
- walkspeed = new
- end, true, "number")
- addcmd("SetJumpPower", "SetJumpPower [jumpPower]", function(new)
- jumppower = new
- end, true, "number")
- addcmd("OverrideWSJP", "Overrides WalkSpeed and JumpPower so it is eventually set by default [Switchable obviously lol]", function()
- overridehumanoidproperties = not overridehumanoidproperties
- end)
- addcmd("Rejoin", "Self-explanatory", function()
- game:GetService("TeleportService"):Teleport(game.PlaceId)
- end)
- end
- coroutine.wrap(LRBLGN_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement