Nova355killer

Bank open?

Nov 11th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2.  
  3. local TpMethod = 2
  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 Bank = workspace:FindFirstChild("Banks"):GetChildren()[1]
  44. local Info = Bank.Extra.Sign
  45. if Info.Decal.Transparency == 0 then
  46. game:GetService("StarterGui"):SetCore("SendNotification",{
  47. Title = "Bank is closed!",
  48. Text = "You need to wait for the bank to open!",
  49. Duration = 7,
  50. Button1 = "Dismiss",
  51. })
  52. return
  53. end
  54. local bankpos = Vector3.new(Info.Position.X,0,Info.Position.Z)
  55. local root = plr.Character.HumanoidRootPart
  56. local plrpos = Vector3.new(root.Position.X,0,root.Position.Z)
  57.  
  58. if (bankpos - plrpos).magnitude > 150 then
  59. local cb = Instance.new"BindableFunction"
  60.  
  61. cb.OnInvoke = function(arg)
  62. if arg == "Teleport" then
  63. JailbreakTp(10, 18, 784)
  64. end
  65. end
  66.  
  67. game:GetService("StarterGui"):SetCore("SendNotification",{
  68. Title = "You are too far!",
  69. Text = "You need to get closer to the bank (use tp)",
  70. Duration = 7,
  71. Button1 = "Dismiss",
  72. Button2 = "Teleport",
  73. Callback = cb
  74. })
  75. else
  76. RobTheBank()
  77. end
Add Comment
Please, Sign In to add comment