Advertisement
Guest User

Jailbreak auto rob and all gamepass script

a guest
Mar 17th, 2020
17,759
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. local RunService = game:GetService("RunService")
  2. local UIS = game:GetService("UserInputService")
  3. local Players = game:GetService("Players")
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. local DetectedNPC = nil
  17. local Detected = false
  18. local Chatting = false
  19. local Skip = false
  20. local Exit = false
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. local Player = Players.LocalPlayer
  30. local Camera = game.Workspace.CurrentCamera
  31.  
  32. local Gui = script.Parent
  33. local Sounds = Gui.Sounds
  34. local PromptLabel = Gui.PromptLabel
  35. local LineLabel = Gui.LineLabel
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. local Character = Player.Character or Player.CharacterAdded:Wait()
  45. local CharHRP = Character:WaitForChild("HumanoidRootPart")
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. local NPCS = game.Workspace:WaitForChild("NPCS")
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61. UIS.InputBegan:Connect(function(Input
  62. if Input.KeyCode == Enum.KeyCode.X then
  63. if Chatting == true then
  64. Skip = true
  65. Sounds.Click:Play()
  66. end
  67. end
  68. )end)
  69.  
  70. UIS.InputBegan:Connect(function(Input
  71. if Input.KeyCode == Enum.KeyCode.Z then
  72. if Chatting == true then
  73. Exit = true
  74. Sounds.Click:Play()
  75. end
  76. end
  77. )end)
  78.  
  79. UIS.InputBegan:Connect(function(Input
  80. if Input.KeyCode == Enum.KeyCode.E then
  81. if Detected == true then
  82. local Lines = DetectedNPC:FindFirstChild("Lines")
  83.  
  84. if Lines then
  85. Sounds.Click:play()
  86.  
  87. Chatting = true
  88. Detected = false
  89.  
  90. LineLabel.Text = " "
  91.  
  92. PromptLabel:TweenSize(UDim2(0, 0, 0, 0), "Out", "Linear")
  93. LineLabel:TweenPosition(UDim2(0, 0, 0.8, 0), "In", "Linear")
  94.  
  95. wait(0.5)
  96.  
  97. for i, Line in pairs(Lines:GetChildren()) do
  98. local Text = Line.Value
  99.  
  100. for i = 1, #Text do
  101. LineLabel.Text = string.sub(Text, 1, i)
  102. Sound.Talk:play()
  103. if Skip == true then
  104. Skip = false
  105. LineLabel.Text = Text
  106. break
  107. end
  108. if Exit == true then
  109. break
  110. end
  111. wait(0.07)
  112. end
  113. if Exit == true then
  114. Exit = false
  115. break
  116. end
  117. repeat wait() until Skip == true or Exit == true
  118. Skip = false
  119. end
  120.  
  121. Exit = false
  122. Skip = false
  123.  
  124. PromptLabel:TweenSize(UDim2(0, 0, 0, 0), "Out", "Linear")
  125. LineLabel:TweenPosition(UDim2(0, 0, 1.2, 0), "In", "Linear")
  126.  
  127. wait(0.5)
  128.  
  129. Chatting = false
  130. Detected = false
  131. end
  132. end
  133. end
  134. end)
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142. RunService.RenderStepped.Connect(function()
  143.  
  144.  
  145. if Detected == false and Chatting == false then
  146. for i, NPC in pairs(NPCS:GetChildren()) do
  147. local Humanoid = NPC:FindFirstChild("Humanoid")
  148. local HMR = NPC:FindFirstChild("HumanoidRootPart")
  149.  
  150. if Humanoid and HMR then
  151. if (HMR)
  152. end
  153. end
  154. end
  155. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement