Advertisement
CAT_SUS

BF_Tp_Bypass.lua

Jul 15th, 2023 (edited)
6,916
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.00 KB | None | 0 0
  1. --[[Blox fruit TP BY pass]]
  2.  
  3. local idks = {}
  4. local TweenService = game:GetService('TweenService')
  5.  
  6. local function Press()
  7.     pcall(function()
  8.         game:GetService("VirtualInputManager"):SendKeyEvent(true, tostring("Space"), false, game)
  9.         task.wait()
  10.         game:GetService("VirtualInputManager"):SendKeyEvent(false, tostring("Space"), false, game)
  11.     end)
  12. end
  13.  
  14.  
  15. function idks:TP<bypass...>(target,confix : {distancetp : number,timetp : number}):(true | boolean | any | unknown)
  16.     confix.timetp = confix.timetp or 255
  17.     confix.distancetp = confix.distancetp or 50
  18.     local maxdistnace
  19.    
  20.     if typeof(target) == "CFrame" then
  21.         target = target.Position
  22.     end
  23.  
  24.     if typeof(target) ~= "Vector3"  then
  25.         return target
  26.     end
  27.  
  28.     _G.Point = target
  29.     local Character = game:GetService('Players').LocalPlayer.Character
  30.     local rootpart = Character:FindFirstChild('HumanoidRootPart') or Character.PrimaryPart
  31.     local distance = (target - rootpart.Position).Magnitude
  32.     local ttween = TweenService:Create(rootpart,TweenInfo.new(distance / confix.timetp,Enum.EasingStyle.Linear),{CFrame = CFrame.new(target)})
  33.     if distance <= confix.distancetp then
  34.         rootpart.CFrame = CFrame.new(target)
  35.         return true
  36.     end
  37.     _G.TWEEN_INFO_LOG = ttween
  38.     pcall(function()
  39.         ttween:Play()
  40.         repeat task.wait(0.2)
  41.             distance = (target - rootpart.Position).Magnitude
  42.             pcall(function()
  43.                 local Humanoid = Character:FindFirstChildWhichIsA('Humanoid')
  44.                 if Humanoid.Sit then
  45.                     Press()
  46.                 end
  47.             end)
  48.             pcall(function()
  49.                 if ttween then
  50.                     ttween:Pause()
  51.                 end
  52.                 local distance = (target - rootpart.Position).Magnitude
  53.                 ttween = TweenService:Create(rootpart,TweenInfo.new(distance / confix.timetp,Enum.EasingStyle.Linear),{CFrame = CFrame.new(target)})
  54.                 ttween:Play()
  55.             end)
  56.         until distance <= confix.distancetp or _G.Point ~= target
  57.     end)
  58.     ttween:Pause()
  59.     if _G.Point ~= target then
  60.         return
  61.     end
  62.     TweenService:Create(rootpart,TweenInfo.new(0.3),{CFrame = CFrame.new(target)}):Play()
  63.     return true
  64. end
  65.  
  66. return idks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement