8rcj

Drive World td copy

May 22nd, 2023 (edited)
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. local s, Client = game, game.Players.LocalPlayer
  2. local GC = getconnections or get_signal_cons -- synx / krnl support
  3.  
  4. if GC then
  5. for _,v in pairs(GC(Client.Idled)) do
  6. if v['Disable'] then
  7. v['Disable'](v)
  8. elseif v['Disconnect'] then
  9. v['Disconnect'](v)
  10. end
  11. end
  12. end
  13.  
  14. s.StarterGui:SetCore('SendNotification',{
  15. Title = 'Autofarm',
  16. Text = 'By Mike O'Hearn',
  17. Icon = 'rbxassetid://13521866477',
  18. Duration = math.huge
  19. })
  20.  
  21. while task.wait() and farmTrailer do
  22. pcall(function()
  23. if not Client.PlayerGui.Interface.Score.Frame.Jobs.Visible then
  24. s.ReplicatedStorage.Systems.Jobs.StartJob:InvokeServer('TrailerDelivery', 'Dealership');
  25. task.wait(waitTime)
  26. elseif Client.PlayerGui.Interface.Score.Frame.Jobs.Visible then
  27. for _,v in pairs(workspace.Cars:GetDescendants()) do
  28. if v.Name == 'Owner' and v.Value == Client and Client:DistanceFromCharacter(s.Workspace.CompletionRegion.Primary.Position) > 20 then
  29. workspace.CompletionRegion.Primary.Size = Vector3.new(100, 0.5, 350)
  30. v.Parent:SetPrimaryPartCFrame(workspace.CompletionRegion.Primary.CFrame * CFrame.new(0, 3, -20))
  31. task.wait(.33)
  32. end
  33. end
  34.  
  35. if Client.PlayerGui.Interface.JobComplete.Enabled then
  36. s.ReplicatedStorage.Systems.Jobs.CashBankedEarnings:FireServer()
  37. Client.PlayerGui.Interface.JobComplete.Enabled = false;
  38. s.Lighting.BackgroundBlur.Enabled = false;
  39. end
  40. end
  41. end)
  42. end
  43.  
  44. while task.wait() and farmFood do
  45. pcall(function()
  46. if not Client.PlayerGui.Interface.Score.Frame.Jobs.Visible then
  47. local randomNumber = math.random(1, 7)
  48. for i,v in pairs(workspace.Jobs.FoodDelivery.StartPoints:GetChildren()) do
  49. if i == randomNumber then
  50. s.ReplicatedStorage.Systems.Jobs.StartJob:InvokeServer('FoodDelivery', v.Name)
  51. end
  52. end
  53. task.wait(waitTime)
  54. elseif Client.PlayerGui.Interface.Score.Frame.Jobs.Visible then
  55. for _,v in pairs(workspace.Cars:GetDescendants()) do
  56. if v.Name == 'Owner' and v.Value == Client and Client:DistanceFromCharacter(s.Workspace.CompletionRegion.Primary.Position) > 20 then
  57. workspace.CompletionRegion.Primary.Size = Vector3.new(100, 0.5, 350)
  58. v.Parent:SetPrimaryPartCFrame(workspace.CompletionRegion.Primary.CFrame * CFrame.new(0, 3, -20))
  59. task.wait(.33)
  60. end
  61. end
  62.  
  63. if Client.PlayerGui.Interface.JobComplete.Enabled then
  64. s.ReplicatedStorage.Systems.Jobs.CashBankedEarnings:FireServer()
  65. Client.PlayerGui.Interface.JobComplete.Enabled = false;
  66. s.Lighting.BackgroundBlur.Enabled = false;
  67. end
  68. end
  69. end)
  70. end
Advertisement
Add Comment
Please, Sign In to add comment