Advertisement
Gerard_games

Car crushers 2 auto farm (Not auto next car)

Jan 26th, 2019
7,196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. _G.Enabled = true --"true" = on "false" = off (Duh)
  2.  
  3. local info = game.ReplicatedStorage.VehicleInformation
  4. for i, v in pairs(info:GetChildren()) do
  5. if v.GroupOnly.Value then
  6. print("Deleted: " .. v.Name .. " (Group Only)")
  7. v:Destroy()
  8. elseif
  9. v.VipOnly.Value then
  10. print("Deleted: " .. v.Name .. " (VIP Only)")
  11. v:Destroy()
  12. end
  13. end
  14.  
  15. local info = game.ReplicatedStorage.VehicleInformation
  16. local plr = game.Players.LocalPlayer
  17. local money = plr.Money.Value
  18.  
  19. local bestName, bestPrice = nil, 0
  20. for i, car in pairs(info:GetChildren()) do
  21. local name = car.Name
  22. local price = car.Price.Value
  23. if price > bestPrice and price <= money then
  24. bestName, bestPrice = name, price
  25. end
  26. end
  27.  
  28. while _G.Enabled do
  29. _G.VehicleName = bestName
  30. wait()
  31. local Arguments = {
  32. [1] = "Save",
  33. [2] = {
  34. ["BodyColor"] = "Institutional white",
  35. ["BodyMaterial"] = "Platinum"
  36. },
  37. [3] = _G.VehicleName
  38. }
  39. game.ReplicatedStorage.rF['LoadSaveCustoms']:InvokeServer(unpack(Arguments))
  40. game:GetService("ReplicatedStorage").rF.SpawnVehicle:InvokeServer(_G.VehicleName)
  41. for i=1,10 do
  42. wait(0.5)
  43. game.Workspace["All crushers"]["Stair Fall"].Wall.CFrame = CFrame.new(0,900,0)
  44. game.Workspace["All crushers"]["Stair Fall"].Wall.Size = Vector3.new(10000,1,10000)
  45. game.Workspace["All crushers"]["Stair Fall"].Wall.CanCollide = false
  46. game.Workspace.CarCollection[plr.Name].Car:MoveTo(Vector3.new(0,910,0))
  47. end
  48. end
  49. print("Huge Thanks To byte-chanβ„’#5250 <3 ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement