Advertisement
0lf3_

Brits VIP Party (AUTOFARM COINS)

Feb 11th, 2022
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. _G.Toggle = true -- Toggle true/false in between getting better vehicles...
  2.  
  3. -- // Descendants Variables
  4. local GetLP = game:GetService("Players").LocalPlayer
  5. local GetWP = game:GetService("Workspace")
  6. local GetRS = game:GetService("ReplicatedStorage")
  7.  
  8. -- // Check if we're in a vehicle
  9. function FindVehicle()
  10. for i,v in pairs(GetLP.Character:GetChildren()) do
  11. if v:IsA("Accessory") then
  12. if v:FindFirstChild("__comm__") then
  13. return v.Parent
  14. end
  15. end
  16. end
  17. end
  18.  
  19. -- // Functioning
  20. function collectCoins()
  21. if _G.Toggle then
  22. if FindVehicle() == nil then
  23. GetLP.Character.HumanoidRootPart.CFrame = CFrame.new(-193, 25, 168)
  24. task.wait(1)
  25. GetRS.Packages._Index:FindFirstChild("sleitnick_knit@1.0.9").knit.Services.VehicleService.__comm__.RE.GiveVehicle:FireServer()
  26. end
  27. for i,v in pairs(GetWP:GetChildren()) do
  28. if v:IsA("MeshPart") and v.Transparency == 0 and v["__comm__"] and v.Position.Y > -118 and _G.Toggle then
  29. getgenv().Farming = true
  30. GetLP.Character:WaitForChild("HumanoidRootPart").CFrame = v.CFrame
  31. task.wait()
  32. end
  33. end
  34. getgenv().Farming = false
  35. end
  36. end
  37.  
  38. -- // Start Farm
  39. collectCoins()
  40.  
  41. -- // Connecting collectCoins on CharacterAdded
  42. GetLP.CharacterAdded:Connect(function(char)
  43. char:WaitForChild("HumanoidRootPart")
  44. collectCoins()
  45. end)
  46.  
  47. -- // Right after the farming stops, Continue it again.
  48. game.RunService.RenderStepped:Connect(function()
  49. if not getgenv().Farming then
  50. collectCoins()
  51. end
  52. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement