Advertisement
baconhack_263

DOORS SCRIPT

Nov 18th, 2023
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.62 KB | None | 0 0
  1. local library = loadstring(game:HttpGet('https://pastebin.com/raw/vPWzQEC8'))()
  2. local plr = game.Players.LocalPlayer
  3. local char = plr.Character or plr.CharacterAdded:Wait()
  4. local hum = char:FindFirstChildOfClass("Humanoid") or char:WaitForChild("Humanoid")
  5.  
  6. window_misc.toggle("notify entities",false,function(val)
  7. flags.hintrush = val
  8.  
  9. if val then
  10. local addconnect
  11. addconnect = workspace.ChildAdded:Connect(function(v)
  12. if table.find(entitynames,v.Name) then
  13. repeat task.wait() until plr:DistanceFromCharacter(v:GetPivot().Position) < 1000 or not v:IsDescendantOf(workspace)
  14.  
  15. if v:IsDescendantOf(workspace) then
  16. message(v.Name:gsub("Moving",""):lower().." is coming go hide")
  17. end
  18. end
  19. end)
  20.  
  21. repeat task.wait() until not flags.hintrush
  22. addconnect:Disconnect()
  23. end
  24. end)
  25.  
  26. window_misc.toggle("auto library code",false,function(val)
  27. flags.getcode = val
  28.  
  29. if val then
  30. local function deciphercode()
  31. local paper = char:FindFirstChild("LibraryHintPaper")
  32. local hints = plr.PlayerGui:WaitForChild("PermUI"):WaitForChild("Hints")
  33.  
  34. local code = {[1]="_",[2]="_",[3]="_",[4]="_",[5]="_"}
  35.  
  36. if paper then
  37. for i,v in pairs(paper:WaitForChild("UI"):GetChildren()) do
  38. if v:IsA("ImageLabel") and v.Name ~= "Image" then
  39. for i,img in pairs(hints:GetChildren()) do
  40. if img:IsA("ImageLabel") and img.Visible and v.ImageRectOffset == img.ImageRectOffset then
  41. local num = img:FindFirstChild("TextLabel").Text
  42.  
  43. code[tonumber(v.Name)] = num
  44. end
  45. end
  46. end
  47. end
  48. end
  49.  
  50. return code
  51. end
  52.  
  53. local addconnect
  54. addconnect = char.ChildAdded:Connect(function(v)
  55. if v:IsA("Tool") and v.Name == "LibraryHintPaper" then
  56. task.wait()
  57.  
  58. local code = table.concat(deciphercode())
  59.  
  60. if code:find("_") then
  61. message("get all hints first")
  62. else
  63. message("the code is ".. code)
  64. end
  65. end
  66. end)
  67.  
  68. repeat task.wait() until not flags.getcode
  69. addconnect:Disconnect()
  70. end
  71. end)
  72.  
  73. window_misc.toggle("loot aura",false,function(val)
  74. flags.draweraura = val
  75.  
  76. if val then
  77. local function setup(room)
  78. local function check(v)
  79. if v:IsA("Model") then
  80. if v.Name == "DrawerContainer" then
  81. local knob = v:WaitForChild("Knobs")
  82.  
  83. if knob then
  84. local prompt = knob:WaitForChild("ActivateEventPrompt")
  85. local interactions = prompt:GetAttribute("Interactions")
  86.  
  87. if not interactions then
  88. task.spawn(function()
  89. repeat task.wait(0.1)
  90. if plr:DistanceFromCharacter(knob.Position) <= 12 then
  91. fireproximityprompt(prompt)
  92. end
  93. until prompt:GetAttribute("Interactions") or not flags.draweraura
  94. end)
  95. end
  96. end
  97. elseif v.Name == "GoldPile" then
  98. local prompt = v:WaitForChild("LootPrompt")
  99. local interactions = prompt:GetAttribute("Interactions")
  100.  
  101. if not interactions then
  102. task.spawn(function()
  103. repeat task.wait(0.1)
  104. if plr:DistanceFromCharacter(v.PrimaryPart.Position) <= 12 then
  105. fireproximityprompt(prompt)
  106. end
  107. until prompt:GetAttribute("Interactions") or not flags.draweraura
  108. end)
  109. end
  110. elseif v.Name:sub(1,8) == "ChestBox" then
  111. local prompt = v:WaitForChild("ActivateEventPrompt")
  112. local interactions = prompt:GetAttribute("Interactions")
  113.  
  114. if not interactions then
  115. task.spawn(function()
  116. repeat task.wait(0.1)
  117. if plr:DistanceFromCharacter(v.PrimaryPart.Position) <= 12 then
  118. fireproximityprompt(prompt)
  119. end
  120. until prompt:GetAttribute("Interactions") or not flags.draweraura
  121. end)
  122. end
  123. elseif v.Name == "RolltopContainer" then
  124. local prompt = v:WaitForChild("ActivateEventPrompt")
  125. local interactions = prompt:GetAttribute("Interactions")
  126.  
  127. if not interactions then
  128. task.spawn(function()
  129. repeat task.wait(0.1)
  130. if plr:DistanceFromCharacter(v.PrimaryPart.Position) <= 12 then
  131. fireproximityprompt(prompt)
  132. end
  133. until prompt:GetAttribute("Interactions") or not flags.draweraura
  134. end)
  135. end
  136. end
  137. end
  138. end
  139.  
  140. local subaddcon
  141. subaddcon = room.DescendantAdded:Connect(function(v)
  142. check(v)
  143. end)
  144.  
  145. for i,v in pairs(room:GetDescendants()) do
  146. check(v)
  147. end
  148.  
  149. task.spawn(function()
  150. repeat task.wait() until not flags.draweraura
  151. subaddcon:Disconnect()
  152. end)
  153. end
  154.  
  155. local addconnect
  156. addconnect = workspace.CurrentRooms.ChildAdded:Connect(function(room)
  157. setup(room)
  158. end)
  159.  
  160. for i,room in pairs(workspace.CurrentRooms:GetChildren()) do
  161. if room:FindFirstChild("Assets") then
  162. setup(room)
  163. end
  164. end
  165.  
  166. repeat task.wait() until not flags.draweraura
  167. addconnect:Disconnect()
  168. end
  169. end)
  170.  
  171. window_misc.toggle("disable seek chase",false,function(val)
  172. flags.noseek = val
  173.  
  174. if val then
  175. local addconnect
  176. addconnect = workspace.CurrentRooms.ChildAdded:Connect(function(room)
  177. local trigger = room:WaitForChild("TriggerEventCollision",2)
  178.  
  179. if trigger then
  180. trigger:Destroy()
  181. end
  182. end)
  183.  
  184. repeat task.wait() until not flags.noseek
  185. addconnect:Disconnect()
  186. end
  187. end)
  188.  
  189. window_misc.toggle("delete gates",false,function(val)
  190. flags.nogates = val
  191.  
  192. if val then
  193. local addconnect
  194. addconnect = workspace.CurrentRooms.ChildAdded:Connect(function(room)
  195. local gate = room:WaitForChild("Gate",2)
  196.  
  197. if gate then
  198. local door = gate:WaitForChild("ThingToOpen",2)
  199.  
  200. if door then
  201. door:Destroy()
  202. end
  203. end
  204. end)
  205.  
  206. repeat task.wait() until not flags.nogates
  207. addconnect:Disconnect()
  208. end
  209. end)
  210.  
  211. window_misc.toggle("delete puzzle door",false,function(val)
  212. flags.nopuzzle = val
  213.  
  214. if val then
  215. local addconnect
  216. addconnect = workspace.CurrentRooms.ChildAdded:Connect(function(room)
  217. local assets = room:WaitForChild("Assets")
  218. local paintings = assets:WaitForChild("Paintings",2)
  219.  
  220. if paintings then
  221. local door = paintings:WaitForChild("MovingDoor",2)
  222.  
  223. if door then
  224. door:Destroy()
  225. end
  226. end
  227. end)
  228.  
  229. repeat task.wait() until not flags.nopuzzle
  230. addconnect:Disconnect()
  231. end
  232. end)
  233.  
  234. local screechremote = entityinfo:FindFirstChild("Screech")
  235.  
  236. if screechremote then
  237. window_misc.toggle("harmless screech",false,function(val)
  238. flags.noscreech = val
  239.  
  240. if val then
  241. screechremote.Parent = nil
  242. repeat task.wait() until not flags.noscreech
  243. screechremote.Parent = entityinfo
  244. end
  245. end)
  246. end
  247.  
  248. window_misc.toggle("no skeleton doors",false,function(val)
  249. flags.noskeledoors = val
  250.  
  251. if val then
  252. local addconnect
  253. addconnect = workspace.CurrentRooms.ChildAdded:Connect(function(room)
  254. local door = room:WaitForChild("Wax_Door",2)
  255.  
  256. if door then
  257. door:Destroy()
  258. end
  259. end)
  260.  
  261. repeat task.wait() until not flags.noskeledoors
  262. addconnect:Disconnect()
  263. end
  264. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement