fxdogxd

new auto room 1000

Mar 13th, 2023
116
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.59 KB | None | 1 0
  1. --new auto room 1000
  2.  
  3. --test
  4.  
  5. if game.PlaceId ~= 6839171747 or game.ReplicatedStorage.GameData.Floor.Value ~= "Rooms" then
  6. game.StarterGui:SetCore("SendNotification", { Title = "Invalid Place"; Text = "The game detected appears to not be rooms. Please execute this while in rooms!" })
  7.  
  8. local Sound = Instance.new("Sound")
  9. Sound.Parent = game.SoundService
  10. Sound.SoundId = "rbxassetid://550209561"
  11. Sound.Volume = 5
  12. Sound.PlayOnRemove = true
  13. Sound:Destroy()
  14.  
  15. return
  16. elseif workspace:FindFirstChild("PathFindPartsFolder") then
  17. game.StarterGui:SetCore("SendNotification", { Title = "Warning"; Text = "If you are having issues and the bot is broken, please contact me! geodude#2619" })
  18.  
  19. local Sound = Instance.new("Sound")
  20. Sound.Parent = game.SoundService
  21. Sound.SoundId = "rbxassetid://550209561"
  22. Sound.Volume = 5
  23. Sound.PlayOnRemove = true
  24. Sound:Destroy()
  25.  
  26. return
  27. end
  28.  
  29. local PathfindingService = game:GetService("PathfindingService")
  30. local VirtualInputManager = game:GetService('VirtualInputManager')
  31. local LocalPlayer = game.Players.LocalPlayer
  32. local LatestRoom = game.ReplicatedStorage.GameData.LatestRoom
  33.  
  34. local Cooldown = false
  35.  
  36. local ScreenGui = Instance.new("ScreenGui")
  37. ScreenGui.Parent = game.CoreGui
  38.  
  39. local TextLabel = Instance.new("TextLabel")
  40. TextLabel.Parent = ScreenGui
  41.  
  42. TextLabel.Size = UDim2.new(0,350,0,100)
  43. TextLabel.TextSize = 48
  44. TextLabel.TextStrokeColor3 = Color3.new(1,1,1)
  45. TextLabel.TextStrokeTransparency = 0
  46. TextLabel.BackgroundTransparency = 1
  47.  
  48. local GC = getconnections or get_signal_cons
  49. if GC then
  50. for i,v in pairs(GC(LocalPlayer.Idled)) do
  51. if v["Disable"] then
  52. v["Disable"](v)
  53. elseif v["Disconnect"] then
  54. v["Disconnect"](v)
  55. end
  56. end
  57. end
  58.  
  59. local Folder = Instance.new("Folder")
  60. Folder.Parent = workspace
  61. Folder.Name = "PathFindPartsFolder"
  62.  
  63. if LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game.RemoteListener.Modules:FindFirstChild("A90") then
  64. LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game.RemoteListener.Modules.A90.Name = "lol" -- Fuck you A90
  65. end
  66.  
  67. function getLocker()
  68. local Closest
  69.  
  70. for i,v in pairs(workspace.CurrentRooms:GetDescendants()) do
  71. if v.Name == "Rooms_Locker" then
  72. if v:FindFirstChild("Door") and v:FindFirstChild("HiddenPlayer") then
  73. if v.HiddenPlayer.Value == nil then
  74. if v.Door.Position.Y > -3 then -- Prevents going to the lower lockers in the room with the bridge
  75. if Closest == nil then
  76. Closest = v.Door
  77. else
  78. if (LocalPlayer.Character.HumanoidRootPart.Position - v.Door.Position).Magnitude < (Closest.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude then
  79. Closest = v.Door
  80. end
  81. end
  82. end
  83. end
  84. end
  85. end
  86. end
  87. return Closest
  88. end
  89.  
  90. function getPath()
  91. local Part
  92.  
  93. local Entity = workspace:FindFirstChild("A60") or workspace:FindFirstChild("A120")
  94. if Entity and Entity.Main.Position.Y > -4 then
  95. Part = getLocker()
  96. else
  97. Part = workspace.CurrentRooms[LatestRoom.Value].Door.Door
  98. end
  99. return Part
  100. end
  101.  
  102. LatestRoom:GetPropertyChangedSignal("Value"):Connect(function()
  103. TextLabel.Text = "Room: "..math.clamp(LatestRoom.Value, 1,1000)
  104.  
  105. if LatestRoom.Value ~= 1000 then
  106. LocalPlayer.DevComputerMovementMode = Enum.DevComputerMovementMode.Scriptable
  107. else
  108. LocalPlayer.DevComputerMovementMode = Enum.DevComputerMovementMode.KeyboardMouse
  109.  
  110. Folder:ClearAllChildren()
  111.  
  112. local Sound = Instance.new("Sound")
  113. Sound.Parent = game.SoundService
  114. Sound.SoundId = "rbxassetid://4590662766"
  115. Sound.Volume = 3
  116. Sound.PlayOnRemove = true
  117. Sound:Destroy()
  118.  
  119. game.StarterGui:SetCore("SendNotification", { Title = "youtube.com/geoduude"; Text = "Thank you for using my script!" })
  120. return
  121. end
  122. end)
  123.  
  124. game:GetService("RunService").RenderStepped:connect(function()
  125. LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  126. LocalPlayer.Character.Collision.CanCollide = false
  127. LocalPlayer.Character.Collision.Size = Vector3.new(8,LocalPlayer.Character.Collision.Size.Y,8)
  128.  
  129. LocalPlayer.Character.Humanoid.WalkSpeed = 21
  130.  
  131. local Path = getPath()
  132.  
  133. local Entity = workspace:FindFirstChild("A60") or workspace:FindFirstChild("A120")
  134. if Entity then
  135. if Path then
  136. if Path.Parent.Name == "Rooms_Locker" then
  137. if Entity.Main.Position.Y > -4 then
  138. if (LocalPlayer.Character.HumanoidRootPart.Position - Path.Position).Magnitude < 2 then
  139. if LocalPlayer.Character.HumanoidRootPart.Anchored == false then
  140. fireproximityprompt(Path.Parent.HidePrompt)
  141. end
  142. end
  143. end
  144. end
  145. end
  146. if Entity.Main.Position.Y < -4 then
  147. if LocalPlayer.Character.HumanoidRootPart.Anchored == true then
  148. LocalPlayer.Character:SetAttribute("Hiding", false)
  149. end
  150. end
  151. else
  152. if LocalPlayer.Character.HumanoidRootPart.Anchored == true then
  153. LocalPlayer.Character:SetAttribute("Hiding", false)
  154. end
  155. end
  156. end)
  157.  
  158. while true do
  159.  
  160. local Destination = getPath()
  161.  
  162. local path = PathfindingService:CreatePath({ WaypointSpacing = 1, AgentRadius = 0.1, AgentCanJump = false })
  163. path:ComputeAsync(LocalPlayer.Character.HumanoidRootPart.Position - Vector3.new(0,3,0), Destination.Position)
  164. local Waypoints = path:GetWaypoints()
  165.  
  166. if path.Status ~= Enum.PathStatus.NoPath then
  167.  
  168. Folder:ClearAllChildren()
  169.  
  170. for _, Waypoint in pairs(Waypoints) do
  171. local part = Instance.new("Part")
  172. part.Size = Vector3.new(1,1,1)
  173. part.Position = Waypoint.Position
  174. part.Shape = "Cylinder"
  175. part.Rotation = Vector3.new(0,0,90)
  176. part.Material = "SmoothPlastic"
  177. part.Anchored = true
  178. part.CanCollide = false
  179. part.Parent = Folder
  180. end
  181.  
  182. for _, Waypoint in pairs(Waypoints) do
  183. if LocalPlayer.Character.HumanoidRootPart.Anchored == false then
  184. LocalPlayer.Character.Humanoid:MoveTo(Waypoint.Position)
  185. LocalPlayer.Character.Humanoid.MoveToFinished:Wait()
  186. end
  187. end
  188. end
  189. end
Add Comment
Please, Sign In to add comment