YT_PatricioTGN

doors code

Aug 20th, 2022
2,848
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.90 KB | None | 0 0
  1. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  2. local Window = OrionLib:MakeWindow({Name = "Doors", HidePremium = false, SaveConfig = true, ConfigFolder = "DoorsSex"})
  3. local VisualsTab = Window:MakeTab({
  4. Name = "Visuals",
  5. Icon = "rbxassetid://4483345998",
  6. PremiumOnly = false
  7. })
  8. local LatestRoom = game:GetService("ReplicatedStorage").GameData.LatestRoom
  9. local ChaseStart = game:GetService("ReplicatedStorage").GameData.ChaseStart
  10.  
  11. local KeyChams = {}
  12. VisualsTab:AddToggle({
  13. Name = "Key Chams",
  14. Default = false,
  15. Flag = "KeyToggle",
  16. Callback = function(Value)
  17. for i,v in pairs(KeyChams) do
  18. v.Enabled = Value
  19. end
  20. end
  21. })
  22.  
  23. local function ApplyKeyChams(inst)
  24. wait()
  25. local Cham = Instance.new("Highlight")
  26. Cham.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  27. Cham.FillColor = Color3.new(0.980392, 0.670588, 0)
  28. Cham.FillTransparency = 0.5
  29. Cham.OutlineColor = Color3.new(0.792156, 0.792156, 0.792156)
  30. Cham.Parent = inst
  31. Cham.Adornee = inst
  32. Cham.Enabled = OrionLib.Flags["KeyToggle"].Value
  33. Cham.RobloxLocked = true
  34. return Cham
  35. end
  36.  
  37. local KeyCoroutine = coroutine.create(function()
  38. workspace.CurrentRooms.DescendantAdded:Connect(function(inst)
  39. if inst.Name == "KeyObtain" then
  40. table.insert(KeyChams,ApplyKeyChams(inst))
  41. end
  42. end)
  43. end)
  44. for i,v in ipairs(workspace:GetDescendants()) do
  45. if v.Name == "KeyObtain" then
  46. table.insert(KeyChams,ApplyKeyChams(v))
  47. end
  48. end
  49. coroutine.resume(KeyCoroutine)
  50.  
  51. local BookChams = {}
  52. VisualsTab:AddToggle({
  53. Name = "Book Chams",
  54. Default = false,
  55. Flag = "BookToggle",
  56. Callback = function(Value)
  57. for i,v in pairs(BookChams) do
  58. v.Enabled = Value
  59. end
  60. end
  61. })
  62.  
  63. local FigureChams = {}
  64. VisualsTab:AddToggle({
  65. Name = "Figure Chams",
  66. Default = false,
  67. Flag = "FigureToggle",
  68. Callback = function(Value)
  69. for i,v in pairs(FigureChams) do
  70. v.Enabled = Value
  71. end
  72. end
  73. })
  74.  
  75. local function ApplyBookChams(inst)
  76. wait()
  77. local Cham = Instance.new("Highlight")
  78. Cham.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  79. Cham.FillColor = Color3.new(0, 1, 0.749019)
  80. Cham.FillTransparency = 0.5
  81. Cham.OutlineColor = Color3.new(0.792156, 0.792156, 0.792156)
  82. Cham.Parent = inst
  83. Cham.Enabled = OrionLib.Flags["BookToggle"].Value
  84. Cham.Adornee = inst
  85. Cham.RobloxLocked = true
  86. return Cham
  87. end
  88.  
  89. local function ApplyEntityChams(inst)
  90. wait()
  91. local Cham = Instance.new("Highlight")
  92. Cham.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  93. Cham.FillColor = Color3.new(1, 0, 0)
  94. Cham.FillTransparency = 0.5
  95. Cham.OutlineColor = Color3.new(0.792156, 0.792156, 0.792156)
  96. Cham.Parent = inst
  97. Cham.Enabled = OrionLib.Flags["FigureToggle"].Value
  98. Cham.Adornee = inst
  99. Cham.RobloxLocked = true
  100. return Cham
  101. end
  102.  
  103. local BookCoroutine = coroutine.create(function()
  104. for i,v in pairs(game:GetService("Workspace").CurrentRooms["50"].Assets:GetDescendants()) do
  105. if v.Name == "LiveHintBook" then
  106. table.insert(BookChams,ApplyBookChams(v))
  107. end
  108. end
  109. end)
  110. local EntityCoroutine = coroutine.create(function()
  111. local Entity = game:GetService("Workspace").CurrentRooms["50"].FigureSetup:WaitForChild("FigureRagdoll",5)
  112. Entity:WaitForChild("Torso",2.5)
  113. table.insert(FigureChams,ApplyEntityChams(Entity))
  114. end)
  115.  
  116.  
  117. local GameTab = Window:MakeTab({
  118. Name = "Game",
  119. Icon = "rbxassetid://4483345998",
  120. PremiumOnly = false
  121. })
  122.  
  123. local TargetWalkspeed
  124. GameTab:AddSlider({
  125. Name = "Speed",
  126. Min = 15,
  127. Max = 50,
  128. Default = 5,
  129. Color = Color3.fromRGB(255,255,255),
  130. Increment = 1,
  131. Callback = function(Value)
  132. TargetWalkspeed = Value
  133. end
  134. })
  135. game:GetService("RunService").RenderStepped:Connect(function()
  136. pcall(function()
  137. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = TargetWalkspeed
  138. end)
  139. end)
  140. local pcl = Instance.new("SpotLight")
  141. pcl.Brightness = 1
  142. pcl.Face = Enum.NormalId.Front
  143. pcl.Range = 90
  144. pcl.Parent = game.Players.LocalPlayer.Character.Head
  145. pcl.Enabled = false
  146.  
  147.  
  148. GameTab:AddToggle({
  149. Name = "Headlight",
  150. Default = false,
  151. Callback = function(Value)
  152. pcl.Enabled = Value
  153. end
  154. })
  155.  
  156. GameTab:AddToggle({
  157. Name = "No seek arms/obstructions",
  158. Default = false,
  159. Flag = "NoSeek"
  160. })
  161.  
  162. game:GetService("Workspace").CurrentRooms.DescendantAdded:Connect(function(descendant)
  163. if OrionLib.Flags["NoSeek"].Value == true and descendant.Name == ("Seek_Arm" or "ChandelierObstruction") then
  164. task.spawn(function()
  165. wait(0.01)
  166. descendant:Destroy()
  167. end)
  168. end
  169. end)
  170.  
  171. GameTab:AddToggle({
  172. Name = "Instant Interact",
  173. Default = false,
  174. Flag = "InstantToggle"
  175. })
  176.  
  177. game:GetService("ProximityPromptService").PromptButtonHoldBegan:Connect(function(prompt)
  178. if OrionLib.Flags["InstantToggle"].Value == true then
  179. fireproximityprompt(prompt)
  180. end
  181. end)
  182. GameTab:AddToggle({
  183. Name = "Predict chases",
  184. Default = false,
  185. Flag = "PredictToggle"
  186. })
  187. GameTab:AddToggle({
  188. Name = "Notify when mob spawns",
  189. Default = false,
  190. Flag = "MobToggle"
  191. })
  192. GameTab:AddButton({
  193. Name = "Complete breaker box minigame",
  194. Callback = function()
  195. game:GetService("ReplicatedStorage").Bricks.EBF:FireServer()
  196. end
  197. })
  198.  
  199. local NotificationCoroutine = coroutine.create(function()
  200. LatestRoom.Changed:Connect(function()
  201. if OrionLib.Flags["PredictToggle"].Value == true then
  202. local n = ChaseStart.Value - LatestRoom.Value
  203. if 0 < n and n < 4 then
  204. OrionLib:MakeNotification({
  205. Name = "Warning!",
  206. Content = "Event in " .. tostring(n) .. " rooms.",
  207. Time = 5
  208. })
  209. end
  210. end
  211. if OrionLib.Flags["BookToggle"].Value == true then
  212. if LatestRoom.Value == 50 then
  213. coroutine.resume(BookCoroutine)
  214. end
  215. end
  216. if OrionLib.Flags["FigureToggle"].Value == true then
  217. if LatestRoom.Value == 50 then
  218. coroutine.resume(EntityCoroutine)
  219. end
  220. end
  221. end)
  222. workspace.ChildAdded:Connect(function(inst)
  223. if inst.Name == "RushMoving" and OrionLib.Flags["MobToggle"].Value == true then
  224. OrionLib:MakeNotification({
  225. Name = "Warning!",
  226. Content = "Rush has spawned, hide!",
  227. Time = 5
  228. })
  229. elseif inst.Name == "AmbushMoving" and OrionLib.Flags["MobToggle"].Value == true then
  230. OrionLib:MakeNotification({
  231. Name = "Warning!",
  232. Content = "Ambush has spawned, hide!",
  233. Time = 5
  234. })
  235. end
  236. end)
  237. end)
  238.  
  239. coroutine.resume(NotificationCoroutine)
Add Comment
Please, Sign In to add comment