Advertisement
Guest User

Gui roblox

a guest
Sep 17th, 2018
1,821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.33 KB | None | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2.  
  3. local TpMethod = 1
  4.  
  5. function JailbreakTp(...)
  6. getfenv()["TpMethod" .. TpMethod](...)
  7. end
  8.  
  9. function TpMethod1(...)
  10. local char = plr.Character
  11. local root = char.HumanoidRootPart
  12. local args = {...}
  13. for i=0,1,0.05 do
  14. wait()
  15. root.CFrame = root.CFrame:lerp(CFrame.new(unpack(args,1,3)), i)
  16. end
  17. end
  18.  
  19. function TpMethod2(...)
  20. local args = {...}
  21. local char = plr.Character
  22. local target = Vector3.new(unpack(args,1,3))
  23. local dist = (char:WaitForChild"HumanoidRootPart".Position - target).magnitude
  24. dist = math.floor(dist / 100) + 1
  25. for i=0,dist * 4 do
  26. wait()
  27. char:MoveTo(Vector3.new(...))
  28. end
  29. if args[#args] == true then
  30. wait()
  31. char:WaitForChild'HumanoidRootPart'.CFrame = CFrame.new(unpack(args,1,#args - 1))
  32. end
  33. end
  34.  
  35. function Tween(obj, t, properties)
  36. local TweenService = game:GetService("TweenService")
  37. local tweenInfo = TweenInfo.new(t,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0)
  38. local tween = TweenService:Create(obj,tweenInfo,properties)
  39. tween:Play()
  40. return tween
  41. end
  42.  
  43. local Tracers = {}
  44.  
  45. local function AddLasso(p,team)
  46. if not Tracers[team.Name] then return end
  47. if p == plr then return end
  48. spawn(function()
  49. if p.Character then
  50. local l = Instance.new("SelectionPartLasso")
  51. l.Parent = p.Character
  52. l.Humanoid = p.Character:FindFirstChildOfClass"Humanoid"
  53. l.Part = plr.Character:WaitForChild"HumanoidRootPart"
  54. l.Visible = true
  55. l.Color3 = team.TeamColor.Color
  56. for i=0,5 do
  57. local sg = Instance.new("SurfaceGui")
  58. sg.Face = i
  59. sg.Parent = p.Character
  60. sg.Adornee = p.Character:FindFirstChild"HumanoidRootPart"
  61. sg.AlwaysOnTop = true
  62. local f = Instance.new("Frame", sg)
  63. f.Size = UDim2.new(1,0,1,0)
  64. f.BorderSizePixel = 0
  65. f.BackgroundColor3 = team.TeamColor.Color
  66. f.BackgroundTransparency = 0.5
  67. end
  68. end
  69. end)
  70. end
  71.  
  72. local function RemoveLasso(p)
  73. if not p.Character then return end
  74. for i,v in pairs(p.Character:GetDescendants()) do
  75. if v.ClassName:find("Selection") or v.ClassName == "SurfaceGui" then
  76. v:Destroy()
  77. end
  78. end
  79. end
  80.  
  81. for _,team in pairs(game:GetService("Teams"):GetChildren()) do
  82. team.PlayerAdded:connect(function(p)
  83. AddLasso(p,team)
  84. end)
  85.  
  86. team.PlayerRemoved:connect(function(p)
  87. RemoveLasso(p)
  88. end)
  89. end
  90.  
  91. function ToggleTracers(team, bool)
  92. Tracers[team] = bool
  93. local t = game:GetService("Teams"):FindFirstChild(team)
  94. if not t then return end
  95. for i,v in pairs(t:GetPlayers()) do
  96. if bool then
  97. AddLasso(v,t)
  98. else
  99. RemoveLasso(v)
  100. end
  101. end
  102. end
  103.  
  104. local function CharAdded(plr, char)
  105. if Tracers[tostring(plr.Team)] then
  106. AddLasso(plr,plr.Team)
  107. end
  108. end
  109.  
  110. local function PlrAdded(plr)
  111. plr.CharacterAdded:connect(function(char)
  112. CharAdded(plr, char)
  113. end)
  114. if plr.Character then
  115. CharAdded(plr, plr.Character)
  116. end
  117. end
  118.  
  119. game:GetService("Players").PlayerAdded:connect(PlrAdded)
  120. for _,v in pairs(game:GetService("Players"):GetPlayers()) do
  121. PlrAdded(v)
  122. end
  123.  
  124. --Creating Gui--
  125.  
  126. local function Create(classname)
  127. return function(t)
  128. local ins = Instance.new(classname)
  129. for i,v in pairs(t) do
  130. ins[i] = v
  131. end
  132. return ins
  133. end
  134. end
  135.  
  136. --local parent = game:GetService("CoreGui"):WaitForChild("RobloxGui")
  137. local main = Create "Frame" {
  138. Active = true,
  139. ClipsDescendants = true,
  140. Draggable = true,
  141. BackgroundColor3 = Color3.new(1,1,1),
  142. BorderSizePixel = 0,
  143. Size = UDim2.new(0,400,0,300),
  144. Position = UDim2.new(0.5,-200,0,-300),
  145. BackgroundTransparency = 1,
  146. Parent = Instance.new("ScreenGui", plr.PlayerGui)--parent
  147. }
  148. do
  149. local effect = Create "Frame" {
  150. Parent = main,
  151. Size = UDim2.new(1,0,0,50),
  152. BackgroundColor3 = Color3.fromRGB(85,170,255),
  153. BorderSizePixel = 0,
  154. ClipsDescendants = true,
  155. }
  156. local lb = Create "TextLabel" {
  157. Parent = effect,
  158. Size = UDim2.new(1,0,1,0),
  159. BackgroundTransparency = 1,
  160. BorderSizePixel = 0,
  161. TextSize = 30,
  162. TextColor3 = Color3.new(1,1,1),
  163. TextXAlignment = "Left",
  164. Font = "SourceSansBold",
  165. Text = "Jailbreak GUI",
  166. ZIndex = 2,
  167. }
  168. local function GTween()
  169. lb:TweenPosition(UDim2.new(1,10,0,0), nil,nil,3,true,function(ts)
  170. if ts == Enum.TweenStatus.Completed then
  171. lb.Position = UDim2.new(0,0 - lb.TextBounds.X - 2,0,0)
  172. GTween()
  173. end
  174. end)
  175. end
  176. GTween()
  177. end
  178.  
  179. local Menu = Create "Frame" {
  180. BackgroundColor3 = Color3.new(1,1,1),
  181. BorderSizePixel = 0,
  182. Position = UDim2.new(0,0,0,50),
  183. Size = UDim2.new(1,0,1,-50),
  184. Parent = main,
  185. }
  186.  
  187. local MenuLabel = Create "TextLabel" {
  188. BackgroundTransparency = 1,
  189. BorderSizePixel = 0,
  190. TextColor3 = Color3.new(0,0,0),
  191. TextSize = 20,
  192. Font = "SourceSans",
  193. Text = "xd",
  194. TextWrapped = true,
  195. Size = UDim2.new(1,0,0,50),
  196. Parent = Menu
  197. }
  198.  
  199. local function CreateButton(text,parent)
  200. return Create "TextButton" {
  201. Active = true,
  202. AutoButtonColor = true,
  203. BackgroundColor3 = Color3.fromRGB(0,155,232),
  204. BorderSizePixel = 1,
  205. Size = UDim2.new(0,100,0,30),
  206. Font = "SourceSansBold",
  207. TextColor3 = Color3.new(1,1,0),
  208. TextSize = 20,
  209. Text = text,
  210. Parent = parent
  211. }
  212. end
  213.  
  214. local function CreateFrame(name)
  215. local f = Create "Frame" {
  216. BackgroundColor3 = Color3.new(1,1,1),
  217. BorderSizePixel = 0,
  218. Position = UDim2.new(0,0,0,50),
  219. Size = UDim2.new(1,0,1,-50),
  220. Visible = false,
  221. }
  222. local lb = Create "TextLabel" {
  223. BackgroundTransparency = 1,
  224. BorderSizePixel = 0,
  225. TextSize = 20,
  226. TextColor3 = Color3.new(1,1,0),
  227. Position = UDim2.new(0,0,0,5),
  228. Text = name,
  229. Parent = f,
  230. TextXAlignment = "Center",
  231. TextYAlignment = "Center",
  232. Size = UDim2.new(1,0,0,30),
  233. }
  234. local exit = CreateButton("Back", f)
  235. exit.Position = UDim2.new(0.5,-50,1,-45)
  236. exit.MouseButton1Click:connect(function()
  237. Menu.Visible = true
  238. f.Visible = false
  239. ActiveFrame = Menu
  240. end)
  241. return f
  242. end
  243.  
  244. ActiveFrame = Menu
  245.  
  246. local TeleportsFrame = CreateFrame("Teleports")
  247. TeleportsFrame.Parent = main
  248.  
  249. local BankIn = CreateButton("Bank (In)", TeleportsFrame)
  250. BankIn.Position = UDim2.new(0,15,0,40)
  251. BankIn.Size = UDim2.new(0,80,0,30)
  252. BankIn.MouseButton1Click:connect(function()
  253. JailbreakTp(32,0.715,814, true)
  254. end)
  255.  
  256. local BankOut = CreateButton("Bank (Out)", TeleportsFrame)
  257. BankOut.Position = UDim2.new(0,105,0,40)
  258. BankOut.MouseButton1Click:connect(function()
  259. JailbreakTp(10, 18, 784)
  260. end)
  261.  
  262. local JailIn = CreateButton("Jail (In)", TeleportsFrame)
  263. JailIn.Position = UDim2.new(0,215,0,40)
  264. JailIn.Size = UDim2.new(0,80,0,30)
  265. JailIn.MouseButton1Click:connect(function()
  266. JailbreakTp(-1310, 18, -1658)
  267. end)
  268.  
  269. local JailOut = CreateButton("Jail (Out)", TeleportsFrame)
  270. JailOut.Position = UDim2.new(0,305,0,40)
  271. JailOut.Size = UDim2.new(0,80,0,30)
  272. JailOut.MouseButton1Click:connect(function()
  273. JailbreakTp(-1133, 18, -1355)
  274. end)
  275.  
  276. local Garage = CreateButton("Garage", TeleportsFrame)
  277. Garage.Position = UDim2.new(0,335,0,120)--UDim2.new(0,10,0,80)
  278. Garage.Size = UDim2.new(0,60,0,30)
  279. Garage.MouseButton1Click:connect(function()
  280. JailbreakTp(-352, 23, 1175)
  281. end)
  282.  
  283. local JewelIn = CreateButton("Jewelry (In)", TeleportsFrame)
  284. JewelIn.Position = UDim2.new(0,25,0,80)
  285. JewelIn.MouseButton1Click:connect(function()
  286. JailbreakTp(133, 18, 1320, true)
  287. end)
  288.  
  289. local JewelOut = CreateButton("Jewelry (Out)", TeleportsFrame)
  290. JewelOut.Position = UDim2.new(0,135,0,80)
  291. JewelOut.Size = UDim2.new(0,115,0,30)
  292. JewelOut.MouseButton1Click:connect(function()
  293. JailbreakTp(142, 18, 1365)
  294. end)
  295.  
  296. local Crim1 = CreateButton("Crim base 1", TeleportsFrame)
  297. Crim1.Position = UDim2.new(0,5,0,120)
  298. Crim1.MouseButton1Click:connect(function()
  299. JailbreakTp(-226, 18, 1590, true)
  300. end)
  301.  
  302. local Crim2 = CreateButton("Crim base 2", TeleportsFrame)
  303. Crim2.Position = UDim2.new(0,115,0,120)
  304. Crim2.MouseButton1Click:connect(function()
  305. JailbreakTp(true, 1637, 50, -1768, true)
  306. end)
  307.  
  308. local Donut = CreateButton("Donut Shop", TeleportsFrame)
  309. Donut.Position = UDim2.new(0,225,0,120)
  310. Donut.MouseButton1Click:connect(function()
  311. JailbreakTp(268, 18, -1760, true)
  312. end)
  313.  
  314. local Gas = CreateButton("Gas Station", TeleportsFrame)
  315. Gas.Position = UDim2.new(0,260,0,80)
  316. Gas.MouseButton1Click:connect(function()
  317. JailbreakTp(-1583, 18, 724, true)
  318. end)
  319.  
  320. local TeleportsBtn = CreateButton("Teleports", MenuLabel)
  321. TeleportsBtn.Position = UDim2.new(0.5,-50,0,60)
  322. TeleportsBtn.MouseButton1Click:connect(function()
  323. TeleportsFrame.Visible = true
  324. Menu.Visible = false
  325. ActiveFrame = TeleportsFrame
  326. end)
  327.  
  328. local StuffFrame = CreateFrame("Stuff")
  329. StuffFrame.Parent = main
  330.  
  331. local StuffBtn = CreateButton("Stuff", MenuLabel)
  332. StuffBtn.Position = TeleportsBtn.Position + UDim2.new(0,0,0,40)
  333. StuffBtn.MouseButton1Click:connect(function()
  334. StuffFrame.Visible = true
  335. Menu.Visible = false
  336. ActiveFrame = StuffFrame
  337. end)
  338.  
  339. local RemoveDoors = CreateButton("Remove Doors", StuffFrame)
  340. RemoveDoors.Size = UDim2.new(0,120,0,30)
  341. RemoveDoors.Position = UDim2.new(0,10,0,50)
  342. RemoveDoors.MouseButton1Click:connect(function()
  343. local doors = workspace:FindFirstChild("Doors")
  344. if not doors then return end
  345. for i,v in pairs(doors:GetChildren()) do
  346. v:Destroy()
  347. end
  348. end)
  349.  
  350. local Platform = CreateButton("Platform", StuffFrame)
  351. Platform.Position = UDim2.new(0.5,-60,0,50)
  352. Platform.MouseButton1Click:connect(function()
  353. local p = Instance.new("Part", workspace)
  354. p.Size = Vector3.new(30,0.5,30)
  355. p.Anchored = true
  356. p.Position = plr.Character.HumanoidRootPart.Position + Vector3.new(0,15,0)
  357. plr.Character:MoveTo(p.Position + Vector3.new(0,1,0))
  358. spawn(function()
  359. while p.Parent do
  360. wait(1)
  361. if (plr.Character.HumanoidRootPart.Position - p.Position).magnitude > 20 then
  362. p:Destroy()
  363. end
  364. end
  365. end)
  366. end)
  367.  
  368. local Tracers = CreateButton("Tracers: None", StuffFrame)
  369. Tracers.Size = UDim2.new(0,140,0,30)
  370. Tracers.Position = UDim2.new(1,-150,0,50)
  371. Tracers.MouseButton1Click:connect(function()
  372. local curr = Tracers.Text:sub(10)
  373. if curr ~= "None" then
  374. ToggleTracers(curr, false)
  375. end
  376. local teams = {"None", "Police", "Criminal", "Prisoner"}
  377. local new = ""
  378. for i,v in pairs(teams) do
  379. if v == curr then
  380. new = teams[i + 1] or teams[1]
  381. end
  382. end
  383. if new ~= "None" then
  384. ToggleTracers(new, true)
  385. end
  386. Tracers.Text = "Tracers: " .. new
  387. end)
  388.  
  389. local BtoolActive = false
  390. local m = plr:GetMouse()
  391.  
  392. local Btool = CreateButton("Btool: Off", StuffFrame)
  393. Btool.Position = UDim2.new(0,10,0,90)
  394. Btool.MouseButton1Click:connect(function()
  395. spawn(function()
  396. local status = Btool.Text:sub(8)
  397. local newstatus = status == "On" and "Off" or status == "Off" and "On"
  398. Btool.Text = "Btool: " .. newstatus
  399. BtoolActive = newstatus == "On" and true or newstatus == "Off" and false
  400. if BtoolActive then
  401. local sb = Instance.new("SelectionBox", workspace.CurrentCamera)
  402. local ev = m.Button1Down:connect(function()
  403. if m.Target then
  404. m.Target:Destroy()
  405. end
  406. end)
  407. while BtoolActive do
  408. wait()
  409. if m.Target then
  410. sb.Adornee = m.Target
  411. end
  412. end
  413. ev:Disconnect()
  414. else
  415. local sb = workspace.CurrentCamera:FindFirstChildOfClass("SelectionBox")
  416. if sb then sb:Destroy() end
  417. end
  418. end)
  419. end)
  420.  
  421. local ClickTpEnabled = false
  422. m.Button1Down:connect(function()
  423. if ClickTpEnabled and m.Target then
  424. plr.Character:MoveTo(m.Hit.p)
  425. end
  426. end)
  427.  
  428. local ClickTp = CreateButton("ClickTp: Off", StuffFrame)
  429. ClickTp.Position = UDim2.new(0,120,0,90)
  430. ClickTp.MouseButton1Click:connect(function()
  431. spawn(function()
  432. local status = ClickTp.Text:sub(10)
  433. local newstatus = status == "Off" and "On" or status == "On" and "Off"
  434. ClickTpEnabled = newstatus == "On" and true or newstatus == "Off" and false
  435. ClickTp.Text = "ClickTp: " .. newstatus
  436. local ind = Create "Part" {
  437. Anchored = true,
  438. CanCollide = false,
  439. Transparency = 0.3,
  440. Size = Vector3.new(1.2,0.3,1.2),
  441. BrickColor = BrickColor.Green(),
  442. Parent = workspace
  443. }
  444. Instance.new("CylinderMesh", ind)
  445. m.TargetFilter = ind
  446. local beam = Create "Part" {
  447. Anchored = true,
  448. CanCollide = false,
  449. Transparency = 0.3,
  450. BrickColor = BrickColor.Green(),
  451. TopSurface = "Smooth",
  452. BottomSurface = "Smooth",
  453. Size = Vector3.new(0.3,0.3,1),
  454. Parent = workspace
  455.  
  456. }
  457. while ClickTpEnabled do
  458. wait()
  459. ind.CFrame = CFrame.new(m.Hit.p)
  460. local humrootpos = plr.Character:WaitForChild'HumanoidRootPart'.Position
  461. local dist = (Vector3.new(m.Hit.p.X,0,m.Hit.p.Z) - Vector3.new(humrootpos.X,0,humrootpos.Z)).magnitude
  462. if dist > 150 then
  463. ind.BrickColor,beam.BrickColor = BrickColor.Red(),BrickColor.Red()
  464. else
  465. ind.BrickColor,beam.BrickColor = BrickColor.Green(),BrickColor.Green()
  466. end
  467. beam.Size = Vector3.new(0.3,0.3,dist - 0.5)
  468. beam.CFrame = CFrame.new(plr.Character:WaitForChild'HumanoidRootPart'.Position, m.Hit.p) * CFrame.new(0,0,-dist/2 + 0.5)
  469. end
  470. ind:Destroy()
  471. beam:Destroy()
  472. end)
  473. end)
  474.  
  475. local Gravity = CreateButton("Low Gravity", StuffFrame)
  476. Gravity.Position = UDim2.new(0,230,0,90)
  477. Gravity.Size = UDim2.new(0,130,0,30)
  478. Gravity.MouseButton1Click:connect(function()
  479. local t = Gravity.Text == "Low Gravity" and true or false
  480. workspace.Gravity = t and 50 or 196.2
  481. Gravity.Text = t and "Normal Gravity" or "Low Gravity"
  482. end)
  483.  
  484. local InfiniteJumpEnabled = false
  485. game:GetService("UserInputService").JumpRequest:connect(function()
  486. if InfiniteJumpEnabled then
  487. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  488. end
  489. end)
  490. local InfiniteJump = CreateButton("Infinite Jump: Off", StuffFrame)
  491. InfiniteJump.Position = UDim2.new(0,10,0,130)
  492. InfiniteJump.Size = UDim2.new(0,150,0,30)
  493. InfiniteJump.MouseButton1Click:connect(function()
  494. local state = InfiniteJump.Text:sub(string.len("Infinite Jump: ") + 1) --too lazy to count lol
  495. local new = state == "Off" and "On" or state == "On" and "Off"
  496. InfiniteJumpEnabled = new == "On"
  497. InfiniteJump.Text = "Infinite Jump: " .. new
  498. end)
  499.  
  500. local Giver = nil
  501. local ItemsGiver = CreateButton("Items Giver", StuffFrame)
  502. ItemsGiver.Position = UDim2.new(0,170,0,130)
  503. ItemsGiver.MouseButton1Click:connect(function()
  504. if not workspace:FindFirstChild("Givers") then return end
  505. if Giver then
  506. for i,v in pairs(Giver) do
  507. v.ClickDetector.Parent = v.OriginalParent
  508. v.Event:Disconnect()
  509. end
  510. getmetatable(Giver):Destroy()
  511. end
  512. Giver = {}
  513. local g = Giver
  514. local p = Instance.new("Part", workspace)
  515. p.Anchored = true
  516. p.CanCollide = false
  517. p.CFrame = plr.Character:WaitForChild"HumanoidRootPart".CFrame
  518. setmetatable(Giver, {__metatable = p})
  519. for i,v in pairs(workspace.Givers:GetChildren()) do
  520. local cd = v:FindFirstChildOfClass"ClickDetector"
  521. if cd then
  522. local newt = {}
  523. newt.ClickDetector = cd
  524. newt.OriginalParent = v
  525. cd.Parent = p
  526. newt.Event = cd.MouseClick:connect(function()
  527. cd.Parent = v
  528. end)
  529. table.insert(Giver, newt)
  530. end
  531. end
  532. spawn(function()
  533. wait(10)
  534. if Giver == g then
  535. Giver = nil
  536. for i,v in pairs(g) do
  537. v.ClickDetector.Parent = v.OriginalParent
  538. v.Event:Disconnect()
  539. end
  540. getmetatable(g):Destroy()
  541. end
  542. end)
  543. end)
  544.  
  545. local BankAutoRobBtn = CreateButton("Bank AutoRob", StuffFrame)
  546. BankAutoRobBtn.Position = UDim2.new(0,280,0,130)
  547. BankAutoRobBtn.Size = UDim2.new(0,115,0,30)
  548. BankAutoRobBtn.BackgroundColor3 = Color3.new(1,0,0)
  549. BankAutoRobBtn.MouseButton1Click:connect(function()
  550. local Bank = workspace:FindFirstChild("Banks"):GetChildren()[1]
  551. local Info = Bank.Extra.Sign
  552. if Info.Decal.Transparency == 0 then
  553. game:GetService("StarterGui"):SetCore("SendNotification",{
  554. Title = "Bank is closed!",
  555. Text = "You need to wait for the bank to open!",
  556. Duration = 7,
  557. Button1 = "Dismiss",
  558. })
  559. return
  560. end
  561. local bankpos = Vector3.new(Info.Position.X,0,Info.Position.Z)
  562. local root = plr.Character.HumanoidRootPart
  563. local plrpos = Vector3.new(root.Position.X,0,root.Position.Z)
  564.  
  565. if (bankpos - plrpos).magnitude > 150 then
  566. local cb = Instance.new"BindableFunction"
  567.  
  568. cb.OnInvoke = function(arg)
  569. if arg == "Teleport" then
  570. JailbreakTp(10, 18, 784)
  571. end
  572. end
  573.  
  574. game:GetService("StarterGui"):SetCore("SendNotification",{
  575. Title = "You are too far!",
  576. Text = "You need to get closer to the bank (use tp)",
  577. Duration = 7,
  578. Button1 = "Dismiss",
  579. Button2 = "Teleport",
  580. Callback = cb
  581. })
  582. else
  583. RobTheBank()
  584. end
  585. end)
  586.  
  587. local SettingsFrame = CreateFrame("Settings")
  588. SettingsFrame.Parent = main
  589.  
  590. local Settingsbtn = CreateButton("Settings", MenuLabel)
  591. Settingsbtn.Position = StuffBtn.Position + UDim2.new(0,0,0,40)
  592. Settingsbtn.MouseButton1Click:connect(function()
  593. SettingsFrame.Visible = true
  594. Menu.Visible = false
  595. ActiveFrame = SettingsFrame
  596. end)
  597.  
  598. local TpMethodBtn = CreateButton("Teleport Method: 1", SettingsFrame)
  599. TpMethodBtn.Position = UDim2.new(0,10,0,50)
  600. TpMethodBtn.Size = UDim2.new(0,160,0,30)
  601. TpMethodBtn.MouseButton1Click:connect(function()
  602. local curr = TpMethodBtn.Text:sub(string.len("Teleport Method: ") + 1)
  603. curr = tonumber(curr)
  604. local new = curr == 1 and 2 or curr == 2 and 1
  605. TpMethod = new
  606. TpMethodBtn.Text = "Teleport Method: " .. new
  607. end)
  608.  
  609. local ExitBtn = CreateButton("Exit", MenuLabel)
  610. ExitBtn.Position = Settingsbtn.Position + UDim2.new(0,0,0,40)
  611. ExitBtn.MouseButton1Click:connect(function()
  612. main:Destroy()
  613. script.Disabled = true
  614. script:Destroy()
  615. end)
  616.  
  617. local BankJewelStatus = Create "TextLabel" {
  618. BackgroundTransparency = 1,
  619. TextSize = 8,
  620. TextColor3 = Color3.new(0,0,0),
  621. Font = "Legacy",
  622. TextXAlignment = "Left",
  623. TextYAlignment = "Top",
  624. Size = UDim2.new(0,100,0,100),
  625. Position = UDim2.new(0,10,0,220),
  626. Text = "Bank:\nJewelry:",
  627. Parent = Menu
  628. }
  629.  
  630. local BankStatus = BankJewelStatus:Clone()
  631. BankStatus.Text = "Unknown"
  632. BankStatus.Size = UDim2.new(0,100,0,100)
  633. BankStatus.Position = UDim2.new(0,46,0,220)
  634. BankStatus.Parent = Menu
  635. BankStatus.TextColor3 = Color3.new(1,0,0)
  636.  
  637. local JewelryStatus = BankStatus:Clone()
  638. JewelryStatus.Text = "Unknown"
  639. JewelryStatus.Size = UDim2.new(0,100,0,100)
  640. JewelryStatus.Position = UDim2.new(0,59,0,232)
  641. JewelryStatus.Parent = Menu
  642. JewelryStatus.TextColor3 = Color3.new(1,0,0)
  643.  
  644. main:TweenPosition(UDim2.new(0.5,-200,0.5,-150))
  645.  
  646. local TransparencyTweens = {}
  647. main.MouseLeave:connect(function()
  648. spawn(function()
  649. local bool = false
  650. local ev = main.MouseEnter:connect(function()
  651. bool = true
  652. end)
  653. wait(1)
  654. ev:Disconnect()
  655. if bool then return end
  656. for i,v in pairs(TransparencyTweens) do
  657. v:Pause()
  658. end
  659. TransparencyTweens = {}
  660. for i,v in pairs(main:GetDescendants()) do
  661. if v.Visible then
  662. local totween = {}
  663. if v.ClassName:sub(1,4) == "Text" then
  664. totween.TextTransparency = 0.7
  665. end
  666. if v.BackgroundTransparency ~= 1 then
  667. totween.BackgroundTransparency = 0.7
  668. end
  669. TransparencyTweens[#TransparencyTweens + 1] = Tween(v, 0.5, totween)
  670. end
  671. end
  672. main:TweenSize(UDim2.new(0,400,0,50),nil,nil,nil,true)
  673. end)
  674. end)
  675. main.MouseEnter:connect(function()
  676. for i,v in pairs(TransparencyTweens) do
  677. v:Pause()
  678. end
  679. TransparencyTweens = {}
  680. for i,v in pairs(main:GetDescendants()) do
  681. if v.Visible then
  682. local totween = {}
  683. if v.ClassName:sub(1,4) == "Text" then
  684. totween.TextTransparency = 0
  685. end
  686. if v.BackgroundTransparency ~= 1 then
  687. totween.BackgroundTransparency = 0
  688. end
  689. TransparencyTweens[#TransparencyTweens + 1] = Tween(v, 0.5, totween)
  690. end
  691. end
  692. main:TweenSize(UDim2.new(0,400,0,300),nil,nil,nil,true)
  693. end)
  694.  
  695. --AutoRob stuff--
  696. local DuffelBag = game:GetService("MarketplaceService"):PlayerOwnsAsset(plr, 2219040)
  697. local BankAutoRob = {
  698. {
  699. Pos = {51, 18.06, 856.5},
  700. Yield = 2,
  701. Status = "Starting the robbery"
  702. },
  703. {
  704. Pos = {29.71, 0.73, 815.25},
  705. Yield = 15,
  706. Status = "Opening the vault"
  707. },
  708. {
  709. Pos = {18.37, 0.7659, 822.25},
  710. Yield = DuffelBag and 50 or 25,
  711. Status = "Collecting $$$"
  712. },
  713. {
  714. Pos = {10, 18, 784},
  715. Status = "Finishing the robbery"
  716. }
  717. }
  718.  
  719. local function Tp(...)
  720. local char = plr.Character
  721. for i=1,2 do
  722. wait()
  723. char:WaitForChild'HumanoidRootPart'.CFrame = CFrame.new(...)
  724. end
  725. end
  726.  
  727. function RobTheBank()
  728. for _,v in pairs(BankAutoRob) do
  729. Tp(unpack(v.Pos))
  730. wait(v.Yield)
  731. end
  732. end
  733.  
  734. --Bank notification--
  735. pcall(function()
  736. local Bank = workspace:FindFirstChild("Banks"):GetChildren()[1]
  737. local Info = Bank.Extra.Sign.Decal
  738. Info:GetPropertyChangedSignal("Transparency"):Connect(function()
  739. if Info.Transparency ~= 0 then
  740. BankStatus.Text = "Open"
  741. BankStatus.TextColor3 = Color3.new(0,1,0)
  742. BankAutoRobBtn.BackgroundColor3 = Color3.new(0,1,0)
  743. local cb = Instance.new("BindableFunction")
  744. cb.OnInvoke = function(arg)
  745. if arg == "Teleport" then
  746. JailbreakTp(10, 18, 784)
  747. elseif arg == "AutoRob" then
  748. RobTheBank()
  749. end
  750. end
  751. game:GetService("StarterGui"):SetCore("SendNotification",{
  752. Title = "Bank is ready!",
  753. Text = "Bank is ready!",
  754. Duration = 15,
  755. Button1 = "Dismiss",
  756. Button2 = (Vector3.new(Info.Parent.Position.X,0,Info.Parent.Position.Z) - Vector3.new(plr.Character.HumanoidRootPart.Position.X,0,plr.Character.HumanoidRootPart.Position.Z)).magnitude < 150 and "AutoRob" or "Teleport",
  757. Callback = cb
  758. })
  759. else
  760. BankStatus.Text = "Closed"
  761. BankStatus.TextColor3 = Color3.new(1,0,0)
  762. BankAutoRobBtn.BackgroundColor3 = Color3.new(1,0,0)
  763. end
  764. end)
  765. BankStatus.Text = Info.Transparency == 0 and "Closed" or "Open"
  766. BankStatus.TextColor3 = Info.Transparency == 0 and Color3.new(1,0,0) or Color3.new(0,1,0)
  767. BankAutoRobBtn.BackgroundColor3 = Info.Transparency == 0 and Color3.new(1,0,0) or Color3.new(0,1,0)
  768. end)
  769. --Jewelry notification--
  770. pcall(function()
  771. local Jewelry = workspace:FindFirstChild("Jewelrys"):GetChildren()[1]
  772. local Info = Jewelry.Extra.Sign.Decal
  773. Info:GetPropertyChangedSignal("Transparency"):Connect(function()
  774. if Info.Transparency ~= 0 then
  775. JewelryStatus.Text = "Open"
  776. JewelryStatus.TextColor3 = Color3.new(0,1,0)
  777. BankStatus.TextColor3 = Color3.new(0,1,0)
  778. local cb = Instance.new("BindableFunction")
  779. cb.OnInvoke = function(arg)
  780. if arg == "Teleport" then
  781. JailbreakTp(142, 18, 1365)
  782. end
  783. end
  784. game:GetService("StarterGui"):SetCore("SendNotification",{
  785. Title = "Jewelry is ready!",
  786. Text = "Jewelry is ready!",
  787. Duration = 15,
  788. Button1 = "Dismiss",
  789. Button2 = "Teleport",
  790. Callback = cb
  791. })
  792. else
  793. JewelryStatus.Text = "Closed"
  794. JewelryStatus.TextColor3 = Color3.new(1,0,0)
  795. end
  796. end)
  797. JewelryStatus.Text = Info.Transparency == 0 and "Closed" or "Open"
  798. JewelryStatus.TextColor3 = Info.Transparency == 0 and Color3.new(1,0,0) or Color3.new(0,1,0)
  799. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement