Advertisement
thegameplayer

Untitled

Nov 20th, 2022
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. local Keybind = Enum.KeyCode.H
  2. local CanSkipRoom_50 = true
  3. local CanAutoUnlockDoors = true
  4. local CanPullTheLevers = true
  5. local cooldown = true
  6. local cooldownwait = 0.5
  7.  
  8. do
  9. local UIS = game:GetService("UserInputService")
  10. local CF = CFrame.new
  11. local LatestRoom = game:GetService("ReplicatedStorage").GameData.LatestRoom
  12.  
  13. UIS.InputBegan:Connect(function(input, typing)
  14. if typing then return end
  15. if input.KeyCode == Keybind then
  16. if not cooldown then return end
  17. pcall(function()
  18. cooldown = false
  19. local key = false
  20. local lever = false
  21. local CurrentDoor = workspace.CurrentRooms[tostring(game:GetService("ReplicatedStorage").GameData.LatestRoom.Value)]:WaitForChild("Door")
  22. for _,object in ipairs(CurrentDoor.Parent:GetDescendants()) do
  23. if object.Name == "KeyObtain" then
  24. key = object
  25. end
  26. end
  27. for _,object in ipairs(CurrentDoor.Parent:GetDescendants()) do
  28. if object.Name == "LeverForGate" then
  29. lever = object
  30. end
  31. end
  32. if LatestRoom.Value == 50 and CanSkipRoom_50 == true then
  33. CurrentDoor = workspace.CurrentRooms[tostring(LatestRoom.Value + 1)]:WaitForChild("Door")
  34. game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
  35. else
  36. if key and CanAutoUnlockDoors == true then
  37. game.Players.LocalPlayer.Character:PivotTo(CF(key.Hitbox.Position))
  38. task.wait(.3)
  39. fireproximityprompt(key.ModulePrompt)
  40. task.wait(.3)
  41. game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
  42. task.wait(.3)
  43. fireproximityprompt(CurrentDoor.Lock.UnlockPrompt)
  44. end
  45. if lever and CanPullTheLevers == true then
  46. game.Players.LocalPlayer.Character:PivotTo(CF(lever.Main.Position))
  47. task.wait(.3)
  48. fireproximityprompt(lever.ActivateEventPrompt)
  49. task.wait(.3)
  50. game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
  51. end
  52. game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
  53. end
  54. task.wait(.45)
  55. CurrentDoor.ClientOpen:FireServer()
  56. task.wait(cooldownwait)
  57. cooldown = true
  58. end)
  59. end
  60. end)
  61. end
  62.  
  63.  
  64. loadstring(game:HttpGet("https://raw.githubusercontent.com/advxzivhsjjdhxhsidifvsh/mobkeyboard/main/main.txt", true))()
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement