Advertisement
AquazOnYoutube

Doors Script OP, Keychams and more (January 2023)

Feb 25th, 2023 (edited)
1,871
5
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.40 KB | None | 5 0
  1. --Please like and subscribe, you don't have to but all it takes is a second and it helps me a lot
  2. --Enjoy the Script
  3.  
  4.  
  5. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  6. local Window = OrionLib:MakeWindow({IntroText = "Doors GUI v1.2",Name = "Doors", HidePremium = false, SaveConfig = true, ConfigFolder = "DoorsSex"})
  7. if game.PlaceId == 6516141723 then
  8.     OrionLib:MakeNotification({
  9.         Name = "Error",
  10.         Content = "Please execute when in game, not in lobby.",
  11.         Time = 2
  12.     })
  13. end
  14. local VisualsTab = Window:MakeTab({
  15.     Name = "Visuals",
  16.     Icon = "rbxassetid://4483345998",
  17.     PremiumOnly = false
  18. })
  19. local CF = CFrame.new
  20. local LatestRoom = game:GetService("ReplicatedStorage").GameData.LatestRoom
  21. local ChaseStart = game:GetService("ReplicatedStorage").GameData.ChaseStart
  22.  
  23. local KeyChams = {}
  24. VisualsTab:AddToggle({
  25.     Name = "Key Chams",
  26.     Default = false,
  27.     Flag = "KeyToggle",
  28.     Save = true,
  29.     Callback = function(Value)
  30.         for i,v in pairs(KeyChams) do
  31.             v.Enabled = Value
  32.         end
  33.     end    
  34. })
  35.  
  36. local function ApplyKeyChams(inst)
  37.     wait()
  38.     local Cham = Instance.new("Highlight")
  39.     Cham.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  40.     Cham.FillColor = Color3.new(0.980392, 0.670588, 0)
  41.     Cham.FillTransparency = 0.5
  42.     Cham.OutlineColor = Color3.new(0.792156, 0.792156, 0.792156)
  43.     Cham.Parent = game:GetService("CoreGui")
  44.     Cham.Adornee = inst
  45.     Cham.Enabled = OrionLib.Flags["KeyToggle"].Value
  46.     Cham.RobloxLocked = true
  47.     return Cham
  48. end
  49.  
  50. local KeyCoroutine = coroutine.create(function()
  51.     workspace.CurrentRooms.DescendantAdded:Connect(function(inst)
  52.         if inst.Name == "KeyObtain" then
  53.             table.insert(KeyChams,ApplyKeyChams(inst))
  54.         end
  55.     end)
  56. end)
  57. for i,v in ipairs(workspace:GetDescendants()) do
  58.     if v.Name == "KeyObtain" then
  59.         table.insert(KeyChams,ApplyKeyChams(v))
  60.     end
  61. end
  62. coroutine.resume(KeyCoroutine)
  63.  
  64. local BookChams = {}
  65. VisualsTab:AddToggle({
  66.     Name = "Book Chams",
  67.     Default = false,
  68.     Flag = "BookToggle",
  69.     Save = true,
  70.     Callback = function(Value)
  71.         for i,v in pairs(BookChams) do
  72.             v.Enabled = Value
  73.         end
  74.     end    
  75. })
  76.  
  77. local FigureChams = {}
  78. VisualsTab:AddToggle({
  79.     Name = "Figure Chams",
  80.     Default = false,
  81.     Flag = "FigureToggle",
  82.     Save = true,
  83.     Callback = function(Value)
  84.         for i,v in pairs(FigureChams) do
  85.             v.Enabled = Value
  86.         end
  87.     end
  88. })
  89.  
  90. local function ApplyBookChams(inst)
  91.     if inst:IsDescendantOf(game:GetService("Workspace").CurrentRooms:FindFirstChild("50")) and game:GetService("ReplicatedStorage").GameData.LatestRoom.Value == 50 then
  92.         wait()
  93.         local Cham = Instance.new("Highlight")
  94.         Cham.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  95.         Cham.FillColor = Color3.new(0, 1, 0.749019)
  96.         Cham.FillTransparency = 0.5
  97.         Cham.OutlineColor = Color3.new(0.792156, 0.792156, 0.792156)
  98.         Cham.Parent = game:GetService("CoreGui")
  99.         Cham.Enabled = OrionLib.Flags["BookToggle"].Value
  100.         Cham.Adornee = inst
  101.         Cham.RobloxLocked = true
  102.         return Cham
  103.     end
  104. end
  105.  
  106. local function ApplyEntityChams(inst)
  107.     wait()
  108.     local Cham = Instance.new("Highlight")
  109.     Cham.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  110.     Cham.FillColor = Color3.new(1, 0, 0)
  111.     Cham.FillTransparency = 0.5
  112.     Cham.OutlineColor = Color3.new(0.792156, 0.792156, 0.792156)
  113.     Cham.Parent = game:GetService("CoreGui")
  114.     Cham.Enabled = OrionLib.Flags["FigureToggle"].Value
  115.     Cham.Adornee = inst
  116.     Cham.RobloxLocked = true
  117.     return Cham
  118. end
  119.  
  120. local BookCoroutine = coroutine.create(function()
  121.     task.wait(1)
  122.     for i,v in pairs(game:GetService("Workspace").CurrentRooms["50"].Assets:GetDescendants()) do
  123.         if v.Name == "LiveHintBook" then
  124.             table.insert(BookChams,ApplyBookChams(v))
  125.         end
  126.     end
  127. end)
  128. local EntityCoroutine = coroutine.create(function()
  129.     local Entity = game:GetService("Workspace").CurrentRooms["50"].FigureSetup:WaitForChild("FigureRagdoll",5)
  130.     Entity:WaitForChild("Torso",2.5)
  131.     table.insert(FigureChams,ApplyEntityChams(Entity))
  132. end)
  133.  
  134.  
  135. local GameTab = Window:MakeTab({
  136.     Name = "Game",
  137.     Icon = "rbxassetid://4483345998",
  138.     PremiumOnly = false
  139. })
  140. local CharTab = Window:MakeTab({
  141.     Name = "Character",
  142.     Icon = "rbxassetid://4483345998",
  143.     PremiumOnly = false
  144. })
  145.  
  146. local TargetWalkspeed
  147. CharTab:AddSlider({
  148.     Name = "Speed",
  149.     Min = 0,
  150.     Max = 50,
  151.     Default = 5,
  152.     Color = Color3.fromRGB(255,255,255),
  153.     Increment = 1,
  154.     Callback = function(Value)
  155.         TargetWalkspeed = Value
  156.     end    
  157. })
  158.  
  159. local pcl = Instance.new("SpotLight")
  160. pcl.Brightness = 1
  161. pcl.Face = Enum.NormalId.Front
  162. pcl.Range = 90
  163. pcl.Parent = game.Players.LocalPlayer.Character.Head
  164. pcl.Enabled = false
  165.  
  166.  
  167. CharTab:AddToggle({
  168.     Name = "Headlight",
  169.     Default = false,
  170.     Callback = function(Value)
  171.         pcl.Enabled = Value
  172.     end
  173. })
  174.  
  175. GameTab:AddToggle({
  176.     Name = "No seek arms/obstructions",
  177.     Default = false,
  178.     Flag = "NoSeek",
  179.     Save = true
  180. })
  181.  
  182. GameTab:AddToggle({
  183.     Name = "Instant Interact",
  184.     Default = false,
  185.     Flag = "InstantToggle",
  186.     Save = true
  187. })
  188. GameTab:AddButton({
  189.     Name = "Skip level",
  190.     Callback = function()
  191.         pcall(function()
  192.             local HasKey = false
  193.             local CurrentDoor = workspace.CurrentRooms[tostring(game:GetService("ReplicatedStorage").GameData.LatestRoom.Value)]:WaitForChild("Door")
  194.             for i,v in ipairs(CurrentDoor.Parent:GetDescendants()) do
  195.                 if v.Name == "KeyObtain" then
  196.                     HasKey = v
  197.                 end
  198.             end
  199.             if HasKey then
  200.                 game.Players.LocalPlayer.Character:PivotTo(CF(HasKey.Hitbox.Position))
  201.                 wait(0.3)
  202.                 fireproximityprompt(HasKey.ModulePrompt,0)
  203.                 game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
  204.                 wait(0.3)
  205.                 fireproximityprompt(CurrentDoor.Lock.UnlockPrompt,0)
  206.             end
  207.             if LatestRoom == 50 then
  208.                 CurrentDoor = workspace.CurrentRooms[tostring(LatestRoom+1)]:WaitForChild("Door")
  209.             end
  210.             game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
  211.             wait(0.3)
  212.             CurrentDoor.ClientOpen:FireServer()
  213.         end)
  214.     end    
  215. })
  216.  
  217. GameTab:AddToggle({
  218.     Name = "Auto skip level",
  219.     Default = false,
  220.     Save = false,
  221.     Flag = "AutoSkip"
  222. })
  223.  
  224. local AutoSkipCoro = coroutine.create(function()
  225.         while true do
  226.             task.wait()
  227.             pcall(function()
  228.             if OrionLib.Flags["AutoSkip"].Value == true and game:GetService("ReplicatedStorage").GameData.LatestRoom.Value < 100 then
  229.                 local HasKey = false
  230.                 local LatestRoom = game:GetService("ReplicatedStorage").GameData.LatestRoom.Value
  231.                 local CurrentDoor = workspace.CurrentRooms[tostring(LatestRoom)]:WaitForChild("Door")
  232.                 for i,v in ipairs(CurrentDoor.Parent:GetDescendants()) do
  233.                     if v.Name == "KeyObtain" then
  234.                         HasKey = v
  235.                     end
  236.                 end
  237.                 if HasKey then
  238.                     game.Players.LocalPlayer.Character:PivotTo(CF(HasKey.Hitbox.Position))
  239.                     task.wait(0.3)
  240.                     fireproximityprompt(HasKey.ModulePrompt,0)
  241.                     game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
  242.                     task.wait(0.3)
  243.                     fireproximityprompt(CurrentDoor.Lock.UnlockPrompt,0)
  244.                 end
  245.                 if LatestRoom == 50 then
  246.                     CurrentDoor = workspace.CurrentRooms[tostring(LatestRoom+1)]:WaitForChild("Door")
  247.                 end
  248.                 game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
  249.                 task.wait(0.3)
  250.                 CurrentDoor.ClientOpen:FireServer()
  251.             end
  252.         end)
  253.         end
  254. end)
  255. coroutine.resume(AutoSkipCoro)
  256.  
  257. GameTab:AddButton({
  258.     Name = "No jumpscares",
  259.     Callback = function()
  260.         pcall(function()
  261.             game:GetService("ReplicatedStorage").Bricks.Jumpscare:Destroy()
  262.         end)
  263.     end    
  264. })
  265. GameTab:AddToggle({
  266.     Name = "Avoid Rush/Ambush",
  267.     Default = false,
  268.     Flag = "AvoidRushToggle",
  269.     Save = true
  270. })
  271. GameTab:AddToggle({
  272.     Name = "No Screech",
  273.     Default = false,
  274.     Flag = "ScreechToggle",
  275.     Save = true
  276. })
  277.  
  278. GameTab:AddToggle({
  279.     Name = "Always win heartbeat",
  280.     Default = false,
  281.     Flag = "HeartbeatWin",
  282.     Save = true
  283. })
  284.  
  285. GameTab:AddToggle({
  286.     Name = "Predict chases",
  287.     Default = false,
  288.     Flag = "PredictToggle" ,
  289.     Save = true
  290. })
  291. GameTab:AddToggle({
  292.     Name = "Notify when mob spawns",
  293.     Default = false,
  294.     Flag = "MobToggle" ,
  295.     Save = true
  296. })
  297. GameTab:AddButton({
  298.     Name = "Complete breaker box minigame",
  299.     Callback = function()
  300.         game:GetService("ReplicatedStorage").Bricks.EBF:FireServer()
  301.     end    
  302. })
  303. GameTab:AddButton({
  304.     Name = "Skip level 50",
  305.     Callback = function()
  306.         local CurrentDoor = workspace.CurrentRooms[tostring(LatestRoom+1)]:WaitForChild("Door")
  307.         game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
  308.     end    
  309. })
  310. GameTab:AddParagraph("Warning","You may need to open/close the panel a few times for this to work, fixing soon.")
  311.  
  312. --// ok actual code starts here
  313.  
  314. game:GetService("RunService").RenderStepped:Connect(function()
  315.     pcall(function()
  316.         if game.Players.LocalPlayer.Character.Humanoid.MoveDirection.Magnitude > 0 then
  317.             game.Players.LocalPlayer.Character:TranslateBy(game.Players.LocalPlayer.Character.Humanoid.MoveDirection * TargetWalkspeed/50)
  318.         end
  319.     end)
  320. end)
  321.  
  322. game:GetService("Workspace").CurrentRooms.DescendantAdded:Connect(function(descendant)
  323.     if OrionLib.Flags["NoSeek"].Value == true and descendant.Name == ("Seek_Arm" or "ChandelierObstruction") then
  324.         task.spawn(function()
  325.             wait()
  326.             descendant:Destroy()
  327.         end)
  328.     end
  329. end)
  330.  
  331. game:GetService("ProximityPromptService").PromptButtonHoldBegan:Connect(function(prompt)
  332.     if OrionLib.Flags["InstantToggle"].Value == true then
  333.         fireproximityprompt(prompt)
  334.     end
  335. end)
  336.  
  337. local old
  338. old = hookmetamethod(game,"__namecall",newcclosure(function(self,...)
  339.     local args = {...}
  340.     local method = getnamecallmethod()
  341.    
  342.     if tostring(self) == 'Screech' and method == "FireServer" and OrionLib.Flags["ScreechToggle"].Value == true then
  343.         args[1] = true
  344.         return old(self,unpack(args))
  345.     end
  346.     if tostring(self) == 'ClutchHeartbeat' and method == "FireServer" and OrionLib.Flags["HeartbeatWin"].Value == true then
  347.         args[2] = true
  348.         return old(self,unpack(args))
  349.     end
  350.    
  351.     return old(self,...)
  352. end))
  353.  
  354. workspace.CurrentCamera.ChildAdded:Connect(function(child)
  355.     if child.Name == "Screech" and OrionLib.Flags["ScreechToggle"].Value == true then
  356.         child:Destroy()
  357.     end
  358. end)
  359.  
  360. local NotificationCoroutine = coroutine.create(function()
  361.     LatestRoom.Changed:Connect(function()
  362.         if OrionLib.Flags["PredictToggle"].Value == true then
  363.             local n = ChaseStart.Value - LatestRoom.Value
  364.             if 0 < n and n < 4 then
  365.                 OrionLib:MakeNotification({
  366.                     Name = "Warning!",
  367.                     Content = "Event in " .. tostring(n) .. " rooms.",
  368.                     Time = 5
  369.                 })
  370.             end
  371.         end
  372.         if OrionLib.Flags["BookToggle"].Value == true then
  373.             if LatestRoom.Value == 50 then
  374.                 coroutine.resume(BookCoroutine)
  375.             end
  376.         end
  377.         if OrionLib.Flags["FigureToggle"].Value == true then
  378.             if LatestRoom.Value == 50 then
  379.                 coroutine.resume(EntityCoroutine)
  380.             end
  381.         end
  382.     end)
  383.     workspace.ChildAdded:Connect(function(inst)
  384.         if inst.Name == "RushMoving" and OrionLib.Flags["MobToggle"].Value == true then
  385.             if OrionLib.Flags["AvoidRushToggle"].Value == true then
  386.                 OrionLib:MakeNotification({
  387.                     Name = "Warning!",
  388.                     Content = "Avoiding Rush. Please wait.",
  389.                     Time = 5
  390.                 })
  391.                 local OldPos = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  392.                 local con = game:GetService("RunService").Heartbeat:Connect(function()
  393.                     game.Players.LocalPlayer.Character:MoveTo(OldPos + Vector3.new(0,20,0))
  394.                 end)
  395.                
  396.                 inst.Destroying:Wait()
  397.                 con:Disconnect()
  398.  
  399.                 game.Players.LocalPlayer.Character:MoveTo(OldPos)
  400.             else
  401.                 OrionLib:MakeNotification({
  402.                     Name = "Warning!",
  403.                     Content = "Rush has spawned, hide!",
  404.                     Time = 5
  405.                 })
  406.             end
  407.         elseif inst.Name == "AmbushMoving" and OrionLib.Flags["MobToggle"].Value == true then
  408.             if OrionLib.Flags["AvoidRushToggle"].Value == true then
  409.                 OrionLib:MakeNotification({
  410.                     Name = "Warning!",
  411.                     Content = "Avoiding Ambush. Please wait.",
  412.                     Time = 5
  413.                 })
  414.                 local OldPos = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  415.                 local con = game:GetService("RunService").Heartbeat:Connect(function()
  416.                     game.Players.LocalPlayer.Character:MoveTo(OldPos + Vector3.new(0,20,0))
  417.                 end)
  418.                
  419.                 inst.Destroying:Wait()
  420.                 con:Disconnect()
  421.                
  422.                 game.Players.LocalPlayer.Character:MoveTo(OldPos)
  423.             else
  424.                 OrionLib:MakeNotification({
  425.                     Name = "Warning!",
  426.                     Content = "Ambush has spawned, hide!",
  427.                     Time = 5
  428.                 })
  429.             end
  430.         end
  431.     end)
  432. end)
  433.  
  434. --// ok actual code ends here
  435.  
  436. local CreditsTab = Window:MakeTab({
  437.     Name = "Credits",
  438.     Icon = "rbxassetid://4483345998",
  439.     PremiumOnly = false
  440. })
  441.  
  442. CreditsTab:AddParagraph("Credits to","OminousVibes - (Got most of the ideas from their thread, check it out! - https://v3rmillion.net/showthread.php?tid=1184088)")
  443.  
  444. coroutine.resume(NotificationCoroutine)
  445.  
  446. OrionLib:Init()
  447.  
  448. task.wait(2)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement