PG_MCVN

farm money VCS

Dec 14th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. local part1=Instance.new("Part", workspace);
  2. part1.Position = Vector3.new(16000, 200, -16000)
  3. part1.Anchored = true
  4. part1.Size = Vector3.new(2000,5,2000)
  5.  
  6. local part2=Instance.new("Part", workspace);
  7. part2.Position = Vector3.new(-16000, 200, 16000)
  8. part2.Anchored = true
  9. part2.Size = Vector3.new(2000,5,2000)
  10.  
  11. local waitTime = 0.1
  12. local found = false
  13. local go = true
  14.  
  15. Statue = false
  16. m = game.Players.LocalPlayer:GetMouse()
  17. m.KeyDown:connect(function(key)
  18. if key == "b" then
  19. if Statue == true then Statue = false
  20. elseif
  21. Statue == false then Statue = true
  22.  
  23. function findVehicle()
  24. while not found do
  25. local vehicles = Workspace.Vehicles:getChildren()
  26. for i=1,#vehicles do
  27. if vehicles[i]:findFirstChild'owner' then
  28. if vehicles[i].owner.Value == game:GetService'Players'.LocalPlayer.Name then
  29. found = true
  30. vehicle = vehicles[i]
  31. elseif vehicles[i + 1] == nil and not found then
  32. end
  33. end
  34. end
  35. wait(1)
  36. end
  37. wait(2)
  38. vehicle.PrimaryPart = vehicle.Chassis.VehicleSeat
  39. end
  40.  
  41. function farm()
  42. while wait(waitTime) do
  43. if Statue == true then
  44. vehicle:SetPrimaryPartCFrame(CFrame.new(16000, 203, -16000))
  45. wait(0.1)
  46. vehicle:SetPrimaryPartCFrame(CFrame.new(-16000, 203, 16000))
  47. game:GetService'VirtualUser':SetKeyUp("w")
  48. game:GetService'VirtualUser':SetKeyDown("w")
  49. end
  50. end
  51. end
  52. findVehicle()
  53. while go do
  54. if not pcall(farm()) then
  55. found = false
  56. findVehicle()
  57. end
  58. end
  59. end
  60. end
  61. end)
Add Comment
Please, Sign In to add comment