Advertisement
Guest User

qqizxy car dealership tycoon **this is not my script**

a guest
May 14th, 2022
4,701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. local vu = game:GetService("VirtualUser")
  2. game:GetService("Players").LocalPlayer.Idled:connect(function()
  3. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  4. wait(1)
  5. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  6. end)
  7.  
  8.  
  9. getgenv().Farm = true
  10.  
  11. local RaceLocation = Vector3.new(2198.93701, 638.532166, 1307.18494, -4.76837158e-05, -0.996190667, -0.0872024298, -1, 4.76837158e-05, 2.08243728e-06, 2.08243728e-06, 0.0872024298, -0.996190667)
  12.  
  13.  
  14.  
  15. local IsA = game.IsA
  16. local function GetFromPlayerCar()
  17. for I,V in pairs(game:GetService("Workspace").Cars:GetDescendants()) do
  18. if V.Name == "Owner" then
  19. if V.Value == game.Players.LocalPlayer.Name then
  20. return V.Parent.Parent
  21. end
  22. end
  23. end
  24. return "Not Find Car"
  25. end
  26.  
  27. local function TpCar(Pos)
  28. for I,V in pairs(GetFromPlayerCar():GetDescendants()) do
  29. if IsA(V,"BasePart") then
  30. if getgenv().Farm == true then
  31. local Tween = game:GetService("TweenService")
  32. Tween:create(V,TweenInfo.new(1),{CFrame = CFrame.new(Pos)}):Play()
  33. end
  34. end
  35. end
  36. end
  37.  
  38.  
  39. local function RaceFarm()
  40. for I,V in pairs(game:GetService("Workspace").Races.Race.Checkpoints:GetDescendants()) do
  41. if V.Name == "IsActive" then
  42. if game:GetService("Workspace").Races.Race.Script.RaceProgress.Value == true then
  43. if game:GetService("Workspace").Races.Race.GoalCheckpoint.IsActive.Value == true then
  44. TpCar(V.Parent.Parent.Parent:FindFirstChild("GoalCheckpoint").GoalCheckpoint.Position + Vector3.new(0,-50,0))
  45. elseif V.Value == true then
  46. TpCar(V.Parent:FindFirstChild("Checkpoint").Position + Vector3.new(0,-50,0))
  47. end
  48. end
  49. end
  50. end
  51. end
  52.  
  53.  
  54. local function StartRace()
  55. for I,V in pairs(game:GetService("Workspace").Races.Race.Checkpoints:GetDescendants()) do
  56. if V.Name == "IsActive" then
  57. if V.Value == true or game:GetService("Workspace").Races.Race.GoalCheckpoint.IsActive.Value == true then
  58. return true
  59. end
  60. end
  61. end
  62. return false
  63. end
  64.  
  65.  
  66. while getgenv().Farm == true do wait()
  67. for I,V in pairs(GetFromPlayerCar():GetDescendants()) do
  68. if V.Name == "Engine" and IsA(V,"BasePart") then
  69. TpCar(RaceLocation)
  70. workspace.Races.RaceHandler.StartLobby:FireServer("Race")
  71. local args = {
  72. [1] = "5",
  73. [2] = "Vote"
  74. }
  75. workspace.Races.Race.Script.Vote:FireServer(unpack(args))
  76. if StartRace() == true then
  77. RaceFarm()
  78. end
  79. end
  80. end
  81. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement