Advertisement
SkidScripts

Clean Prison Life Script

Jun 1st, 2023
1,089
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 23.61 KB | None | 0 0
  1. Credits to creator --> https://pastebin.com/u/the-j
  2.  
  3. -- Instances:
  4.  
  5. local PL = Instance.new("ScreenGui")
  6. local MainFrame = Instance.new("Frame")
  7. local Corner = Instance.new("UICorner")
  8. local ScrollingFrameCommands = Instance.new("ScrollingFrame")
  9. local ScrollLabels = Instance.new("Folder")
  10. local Title = Instance.new("TextLabel")
  11. local Description = Instance.new("Folder")
  12. local Descriptor = Instance.new("TextLabel")
  13. local Corner_2 = Instance.new("UICorner")
  14. local MainTitle = Instance.new("TextLabel")
  15. local Corner_3 = Instance.new("UICorner")
  16. local Executor = Instance.new("TextButton")
  17. local Corner_4 = Instance.new("UICorner")
  18. local CommandBar = Instance.new("TextBox")
  19. local Corner_5 = Instance.new("UICorner")
  20. local SwitchFrame = Instance.new("TextButton")
  21. local Corner_6 = Instance.new("UICorner")
  22.  
  23. --Properties:
  24.  
  25. PL.Name = "PL"
  26. PL.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  27. PL.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  28.  
  29. MainFrame.Name = "MainFrame"
  30. MainFrame.Parent = PL
  31. MainFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  32. MainFrame.Position = UDim2.new(0.784710407, 0, 0.339702725, 0)
  33. MainFrame.Size = UDim2.new(0.21473597, 0, 0.318577498, 0)
  34.  
  35. Corner.Name = "Corner"
  36. Corner.Parent = MainFrame
  37.  
  38. ScrollingFrameCommands.Name = "ScrollingFrameCommands"
  39. ScrollingFrameCommands.Parent = MainFrame
  40. ScrollingFrameCommands.Active = true
  41. ScrollingFrameCommands.BackgroundColor3 = Color3.fromRGB(225, 225, 225)
  42. ScrollingFrameCommands.BorderSizePixel = 0
  43. ScrollingFrameCommands.Position = UDim2.new(0, 0, 0.158280194, 0)
  44. ScrollingFrameCommands.Size = UDim2.new(0.5, 0, 0.674941719, 0)
  45.  
  46. ScrollLabels.Name = "ScrollLabels"
  47. ScrollLabels.Parent = ScrollingFrameCommands
  48.  
  49. Title.Name = "Title"
  50. Title.Parent = ScrollLabels
  51. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  52. Title.BackgroundTransparency = 1.000
  53. Title.Size = UDim2.new(1, 0, 0.0500000007, 0)
  54. Title.Font = Enum.Font.SourceSans
  55. Title.Text = "Commands:"
  56. Title.TextColor3 = Color3.fromRGB(0, 0, 0)
  57. Title.TextScaled = true
  58. Title.TextSize = 14.000
  59. Title.TextWrapped = true
  60.  
  61. Description.Name = "Description"
  62. Description.Parent = MainFrame
  63.  
  64. Descriptor.Name = "Descriptor"
  65. Descriptor.Parent = Description
  66. Descriptor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  67. Descriptor.Position = UDim2.new(0, 0, 0.99966687, 0)
  68. Descriptor.Size = UDim2.new(1, 0, 0.400000006, 0)
  69. Descriptor.Visible = false
  70. Descriptor.Font = Enum.Font.SourceSans
  71. Descriptor.Text = ""
  72. Descriptor.TextColor3 = Color3.fromRGB(0, 0, 0)
  73. Descriptor.TextScaled = true
  74. Descriptor.TextSize = 14.000
  75. Descriptor.TextWrapped = true
  76.  
  77. Corner_2.Name = "Corner"
  78. Corner_2.Parent = Descriptor
  79.  
  80. MainTitle.Name = "MainTitle"
  81. MainTitle.Parent = MainFrame
  82. MainTitle.BackgroundColor3 = Color3.fromRGB(225, 225, 225)
  83. MainTitle.Size = UDim2.new(1, 0, 0.125, 0)
  84. MainTitle.Font = Enum.Font.SourceSans
  85. MainTitle.Text = "Prison Life"
  86. MainTitle.TextColor3 = Color3.fromRGB(0, 0, 0)
  87. MainTitle.TextScaled = true
  88. MainTitle.TextSize = 14.000
  89. MainTitle.TextWrapped = true
  90.  
  91. Corner_3.Name = "Corner"
  92. Corner_3.Parent = MainTitle
  93.  
  94. Executor.Name = "Executor"
  95. Executor.Parent = MainFrame
  96. Executor.BackgroundColor3 = Color3.fromRGB(225, 225, 225)
  97. Executor.Position = UDim2.new(-3.02633623e-07, 0, 0.874708414, 0)
  98. Executor.Size = UDim2.new(1, 0, 0.125, 0)
  99. Executor.Font = Enum.Font.SourceSans
  100. Executor.Text = "Execute Command"
  101. Executor.TextColor3 = Color3.fromRGB(0, 0, 0)
  102. Executor.TextScaled = true
  103. Executor.TextSize = 14.000
  104. Executor.TextWrapped = true
  105.  
  106. Corner_4.Name = "Corner"
  107. Corner_4.Parent = Executor
  108.  
  109. CommandBar.Name = "CommandBar"
  110. CommandBar.Parent = MainFrame
  111. CommandBar.BackgroundColor3 = Color3.fromRGB(225, 225, 225)
  112. CommandBar.Position = UDim2.new(0.57516849, 0, 0.33322227, 0)
  113. CommandBar.Size = UDim2.new(0.35950017, 0, 0.333288938, 0)
  114. CommandBar.Font = Enum.Font.SourceSans
  115. CommandBar.Text = "Commands in here!"
  116. CommandBar.TextColor3 = Color3.fromRGB(0, 0, 0)
  117. CommandBar.TextScaled = true
  118. CommandBar.TextSize = 14.000
  119. CommandBar.TextWrapped = true
  120.  
  121. Corner_5.Name = "Corner"
  122. Corner_5.Parent = CommandBar
  123.  
  124. SwitchFrame.Name = "SwitchFrame"
  125. SwitchFrame.Parent = PL
  126. SwitchFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  127. SwitchFrame.Position = UDim2.new(0.958262265, 0, 0.262738854, 0)
  128. SwitchFrame.Size = UDim2.new(0.0403747819, 0, 0.0761146545, 0)
  129. SwitchFrame.Font = Enum.Font.SourceSans
  130. SwitchFrame.Text = ">"
  131. SwitchFrame.TextColor3 = Color3.fromRGB(0, 0, 0)
  132. SwitchFrame.TextScaled = true
  133. SwitchFrame.TextSize = 14.000
  134. SwitchFrame.TextWrapped = true
  135.  
  136. Corner_6.Name = "Corner"
  137. Corner_6.Parent = SwitchFrame
  138.  
  139. -- Scripts:
  140.  
  141. local function LRBLGN_fake_script() -- ScrollLabels.AssembleAll
  142.     local script = Instance.new('LocalScript', ScrollLabels)
  143.  
  144.     local mainframe = script.Parent.Parent.Parent
  145.     local descriptor = mainframe.Description.Descriptor
  146.     local scroll_labels = script.Parent
  147.     local exec = mainframe.Executor
  148.     local cmdbar = script.Parent.Parent.Parent.CommandBar
  149.     local players = game:GetService("Players")
  150.     local plr = players.LocalPlayer
  151.     local mouse = plr:GetMouse()
  152.    
  153.     local switchframebutton = mainframe.Parent.SwitchFrame
  154.     local framevisible = true
  155.    
  156.     switchframebutton.MouseEnter:Connect(function()
  157.         if framevisible == false then
  158.             switchframebutton.BackgroundTransparency = 0
  159.             switchframebutton.TextTransparency = 0
  160.         end
  161.     end)
  162.     switchframebutton.MouseLeave:Connect(function()
  163.         if framevisible == false then
  164.             switchframebutton.BackgroundTransparency = 1
  165.             switchframebutton.TextTransparency = 1
  166.         end
  167.     end)
  168.    
  169.     switchframebutton.MouseButton1Up:Connect(function()
  170.         framevisible = not framevisible
  171.         if framevisible == false then
  172.             mainframe.Position = UDim2.new(1, 0, 0.34, 0)
  173.             switchframebutton.BackgroundTransparency = 1
  174.             switchframebutton.TextTransparency = 1
  175.             switchframebutton.Text = "<"
  176.         else
  177.             mainframe.Position = UDim2.new(0.785, 0, 0.34, 0)
  178.             switchframebutton.Text = ">"
  179.             switchframebutton.BackgroundTransparency = 0
  180.             switchframebutton.TextTransparency = 0
  181.         end
  182.     end)
  183.    
  184.     local TWEENING_BUSY = false
  185.    
  186.     local showdesc = function(reverseProcess, isError)
  187.         if TWEENING_BUSY == true and isError == false then
  188.             return
  189.         end
  190.         TWEENING_BUSY = true
  191.         if isError then
  192.             descriptor.TextTransparency = 1
  193.             descriptor.BackgroundTransparency = 1
  194.             descriptor.Visible = false
  195.             task.wait(.3)
  196.         end
  197.         if reverseProcess then
  198.             for i = 1, 30 do
  199.                 descriptor.BackgroundTransparency = i/30
  200.                 descriptor.TextTransparency = i/30
  201.                 task.wait()
  202.             end
  203.             descriptor.Visible = false
  204.         else
  205.             descriptor.Visible = true
  206.             for i = 1, 30 do
  207.                 descriptor.BackgroundTransparency = 1 - i/30
  208.                 descriptor.TextTransparency = 1 - i/30
  209.                 task.wait()
  210.             end
  211.         end
  212.         TWEENING_BUSY = false
  213.     end
  214.    
  215.     local addcmd = function(name, desc, func, hasArgs, typeOfArg)
  216.         -- creates the label
  217.        
  218.         local total = 0
  219.         for _, obj in pairs(scroll_labels:GetChildren()) do
  220.             if obj:IsA("TextLabel") then
  221.                 total += 1
  222.             end
  223.         end
  224.         local lbl = Instance.new("TextLabel", scroll_labels)
  225.         lbl.Name = "Label_" .. name
  226.         lbl.Text = name
  227.         lbl.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  228.         lbl.BackgroundTransparency = 1.000
  229.         lbl.Size = UDim2.new(1, 0, 0.05, 0)
  230.         lbl.Position = UDim2.new(0, 0, total*0.05, 0)
  231.         lbl.Font = Enum.Font.SourceSans
  232.         lbl.TextColor3 = Color3.fromRGB(0, 0, 0)
  233.         lbl.TextScaled = true
  234.         lbl.TextSize = 14.000
  235.         lbl.TextWrapped = true
  236.        
  237.         -- handling of description stuff
  238.        
  239.         local insertdesc = function()
  240.             lbl.MouseLeave:Connect(function()
  241.                 descriptor.TextTransparency = 1
  242.                 descriptor.BackgroundTransparency = 1
  243.                 descriptor.Visible = false
  244.                 descriptor.Text = ""
  245.             end)
  246.             descriptor.TextTransparency = 0
  247.             descriptor.BackgroundTransparency = 0
  248.             descriptor.Visible = true
  249.         end
  250.        
  251.         -- inserts description for the command
  252.        
  253.         lbl.MouseEnter:Connect(function()
  254.             local stop = false
  255.             local conn = lbl.MouseLeave:Connect(function()
  256.                 stop = true
  257.             end)
  258.             task.wait(.2)
  259.             if stop == false then
  260.                 conn:Disconnect()
  261.                 descriptor.Text = desc
  262.                 insertdesc()
  263.             end
  264.             task.wait(1)
  265.             if stop == false then
  266.                 cmdbar.Text = name
  267.                 if hasArgs then
  268.                     if typeOfArg == "string" then
  269.                         cmdbar.Text = cmdbar.Text .." ".. plr.Name
  270.                     elseif typeOfArg == "number" then
  271.                         cmdbar.Text = cmdbar.Text .." ".. tostring(math.random(16,75))
  272.                     end
  273.                 end
  274.             end
  275.         end)
  276.        
  277.         -- loads when the executor is clicked on
  278.        
  279.         exec.MouseButton1Up:Connect(function()
  280.             local text = cmdbar.Text:lower()
  281.             local lname = name:lower()
  282.             if not string.find(text, lname) then return end
  283.             if hasArgs then
  284.                 local args = string.sub(text, lname:len()+1, text:len())
  285.                 if typeOfArg == "number" then
  286.                     args = tonumber(args)              
  287.                 end
  288.                 if string.find(args, " ") then
  289.                     if string.split(args, " ")[2] == "" then
  290.                         args = string.split(args, " ")[1]
  291.                     else
  292.                         args = string.split(args, " ")[2]
  293.                     end
  294.                 end
  295.                 func(args)
  296.             else
  297.                 func()
  298.             end
  299.         end)
  300.     end
  301.    
  302.     -- main functions and stuff or wtv
  303.     local ReplicatedStorage = game:GetService("ReplicatedStorage")
  304.     local Items = workspace["Prison_ITEMS"]
  305.     local Giver = Items.giver
  306.    
  307.     local function checkRoot()
  308.         if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  309.             if plr.Character:FindFirstChild("Humanoid") and plr.Character:FindFirstChild("Humanoid").Health ~= 0 then
  310.                 return true
  311.             end
  312.         end
  313.         return false
  314.     end
  315.    
  316.     local function teleportTo(isCFrame, arg)
  317.         if checkRoot() then
  318.             if isCFrame then
  319.                 plr.Character:FindFirstChild("HumanoidRootPart").CFrame = arg
  320.             else
  321.                 plr.Character:FindFirstChild("HumanoidRootPart").CFrame = arg.CFrame + Vector3.new(0,5,0)
  322.             end
  323.         end
  324.     end
  325.    
  326.     local T_Remington870 = Giver:FindFirstChild("Remington 870"):FindFirstChild("ITEMPICKUP")
  327.     local T_M9 = Giver:FindFirstChild("M9"):FindFirstChild("ITEMPICKUP")
  328.     local T_AK47 = Giver:FindFirstChild("AK-47"):FindFirstChild("ITEMPICKUP")
  329.    
  330.     local meleeEvent = ReplicatedStorage.meleeEvent
  331.    
  332.     local function grabItem(itempickup)
  333.         if checkRoot() then
  334.             local rootpart = plr.Character:FindFirstChild("HumanoidRootPart")
  335.             local cf = rootpart.CFrame
  336.             teleportTo(false, itempickup)
  337.             if plr.Character:FindFirstChild("Humanoid") then
  338.                 plr.Character:FindFirstChild("Humanoid"):ChangeState(Enum.HumanoidStateType.Running)
  339.                 plr.Character:FindFirstChild("Humanoid"):ChangeState(Enum.HumanoidStateType.Running)
  340.             end
  341.             workspace:WaitForChild("Remote"):WaitForChild("ItemHandler"):InvokeServer(itempickup) -- wont tp u back if not on the main game because it waits for a response
  342.             workspace:WaitForChild("Remote"):WaitForChild("ItemHandler"):InvokeServer(itempickup)
  343.             workspace:WaitForChild("Remote"):WaitForChild("ItemHandler"):InvokeServer(itempickup)
  344.             task.wait(.4)
  345.             teleportTo(true, cf)
  346.         end
  347.     end
  348.    
  349.     addcmd("GrabRemington", "Grabs the Remington", function()
  350.         grabItem(T_Remington870)
  351.     end)
  352.     addcmd("GrabM9", "Grabs the M9", function()
  353.         grabItem(T_M9)
  354.     end)
  355.     addcmd("GrabAK47", "Grabs the AK47", function()
  356.         grabItem(T_AK47)
  357.     end)
  358.    
  359.     addcmd("CrashServer", "Uses the Remington870 to crash the running server", function() -- skidded lol
  360.         grabItem(T_Remington870)
  361.         if not checkRoot() then return end
  362.         local rem
  363.         for i, v in pairs(plr.Backpack:GetChildren()) do
  364.             if v.Name == "Remington 870" then
  365.                 v.Parent = plr.Character
  366.                 rem = v
  367.                 break
  368.             end
  369.         end
  370.         if not rem then return end
  371.         plr.Character:FindFirstChildOfClass("Humanoid"):UnequipTools()
  372.    
  373.         while game:GetService("RunService").Stepped:Wait() do
  374.             for count = 0, 50, 50 do
  375.                 coroutine.resume(coroutine.create(function()
  376.                     local bulletTable = {}
  377.                     table.insert(bulletTable, {
  378.                         Hit = nil,
  379.                         Distance = 100,
  380.                         Cframe = CFrame.new(0,1,1),
  381.                         RayObject = Ray.new(Vector3.new(0.1,0.2), Vector3.new(0.3,0.4))
  382.                     })
  383.                     ReplicatedStorage.ShootEvent:FireServer(bulletTable, rem)
  384.                     task.wait()
  385.                 end))
  386.             end
  387.         end
  388.     end)
  389.    
  390.     addcmd("KillAura", "Kills those that are around you", function()
  391.         for i = 1, 250 do
  392.             for i, e in pairs(game.Players:GetPlayers()) do
  393.                 if e ~= plr then
  394.                     meleeEvent:FireServer(e)
  395.                 end
  396.             end
  397.         end
  398.     end)
  399.    
  400.     addcmd("KillAll", "Uses Kill Aura's remote method to teleport to everyone and kill them all", function()
  401.         if not checkRoot() then return end
  402.         local cf = plr.Character:FindFirstChild("HumanoidRootPart").CFrame
  403.    
  404.         local getplrs = game.Players:GetPlayers()
  405.         for i = 1, #getplrs do
  406.             local otherplr = getplrs[i]
  407.             if otherplr == plr then continue end
  408.             if otherplr and otherplr.Character and otherplr.Character:FindFirstChild("Humanoid") then
  409.                 local otherchar = otherplr.Character
  410.                 if otherchar:FindFirstChild("HumanoidRootPart") then
  411.                     local other_rp = otherchar:FindFirstChild("HumanoidRootPart")
  412.                     local other_hum = otherchar:FindFirstChild("Humanoid")
  413.                     repeat teleportTo(false, other_rp) meleeEvent:FireServer(otherplr) task.wait() until other_hum.Health < 1 or not other_rp  or otherchar:FindFirstChild("ForceField")
  414.                 else
  415.                     continue
  416.                 end
  417.             else
  418.                 continue
  419.             end
  420.         end
  421.    
  422.         teleportTo(true, cf)
  423.     end)
  424.    
  425.     addcmd("Kill", "Kill [player] - Can be shortened, but must be the original username and not display name", function(name)
  426.         if not checkRoot() then return end
  427.         local cf = plr.Character:FindFirstChild("HumanoidRootPart").CFrame
  428.        
  429.         name = name:lower()
  430.         local len = name:len()
  431.         local affectedplayer = nil
  432.         local plrs = players:GetPlayers()
  433.        
  434.         for i, v in pairs(plrs) do
  435.             if v.Name:lower() == name then
  436.                 affectedplayer = v
  437.             end
  438.         end
  439.        
  440.         if affectedplayer == nil then
  441.             for i, v in pairs(plrs) do
  442.                 if string.find(string.sub(v.Name:lower(), 1, len), name) then
  443.                     affectedplayer = v
  444.                 end
  445.             end
  446.         end
  447.        
  448.         if affectedplayer == nil or affectedplayer == plr then return end
  449.         if affectedplayer and affectedplayer.Character and affectedplayer.Character:FindFirstChild("Humanoid") then
  450.             local otherchar = affectedplayer.Character
  451.             if otherchar:FindFirstChild("HumanoidRootPart") then
  452.                 local other_rp = otherchar:FindFirstChild("HumanoidRootPart")
  453.                 local other_hum = otherchar:FindFirstChild("Humanoid")
  454.                 repeat teleportTo(false, other_rp) meleeEvent:FireServer(affectedplayer) task.wait() until other_hum.Health < 1 or not other_rp
  455.             end
  456.         end
  457.         teleportTo(true, cf)
  458.     end, true, "string")
  459.    
  460.     addcmd("GetKeyCard", "Grabs a random key card from the ground; Does not do anything if none can be found", function()
  461.         local KC = Items.single:FindFirstChild("Key card")
  462.         if not checkRoot() or not KC then return end
  463.        
  464.         local cf = plr.Character:FindFirstChild("HumanoidRootPart").CFrame
  465.         teleportTo(false, KC:FindFirstChild("ITEMPICKUP"))
  466.        
  467.         for i = 1, 3 do workspace:WaitForChild("Remote"):WaitForChild("ItemHandler"):InvokeServer() end
  468.         task.wait(.2)
  469.         teleportTo(true, cf)
  470.     end)
  471.    
  472.     addcmd("Arrest", "Arrest [player] - Can be shortened, but must be the original username and not display name", function(name)
  473.         if not checkRoot() then return end
  474.         local cf = plr.Character:FindFirstChild("HumanoidRootPart").CFrame
  475.    
  476.         name = name:lower()
  477.         local len = name:len()
  478.         local affectedplayer = nil
  479.         local plrs = players:GetPlayers()
  480.    
  481.         for i, v in pairs(plrs) do
  482.             if v.Name:lower() == name then
  483.                 affectedplayer = v
  484.             end
  485.         end
  486.    
  487.         if affectedplayer == nil then
  488.             for i, v in pairs(plrs) do
  489.                 if string.find(string.sub(v.Name:lower(), 1, len), name) then
  490.                     affectedplayer = v
  491.                 end
  492.             end
  493.         end
  494.    
  495.         if affectedplayer == nil or affectedplayer == plr then return end
  496.         if affectedplayer and affectedplayer.Character and affectedplayer.Character:FindFirstChild("Head") then
  497.             local otherchar = affectedplayer.Character
  498.             teleportTo(false, otherchar.Head)
  499.             for i = 1, 3 do
  500.                 workspace:WaitForChild("Remote"):WaitForChild("arrest"):InvokeServer(otherchar.Head)
  501.                 workspace:WaitForChild("Remote"):WaitForChild("ItemHandler"):InvokeServer(otherchar.Head)
  502.             end
  503.             task.wait(.2)
  504.             teleportTo(true, cf)
  505.         end
  506.     end, true, "string")
  507.    
  508.     addcmd("RealPlayerNames", "Gives players a Billboard gui providing the true name [Switchable]", function()
  509.         local function givegui(v, head)
  510.             local gui = Instance.new("BillboardGui", head)
  511.             gui.Size = UDim2.new(7,0,2,0)
  512.             gui.StudsOffset = Vector3.new(0,2,0)
  513.             gui.AlwaysOnTop = true
  514.             local text = Instance.new("TextLabel", gui)
  515.             text.BackgroundTransparency = 1
  516.             text.Text = v.Name
  517.             text.Size = UDim2.new(1,0,1,0)
  518.             text.TextScaled = true
  519.         end
  520.         for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  521.             task.spawn(function()
  522.                 local char = v.Character or v.CharacterAdded:Wait()
  523.                 repeat task.wait() until char:FindFirstChild("Head")
  524.                 givegui(v, char:FindFirstChild("Head"))
  525.                 v.CharacterAdded:Connect(function(newchar)
  526.                     char = newchar
  527.                     repeat task.wait(.1) until char:FindFirstChild("Head")
  528.                     givegui(v, char:FindFirstChild("Head"))
  529.                 end)
  530.             end)
  531.         end
  532.     end)
  533.    
  534.     addcmd("ESP", "Puts a highlight in every player's character", function()
  535.         local function givehl(v, char)
  536.             local hl = Instance.new("Highlight", char)
  537.             hl.FillColor = Color3.fromRGB(255,255,255)
  538.             hl.OutlineTransparency = 1
  539.         end
  540.         for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  541.             task.spawn(function()
  542.                 local char = v.Character or v.CharacterAdded:Wait()
  543.                 givehl(v, char)
  544.                 v.CharacterAdded:Connect(function(newchar)
  545.                     char = newchar
  546.                     repeat task.wait(.1) until char:FindFirstChild("Humanoid")
  547.                     givehl(v, char)
  548.                 end)
  549.             end)
  550.         end
  551.     end)
  552.    
  553.     local Lighting = game.Lighting
  554.     local switchToDay = false
  555.     local originalTime = 0
  556.    
  557.     task.spawn(function() -- lighting
  558.         Lighting:GetPropertyChangedSignal("ClockTime"):Connect(function()
  559.             if switchToDay then
  560.                 Lighting.ClockTime = 14.5
  561.             end
  562.         end)
  563.         Lighting.ClockTime = Lighting.ClockTime + 0.01
  564.         Lighting.ClockTime = Lighting.ClockTime - 0.01
  565.     end)
  566.    
  567.     addcmd("AlwaysDay", "Screw night time! [Switchable]", function()
  568.         switchToDay = not switchToDay
  569.         if switchToDay == true then
  570.             originalTime = Lighting.ClockTime
  571.             Lighting.ClockTime = 14.5
  572.         else
  573.             Lighting.ClockTime = originalTime
  574.         end
  575.     end)
  576.    
  577.     -- walkspeed and jumppower and noclip stuff
  578.    
  579.     local noclip = false
  580.    
  581.     local walkspeed = 16
  582.     local jumppower = 50
  583.     local overridehumanoidproperties = false
  584.    
  585.     task.spawn(function()
  586.         local char = plr.Character or plr.CharacterAdded:Wait()
  587.         repeat task.wait() until char:FindFirstChild("Humanoid")
  588.         local hum = char:FindFirstChild("Humanoid")
  589.         hum.UseJumpPower = true
  590.    
  591.         plr.CharacterRemoving:Connect(function()
  592.             char = nil; hum = nil
  593.         end)
  594.         plr.CharacterAdded:Connect(function(c)
  595.             task.wait()
  596.             char = c
  597.             repeat task.wait() until char:FindFirstChild("Humanoid")
  598.             hum = char:FindFirstChild("Humanoid")
  599.             hum.UseJumpPower = true
  600.         end)
  601.        
  602.         game:GetService("RunService").Stepped:Connect(function()
  603.             if checkRoot() and char then
  604.                 plr.Character:FindFirstChild("Torso").CanCollide = not noclip
  605.                 plr.Character:FindFirstChild("Head").CanCollide = not noclip
  606.             end
  607.         end)
  608.    
  609.         while task.wait() do
  610.             if char and hum and hum.WalkSpeed and hum.WalkSpeed ~= 0 and not overridehumanoidproperties then
  611.                 hum.WalkSpeed = walkspeed
  612.             end
  613.             if char and hum and hum.JumpPower and not overridehumanoidproperties then
  614.                 hum.JumpPower = jumppower
  615.             end
  616.         end
  617.     end)
  618.    
  619.     addcmd("SwitchNoclip", "Switches the ability to go through walls and roofs", function()
  620.         noclip = not noclip
  621.     end)
  622.    
  623.     addcmd("SetWalkSpeed", "SetWalkSpeed [walkspeed]", function(new)
  624.         walkspeed = new
  625.     end, true, "number")
  626.    
  627.     addcmd("SetJumpPower", "SetJumpPower [jumpPower]", function(new)
  628.         jumppower = new
  629.     end, true, "number")
  630.    
  631.     addcmd("OverrideWSJP", "Overrides WalkSpeed and JumpPower so it is eventually set by default [Switchable obviously lol]", function()
  632.         overridehumanoidproperties = not overridehumanoidproperties
  633.     end)
  634.    
  635.     addcmd("Rejoin", "Self-explanatory", function()
  636.         game:GetService("TeleportService"):Teleport(game.PlaceId)
  637.     end)
  638. end
  639. coroutine.wrap(LRBLGN_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement