Artani

E

Dec 29th, 2023
2,413
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.27 KB | None | 0 0
  1.         --Vars
  2.         LocalPlayer = game:GetService("Players").LocalPlayer
  3.         Camera = workspace.CurrentCamera
  4.         VirtualUser = game:GetService("VirtualUser")
  5.         MarketplaceService = game:GetService("MarketplaceService")
  6.        
  7.         --Get Current Vehicle
  8.         function GetCurrentVehicle()
  9.             return LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") and LocalPlayer.Character.Humanoid.SeatPart and LocalPlayer.Character.Humanoid.SeatPart.Parent
  10.         end
  11.        
  12.         --Regular TP
  13.         function TP(cframe)
  14.             GetCurrentVehicle():SetPrimaryPartCFrame(cframe)
  15.         end
  16.        
  17.         --Velocity TP
  18.         function VelocityTP(cframe)
  19.             TeleportSpeed = math.random(600, 600)
  20.             Car = GetCurrentVehicle()
  21.             local BodyGyro = Instance.new("BodyGyro", Car.PrimaryPart)
  22.             BodyGyro.P = 5000
  23.             BodyGyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  24.             BodyGyro.CFrame = Car.PrimaryPart.CFrame
  25.             local BodyVelocity = Instance.new("BodyVelocity", Car.PrimaryPart)
  26.             BodyVelocity.MaxForce = Vector3.new(9e9, 9e9, 9e9)
  27.             BodyVelocity.Velocity = CFrame.new(Car.PrimaryPart.Position, cframe.p).LookVector * TeleportSpeed
  28.             wait((Car.PrimaryPart.Position - cframe.p).Magnitude / TeleportSpeed)
  29.             BodyVelocity.Velocity = Vector3.new()
  30.             wait(0.1)
  31.             BodyVelocity:Destroy()
  32.             BodyGyro:Destroy()
  33.         end
  34.        
  35.         --Auto Farm
  36.         StartPosition = CFrame.new(Vector3.new(4940.19775, 66.0195084, -1933.99927, 0.343969434, -0.00796990748, -0.938947022, 0.00281227613, 0.999968231, -0.00745762791, 0.938976645, -7.53822824e-05, 0.343980938), Vector3.new())
  37.         EndPosition = CFrame.new(Vector3.new(1827.3407, 66.0150146, -658.946655, -0.366112858, 0.00818905979, 0.930534422, 0.00240773871, 0.999966264, -0.00785277691, -0.930567324, -0.000634518801, -0.366120219), Vector3.new())
  38.         AutoFarmFunc = coroutine.create(function()
  39.             while wait() do
  40.                 if not AutoFarm then
  41.                     AutoFarmRunning = false
  42.                     coroutine.yield()
  43.                 end
  44.                 AutoFarmRunning = true
  45.                 pcall(function()
  46.                     if not GetCurrentVehicle() and tick() - (LastNotif or 0) > 5 then
  47.                         LastNotif = tick()
  48.                     else
  49.                         TP(StartPosition + (TouchTheRoad and Vector3.new(0,0,0) or Vector3.new(0, 0, 0)))
  50.                         VelocityTP(EndPosition + (TouchTheRoad and Vector3.new() or Vector3.new(0, 0, 0)))
  51.                         TP(EndPosition + (TouchTheRoad and Vector3.new() or Vector3.new(0, 0, 0)))
  52.                         VelocityTP(StartPosition + (TouchTheRoad and Vector3.new() or Vector3.new(0, 0, 0)))
  53.                     end
  54.                 end)
  55.             end
  56.         end)
  57.        
  58.         --Anti AFK
  59.         AntiAFK = true
  60.         LocalPlayer.Idled:Connect(function()
  61.             VirtualUser:CaptureController()
  62.             VirtualUser:ClickButton2(Vector2.new(), Camera.CFrame)
  63.         end)
  64.        
  65.         local lib = loadstring(game:HttpGet("https://raw.githubusercontent.com/Simak90/pfsetcetc/main/fluxed.lua"))() -- UI Library
  66.                 local win = lib:Window("MaxHub", "Signed By JMaxeyy", Color3.fromRGB(255, 0, 0), _G.closeBind) -- done mess with
  67.            
  68.                 ---------Spins--------------------------------
  69.                 local Visual = win:Tab("Farm Section", "http://www.roblox.com/asset/?id=6023426915")
  70.                 Visual:Label("Farms")
  71.                 Visual:Line()
  72.                
  73.                 Visual:Toggle("Auto Farm", "Activates farm. Get in car to start",false, function(value)
  74.                     AutoFarm = value
  75.                         if value and not AutoFarmRunning then
  76.                             coroutine.resume(AutoFarmFunc)
  77.                         end
  78.                 end)
  79.                 Visual:Toggle("TouchTheRoad", "doesnt work for some cars",false, function(value)
  80.                     TouchTheRoad = value
  81.                 end)
  82.                 Visual:Toggle("AntiAFK", "simulates keypressing",false, function(value)
  83.                     AntiAFK = value
  84.                 end)
Comments
Add Comment
Please, Sign In to add comment