Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game:GetService("Players").LocalPlayer
- local TpMethod = 2
- function JailbreakTp(...)
- getfenv()["TpMethod" .. TpMethod](...)
- end
- function TpMethod1(...)
- local char = plr.Character
- local root = char.HumanoidRootPart
- local args = {...}
- for i=0,1,0.05 do
- wait()
- root.CFrame = root.CFrame:lerp(CFrame.new(unpack(args,1,3)), i)
- end
- end
- function TpMethod2(...)
- local args = {...}
- local char = plr.Character
- local target = Vector3.new(unpack(args,1,3))
- local dist = (char:WaitForChild"HumanoidRootPart".Position - target).magnitude
- dist = math.floor(dist / 100) + 1
- for i=0,dist * 4 do
- wait()
- char:MoveTo(Vector3.new(...))
- end
- if args[#args] == true then
- wait()
- char:WaitForChild'HumanoidRootPart'.CFrame = CFrame.new(unpack(args,1,#args - 1))
- end
- end
- function Tween(obj, t, properties)
- local TweenService = game:GetService("TweenService")
- local tweenInfo = TweenInfo.new(t,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0)
- local tween = TweenService:Create(obj,tweenInfo,properties)
- tween:Play()
- return tween
- end
- local Bank = workspace:FindFirstChild("Banks"):GetChildren()[1]
- local Info = Bank.Extra.Sign
- if Info.Decal.Transparency == 0 then
- game:GetService("StarterGui"):SetCore("SendNotification",{
- Title = "Bank is closed!",
- Text = "You need to wait for the bank to open!",
- Duration = 7,
- Button1 = "Dismiss",
- })
- return
- end
- local bankpos = Vector3.new(Info.Position.X,0,Info.Position.Z)
- local root = plr.Character.HumanoidRootPart
- local plrpos = Vector3.new(root.Position.X,0,root.Position.Z)
- if (bankpos - plrpos).magnitude > 150 then
- local cb = Instance.new"BindableFunction"
- cb.OnInvoke = function(arg)
- if arg == "Teleport" then
- JailbreakTp(10, 18, 784)
- end
- end
- game:GetService("StarterGui"):SetCore("SendNotification",{
- Title = "You are too far!",
- Text = "You need to get closer to the bank (use tp)",
- Duration = 7,
- Button1 = "Dismiss",
- Button2 = "Teleport",
- Callback = cb
- })
- else
- RobTheBank()
- end
Add Comment
Please, Sign In to add comment