Guest User

DOORS SCRIPT

a guest
Feb 15th, 2025
1,984
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.89 KB | None | 0 0
  1. -- DOORS Cheat GUI (ESP, Speed, Noclip, Auto-Dodge, Item Spawner, Auto-Win)
  2. local Players = game:GetService("Players")
  3. local LocalPlayer = Players.LocalPlayer
  4. local Workspace = game:GetService("Workspace")
  5. local UIS = game:GetService("UserInputService")
  6. local RunService = game:GetService("RunService")
  7. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  8.  
  9. -- Create UI
  10. local ScreenGui = Instance.new("ScreenGui")
  11. local MainFrame = Instance.new("Frame")
  12.  
  13. ScreenGui.Parent = game.CoreGui
  14. ScreenGui.ResetOnSpawn = false
  15.  
  16. MainFrame.Parent = ScreenGui
  17. MainFrame.Size = UDim2.new(0, 230, 0, 450)
  18. MainFrame.Position = UDim2.new(0.1, 0, 0.1, 0)
  19. MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  20. MainFrame.BorderSizePixel = 2
  21. MainFrame.Active = true
  22.  
  23. local function createButton(text, position)
  24. local button = Instance.new("TextButton")
  25. button.Parent = MainFrame
  26. button.Size = UDim2.new(0, 200, 0, 40)
  27. button.Position = UDim2.new(0.05, 0, position, 0)
  28. button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  29. button.Text = text
  30. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  31. button.Font = Enum.Font.SourceSansBold
  32. button.TextSize = 20
  33. button.BorderSizePixel = 2
  34. return button
  35. end
  36.  
  37. local ESPButton = createButton("Toggle ESP", 0.05)
  38. local SpeedButton = createButton("Toggle Speed Boost", 0.2)
  39. local NoclipButton = createButton("Toggle Noclip", 0.35)
  40. local AutoWinButton = createButton("Auto-Win Door 50", 0.5)
  41. local AutoDodgeButton = createButton("Auto-Dodge Rush/Ambush", 0.65)
  42. local UnlockDoorsButton = createButton("Unlock All Doors", 0.8)
  43. local GodModeButton = createButton("Enable God Mode", 0.95)
  44. local TeleportButton = createButton("Teleport to Any Room", 1.1)
  45. local ItemSpawnButton = createButton("Spawn ALL Items", 1.25)
  46.  
  47. -- Dragging UI
  48. local dragging, dragInput, dragStart, startPos
  49.  
  50. local function updateInput(input)
  51. local delta = input.Position - dragStart
  52. MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  53. end
  54.  
  55. MainFrame.InputBegan:Connect(function(input)
  56. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  57. dragging = true
  58. dragStart = input.Position
  59. startPos = MainFrame.Position
  60.  
  61. input.Changed:Connect(function()
  62. if input.UserInputState == Enum.UserInputState.End then
  63. dragging = false
  64. end
  65. end)
  66. end
  67. end)
  68.  
  69. MainFrame.InputChanged:Connect(function(input)
  70. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  71. dragInput = input
  72. end
  73. end)
  74.  
  75. UIS.InputChanged:Connect(function(input)
  76. if input == dragInput and dragging then
  77. updateInput(input)
  78. end
  79. end)
  80.  
  81. -- ESP Function
  82. local ESPEnabled = false
  83. local function highlightEntity(entity)
  84. if entity:IsA("Model") and entity:FindFirstChild("HumanoidRootPart") then
  85. local highlight = Instance.new("Highlight")
  86. highlight.Parent = entity
  87. highlight.FillColor = Color3.fromRGB(255, 0, 0)
  88. highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  89. highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  90. end
  91. end
  92.  
  93. ESPButton.MouseButton1Click:Connect(function()
  94. ESPEnabled = not ESPEnabled
  95. ESPButton.Text = ESPEnabled and "ESP ON" or "ESP OFF"
  96.  
  97. if ESPEnabled then
  98. for _, entity in pairs(Workspace:GetChildren()) do
  99. highlightEntity(entity)
  100. end
  101. else
  102. for _, entity in pairs(Workspace:GetChildren()) do
  103. if entity:IsA("Model") and entity:FindFirstChild("Highlight") then
  104. entity.Highlight:Destroy()
  105. end
  106. end
  107. end
  108. end)
  109.  
  110. -- Auto-Win for Door 50
  111. AutoWinButton.MouseButton1Click:Connect(function()
  112. for _, v in pairs(Workspace:GetDescendants()) do
  113. if v.Name == "LibraryPuzzle" then
  114. v:Destroy()
  115. end
  116. end
  117. AutoWinButton.Text = "Auto-Win Activated!"
  118. end)
  119.  
  120. -- Auto-Dodge Rush & Ambush
  121. AutoDodgeButton.MouseButton1Click:Connect(function()
  122. local function onEntitySpawn(entity)
  123. if entity:IsA("Model") and (entity.Name == "Rush" or entity.Name == "Ambush") then
  124. LocalPlayer.Character.HumanoidRootPart.CFrame = Workspace.Closets:GetChildren()[1].CFrame
  125. end
  126. end
  127.  
  128. Workspace.ChildAdded:Connect(onEntitySpawn)
  129. AutoDodgeButton.Text = "Auto-Dodge ON"
  130. end)
  131.  
  132. -- Unlock All Doors
  133. UnlockDoorsButton.MouseButton1Click:Connect(function()
  134. for _, door in pairs(Workspace:GetChildren()) do
  135. if door:IsA("Model") and door.Name:match("Door") and door:FindFirstChild("Lock") then
  136. door.Lock:Destroy()
  137. end
  138. end
  139. UnlockDoorsButton.Text = "Doors Unlocked!"
  140. end)
  141.  
  142. -- God Mode
  143. GodModeButton.MouseButton1Click:Connect(function()
  144. for _, part in pairs(LocalPlayer.Character:GetDescendants()) do
  145. if part:IsA("BasePart") then
  146. part.Anchored = true
  147. end
  148. end
  149. GodModeButton.Text = "God Mode Enabled!"
  150. end)
  151.  
  152. -- Teleport to Any Room
  153. TeleportButton.MouseButton1Click:Connect(function()
  154. local targetRoom = Workspace:FindFirstChild("50")
  155. if targetRoom then
  156. LocalPlayer.Character.HumanoidRootPart.CFrame = targetRoom.CFrame
  157. end
  158. TeleportButton.Text = "Teleported!"
  159. end)
  160.  
  161. -- Item Spawner
  162. ItemSpawnButton.MouseButton1Click:Connect(function()
  163. local function giveItem(itemName)
  164. local item = ReplicatedStorage:FindFirstChild(itemName):Clone()
  165. if item then
  166. item.Parent = LocalPlayer.Backpack
  167. end
  168. end
  169.  
  170. giveItem("Crucifix")
  171. giveItem("SkeletonKey")
  172. giveItem("Candle")
  173. giveItem("Lighter")
  174. giveItem("Vitamins")
  175. giveItem("Lockpick")
  176. giveItem("Flashlight")
  177.  
  178. ItemSpawnButton.Text = "All Items Spawned!"
  179. end)
  180.  
Advertisement
Add Comment
Please, Sign In to add comment