JacobRoblox

Untitled

Feb 23rd, 2021
1,309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.90 KB | None | 0 0
  1. local VehicleSimultor = Instance.new("ScreenGui")
  2. local VSV1 = Instance.new("Frame")
  3. local Title = Instance.new("TextLabel")
  4. local Title_2 = Instance.new("TextLabel")
  5. local Speed = Instance.new("TextButton")
  6. local SpeedBind = Instance.new("TextBox")
  7. local Close = Instance.new("TextButton")
  8. local NitroSpeed = Instance.new("TextButton")
  9. local NST = Instance.new("TextBox")
  10. local NitroForce = Instance.new("TextButton")
  11. local NFT = Instance.new("TextBox")
  12. local JumpHeight = Instance.new("TextButton")
  13. local JHT = Instance.new("TextBox")
  14. local ScrollingFrame = Instance.new("ScrollingFrame")
  15. local TptoCrate = Instance.new("TextButton")
  16. local TeleportLT = Instance.new("TextButton")
  17. local TeleportToCar = Instance.new("TextButton")
  18. local CrateESP = Instance.new("TextButton")
  19. local GiveAllPerks = Instance.new("TextButton")
  20. local SuperCar = Instance.new("TextButton")
  21. local InfiniteNitro = Instance.new("TextButton")
  22. local AutoFarm = Instance.new("TextButton")
  23. local Torque = Instance.new("TextButton")
  24. local Torquet = Instance.new("TextBox")
  25. local SteeringForce = Instance.new("TextButton")
  26. local SFT = Instance.new("TextBox")
  27. local Open = Instance.new("TextButton")
  28. --Properties:
  29. VehicleSimultor.Name = "VehicleSimultor"
  30. VehicleSimultor.Parent = game.CoreGui
  31.  
  32. VSV1.Name = "VSV1"
  33. VSV1.Parent = VehicleSimultor
  34. VSV1.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
  35. VSV1.BorderSizePixel = 0
  36. VSV1.Position = UDim2.new(0.341240883, 0, 0.10428305, 0)
  37. VSV1.Size = UDim2.new(0, 369, 0, 407)
  38. VSV1.Active = true
  39. VSV1.Draggable = true
  40.  
  41. Title.Name = "Title"
  42. Title.Parent = VSV1
  43. Title.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  44. Title.BorderSizePixel = 0
  45. Title.Position = UDim2.new(-3.83744082e-05, 0, -0.0101027992, 0)
  46. Title.Size = UDim2.new(0, 369, 0, 36)
  47. Title.Font = Enum.Font.SourceSansLight
  48. Title.Text = "Vehicle Simultor Gui"
  49. Title.TextColor3 = Color3.new(1, 1, 1)
  50. Title.TextSize = 25
  51.  
  52. Title_2.Name = "Title"
  53. Title_2.Parent = VSV1
  54. Title_2.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  55. Title_2.BorderSizePixel = 0
  56. Title_2.Position = UDim2.new(-3.83744082e-05, 0, 0.0778456926, 0)
  57. Title_2.Size = UDim2.new(0, 369, 0, 10)
  58. Title_2.Font = Enum.Font.SourceSansLight
  59. Title_2.Text = ""
  60. Title_2.TextColor3 = Color3.new(1, 1, 1)
  61. Title_2.TextSize = 25
  62.  
  63. Speed.Name = "Speed"
  64. Speed.Parent = VSV1
  65. Speed.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  66. Speed.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  67. Speed.BorderSizePixel = 3
  68. Speed.Position = UDim2.new(0.0415850431, 0, 0.11448466, 0)
  69. Speed.Size = UDim2.new(0, 166, 0, 25)
  70. Speed.Font = Enum.Font.SourceSans
  71. Speed.Text = "Max Speed"
  72. Speed.TextColor3 = Color3.new(1, 1, 1)
  73. Speed.TextSize = 25
  74.  
  75. SpeedBind.Name = "SpeedBind"
  76. SpeedBind.Parent = Speed
  77. SpeedBind.BackgroundColor3 = Color3.new(1, 1, 1)
  78. SpeedBind.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  79. SpeedBind.BorderSizePixel = 3
  80. SpeedBind.Position = UDim2.new(1.0793581, 0, -0.00314961374, 0)
  81. SpeedBind.Size = UDim2.new(0, 155, 0, 25)
  82. SpeedBind.Font = Enum.Font.SourceSans
  83. SpeedBind.PlaceholderText = "Amount"
  84. SpeedBind.Text = ""
  85. SpeedBind.TextColor3 = Color3.new(0, 0, 0)
  86. SpeedBind.TextSize = 25
  87.  
  88. Close.Name = "Close"
  89. Close.Parent = VSV1
  90. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  91. Close.BackgroundTransparency = 1
  92. Close.BorderSizePixel = 0
  93. Close.Position = UDim2.new(0.91011405, 0, 0, 0)
  94. Close.Size = UDim2.new(0, 33, 0, 30)
  95. Close.Font = Enum.Font.SourceSansLight
  96. Close.Text = "X"
  97. Close.TextColor3 = Color3.new(1, 1, 1)
  98. Close.TextSize = 30
  99. Close.TextWrapped = true
  100.  
  101. NitroSpeed.Name = "NitroSpeed"
  102. NitroSpeed.Parent = VSV1
  103. NitroSpeed.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  104. NitroSpeed.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  105. NitroSpeed.BorderSizePixel = 3
  106. NitroSpeed.Position = UDim2.new(0.0415850431, 0, 0.280174315, 0)
  107. NitroSpeed.Size = UDim2.new(0, 166, 0, 25)
  108. NitroSpeed.Font = Enum.Font.SourceSans
  109. NitroSpeed.Text = "Nitro Max Speed"
  110. NitroSpeed.TextColor3 = Color3.new(1, 1, 1)
  111. NitroSpeed.TextSize = 25
  112.  
  113. NST.Name = "NST"
  114. NST.Parent = NitroSpeed
  115. NST.BackgroundColor3 = Color3.new(1, 1, 1)
  116. NST.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  117. NST.BorderSizePixel = 3
  118. NST.Position = UDim2.new(1.0793581, 0, -0.00629922748, 0)
  119. NST.Size = UDim2.new(0, 155, 0, 25)
  120. NST.Font = Enum.Font.SourceSans
  121. NST.PlaceholderText = "Amount"
  122. NST.Text = ""
  123. NST.TextColor3 = Color3.new(0, 0, 0)
  124. NST.TextSize = 25
  125.  
  126. NitroForce.Name = "NitroForce"
  127. NitroForce.Parent = VSV1
  128. NitroForce.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  129. NitroForce.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  130. NitroForce.BorderSizePixel = 3
  131. NitroForce.Position = UDim2.new(0.0415850468, 0, 0.362042129, 0)
  132. NitroForce.Size = UDim2.new(0, 166, 0, 25)
  133. NitroForce.Font = Enum.Font.SourceSans
  134. NitroForce.Text = "Nitro Force"
  135. NitroForce.TextColor3 = Color3.new(1, 1, 1)
  136. NitroForce.TextSize = 25
  137.  
  138. NFT.Name = "NFT"
  139. NFT.Parent = NitroForce
  140. NFT.BackgroundColor3 = Color3.new(1, 1, 1)
  141. NFT.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  142. NFT.BorderSizePixel = 3
  143. NFT.Position = UDim2.new(1.07935798, 0, 0, 0)
  144. NFT.Size = UDim2.new(0, 155, 0, 25)
  145. NFT.Font = Enum.Font.SourceSans
  146. NFT.PlaceholderText = "Amount"
  147. NFT.Text = ""
  148. NFT.TextColor3 = Color3.new(0, 0, 0)
  149. NFT.TextSize = 25
  150.  
  151. JumpHeight.Name = "JumpHeight"
  152. JumpHeight.Parent = VSV1
  153. JumpHeight.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  154. JumpHeight.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  155. JumpHeight.BorderSizePixel = 3
  156. JumpHeight.Position = UDim2.new(0.0419999994, 0, 0.443515956, 0)
  157. JumpHeight.Size = UDim2.new(0, 166, 0, 25)
  158. JumpHeight.Font = Enum.Font.SourceSans
  159. JumpHeight.Text = "Jump Height"
  160. JumpHeight.TextColor3 = Color3.new(1, 1, 1)
  161. JumpHeight.TextSize = 25
  162.  
  163. JHT.Name = "JHT"
  164. JHT.Parent = JumpHeight
  165. JHT.BackgroundColor3 = Color3.new(1, 1, 1)
  166. JHT.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  167. JHT.BorderSizePixel = 3
  168. JHT.Position = UDim2.new(1.0793581, 0, -0.00629922748, 0)
  169. JHT.Size = UDim2.new(0, 155, 0, 25)
  170. JHT.Font = Enum.Font.SourceSans
  171. JHT.PlaceholderText = "Amount"
  172. JHT.Text = ""
  173. JHT.TextColor3 = Color3.new(0, 0, 0)
  174. JHT.TextSize = 25
  175.  
  176. ScrollingFrame.Parent = VSV1
  177. ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  178. ScrollingFrame.BackgroundTransparency = 1
  179. ScrollingFrame.Position = UDim2.new(0, 0, 0.601494849, 0)
  180. ScrollingFrame.Size = UDim2.new(0, 369, 0, 156)
  181. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0.469999999, 0)
  182.  
  183. TptoCrate.Name = "TptoCrate"
  184. TptoCrate.Parent = ScrollingFrame
  185. TptoCrate.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  186. TptoCrate.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  187. TptoCrate.BorderSizePixel = 3
  188. TptoCrate.Position = UDim2.new(0.490514904, 0, 0.270000011, 0)
  189. TptoCrate.Size = UDim2.new(0, 167, 0, 41)
  190. TptoCrate.Font = Enum.Font.SourceSans
  191. TptoCrate.Text = "TP to Crates"
  192. TptoCrate.TextColor3 = Color3.new(1, 1, 1)
  193. TptoCrate.TextSize = 20
  194.  
  195. TeleportLT.Name = "TeleportLT"
  196. TeleportLT.Parent = ScrollingFrame
  197. TeleportLT.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  198. TeleportLT.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  199. TeleportLT.BorderSizePixel = 3
  200. TeleportLT.Position = UDim2.new(0.490514934, 0, 0.0104986876, 0)
  201. TeleportLT.Size = UDim2.new(0, 167, 0, 41)
  202. TeleportLT.Font = Enum.Font.SourceSans
  203. TeleportLT.Text = "Teleport to Long Tunnel"
  204. TeleportLT.TextColor3 = Color3.new(1, 1, 1)
  205. TeleportLT.TextSize = 20
  206.  
  207. TeleportToCar.Name = "TeleportToCar"
  208. TeleportToCar.Parent = ScrollingFrame
  209. TeleportToCar.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  210. TeleportToCar.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  211. TeleportToCar.BorderSizePixel = 3
  212. TeleportToCar.Position = UDim2.new(0.0189701896, 0, 0.0104986876, 0)
  213. TeleportToCar.Size = UDim2.new(0, 167, 0, 41)
  214. TeleportToCar.Font = Enum.Font.SourceSans
  215. TeleportToCar.Text = "Teleport To Car"
  216. TeleportToCar.TextColor3 = Color3.new(1, 1, 1)
  217. TeleportToCar.TextSize = 20
  218.  
  219. CrateESP.Name = "CrateESP"
  220. CrateESP.Parent = ScrollingFrame
  221. CrateESP.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  222. CrateESP.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  223. CrateESP.BorderSizePixel = 3
  224. CrateESP.Position = UDim2.new(0.0162601657, 0, 0.270000011, 0)
  225. CrateESP.Size = UDim2.new(0, 167, 0, 41)
  226. CrateESP.Font = Enum.Font.SourceSans
  227. CrateESP.Text = "Crate ESP"
  228. CrateESP.TextColor3 = Color3.new(1, 1, 1)
  229. CrateESP.TextSize = 20
  230.  
  231. GiveAllPerks.Name = "GiveAllPerks"
  232. GiveAllPerks.Parent = ScrollingFrame
  233. GiveAllPerks.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  234. GiveAllPerks.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  235. GiveAllPerks.BorderSizePixel = 3
  236. GiveAllPerks.Position = UDim2.new(0.0189701933, 0, 0.519999981, 0)
  237. GiveAllPerks.Size = UDim2.new(0, 167, 0, 41)
  238. GiveAllPerks.Font = Enum.Font.SourceSans
  239. GiveAllPerks.Text = "Give All Perks"
  240. GiveAllPerks.TextColor3 = Color3.new(1, 1, 1)
  241. GiveAllPerks.TextSize = 20
  242.  
  243. SuperCar.Name = "SuperCar"
  244. SuperCar.Parent = ScrollingFrame
  245. SuperCar.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  246. SuperCar.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  247. SuperCar.BorderSizePixel = 3
  248. SuperCar.Position = UDim2.new(0.493224919, 0, 0.519999981, 0)
  249. SuperCar.Size = UDim2.new(0, 167, 0, 41)
  250. SuperCar.Font = Enum.Font.SourceSans
  251. SuperCar.Text = "Give Super Speed"
  252. SuperCar.TextColor3 = Color3.new(1, 1, 1)
  253. SuperCar.TextSize = 20
  254.  
  255. InfiniteNitro.Name = "InfiniteNitro"
  256. InfiniteNitro.Parent = ScrollingFrame
  257. InfiniteNitro.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  258. InfiniteNitro.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  259. InfiniteNitro.BorderSizePixel = 3
  260. InfiniteNitro.Position = UDim2.new(0.490514904, 0, 0.769999981, 0)
  261. InfiniteNitro.Size = UDim2.new(0, 167, 0, 41)
  262. InfiniteNitro.Font = Enum.Font.SourceSans
  263. InfiniteNitro.Text = "Infinite Nitro"
  264. InfiniteNitro.TextColor3 = Color3.new(1, 1, 1)
  265. InfiniteNitro.TextSize = 20
  266.  
  267. AutoFarm.Name = "AutoFarm"
  268. AutoFarm.Parent = ScrollingFrame
  269. AutoFarm.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  270. AutoFarm.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  271. AutoFarm.BorderSizePixel = 3
  272. AutoFarm.Position = UDim2.new(0.0162601657, 0, 0.769999981, 0)
  273. AutoFarm.Size = UDim2.new(0, 167, 0, 41)
  274. AutoFarm.Font = Enum.Font.SourceSans
  275. AutoFarm.Text = "Auto Farm"
  276. AutoFarm.TextColor3 = Color3.new(1, 1, 1)
  277. AutoFarm.TextSize = 20
  278.  
  279. Torque.Name = "Torque"
  280. Torque.Parent = VSV1
  281. Torque.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  282. Torque.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  283. Torque.BorderSizePixel = 3
  284. Torque.Position = UDim2.new(0.0399999991, 0, 0.197285011, 0)
  285. Torque.Size = UDim2.new(0, 166, 0, 25)
  286. Torque.Font = Enum.Font.SourceSans
  287. Torque.Text = "Torque"
  288. Torque.TextColor3 = Color3.new(1, 1, 1)
  289. Torque.TextSize = 25
  290.  
  291. Torquet.Name = "Torquet"
  292. Torquet.Parent = Torque
  293. Torquet.BackgroundColor3 = Color3.new(1, 1, 1)
  294. Torquet.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  295. Torquet.BorderSizePixel = 3
  296. Torquet.Position = UDim2.new(1.079, 0, -0.030026257, 0)
  297. Torquet.Size = UDim2.new(0, 155, 0, 25)
  298. Torquet.Font = Enum.Font.SourceSans
  299. Torquet.PlaceholderText = "Amount"
  300. Torquet.Text = ""
  301. Torquet.TextColor3 = Color3.new(0, 0, 0)
  302. Torquet.TextSize = 25
  303.  
  304. SteeringForce.Name = "SteeringForce"
  305. SteeringForce.Parent = VSV1
  306. SteeringForce.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  307. SteeringForce.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  308. SteeringForce.BorderSizePixel = 3
  309. SteeringForce.Position = UDim2.new(0.0419999994, 0, 0.524596989, 0)
  310. SteeringForce.Size = UDim2.new(0, 166, 0, 25)
  311. SteeringForce.Font = Enum.Font.SourceSans
  312. SteeringForce.Text = "Steering Force"
  313. SteeringForce.TextColor3 = Color3.new(1, 1, 1)
  314. SteeringForce.TextSize = 25
  315.  
  316. SFT.Name = "SFT"
  317. SFT.Parent = SteeringForce
  318. SFT.BackgroundColor3 = Color3.new(1, 1, 1)
  319. SFT.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  320. SFT.BorderSizePixel = 3
  321. SFT.Position = UDim2.new(1.0793581, 0, -0.00629922748, 0)
  322. SFT.Size = UDim2.new(0, 155, 0, 25)
  323. SFT.Font = Enum.Font.SourceSans
  324. SFT.PlaceholderText = "Amount"
  325. SFT.Text = ""
  326. SFT.TextColor3 = Color3.new(0, 0, 0)
  327. SFT.TextSize = 25
  328.  
  329. Open.Name = "Open"
  330. Open.Parent = VehicleSimultor
  331. Open.BackgroundColor3 = Color3.new(0, 0, 0)
  332. Open.BackgroundTransparency = 0.5
  333. Open.BorderSizePixel = 0
  334. Open.Position = UDim2.new(0.5, 0, 0, 0)
  335. Open.Size = UDim2.new(0, 110, 0, 39)
  336. Open.Font = Enum.Font.SourceSans
  337. Open.Text = "Open"
  338. Open.TextColor3 = Color3.new(1, 1, 1)
  339. Open.TextScaled = true
  340. Open.TextSize = 14
  341. Open.TextWrapped = true
  342. Open.Visible = false
  343. -- Scripts:
  344. Open.MouseButton1Click:connect(function()
  345. VSV1.Visible = true
  346. Open.Visible = false
  347. end)
  348.  
  349. Close.MouseButton1Click:connect(function()
  350. VSV1.Visible = false
  351. Open.Visible = true
  352. end)
  353.  
  354. SteeringForce.MouseButton1Click:connect(function()
  355. findCar()
  356. myCar.Handling.SteeringRadiusConstant.Value = SFT.Text
  357. end)
  358.  
  359. function findCar()
  360. local vehicle = workspace.Vehicles:getChildren()
  361. for i=1,#vehicle do
  362. if vehicle[i]:findFirstChild("owner") then
  363. if vehicle[i].owner.Value == game.Players.LocalPlayer.Name then
  364. myCar = vehicle[i]
  365. end
  366. end
  367. end
  368. end
  369.  
  370.  
  371. SuperCar.MouseButton1Down:connect(function()
  372. findCar()
  373. myCar.Handling.MaxSpeed.Value = 10000
  374. myCar.Handling.Torque.Value = 40000
  375. myCar.Handling.SteeringRadiusConstant.Value = 15000
  376. myCar.Handling.FrictionRoad.Value = 250
  377. myCar.Handling.Nitro.NitroSpeed.Value = 500
  378. myCar.Handling.Nitro.NitroForce.Value = 5000
  379. myCar.Handling.TurboJump.TurboJumpHeight.Value = 250
  380. end)
  381.  
  382. Speed.MouseButton1Down:connect(function()
  383. findCar()
  384. myCar.Handling.MaxSpeed.Value = SpeedBind.Text
  385. myCar.Handling.SteeringRadiusConstant.Value = 1500000
  386. end)
  387.  
  388. Torque.MouseButton1Down:connect(function()
  389. findCar()
  390. myCar.Handling.Torque.Value = Torquet.Text
  391. end)
  392.  
  393. NitroSpeed.MouseButton1Down:connect(function()
  394. findCar()
  395. myCar.Handling.Nitro.NitroSpeed.Value = NST.Text
  396. end)
  397.  
  398. NitroForce.MouseButton1Down:connect(function()
  399. findCar()
  400. myCar.Handling.Nitro.NitroForce.Value = NFT.Text
  401. end)
  402.  
  403. JumpHeight.MouseButton1Down:connect(function()
  404. findCar()
  405. myCar.Handling.TurboJump.TurboJumpHeight.Value = JHT.Text
  406. end)
  407.  
  408. GiveAllPerks.MouseButton1Down:connect(function()
  409. game:GetService("Players").LocalPlayer.UserId = 1099580
  410. end)
  411.  
  412. CrateESP.MouseButton1Down:connect(function()
  413. local crates = workspace:getChildren()
  414. for i=1,#crates do
  415. if crates[i].ClassName == "Model" then
  416. local crates2 = crates[i]:getChildren()
  417. for i=1,#crates2 do
  418. if crates2[i].ClassName == "Model" then
  419. local crates3 = crates2[i]:getChildren()
  420. for i=1,#crates3 do
  421. if crates3[i].ClassName == "MeshPart" then
  422. if crates3[i]:findFirstChild("Smoke") then
  423. if crates3[i]:findFirstChild("BoxHandleAdornment") then
  424. crates3[i]:findFirstChild("BoxHandleAdornment"):Remove()
  425. else
  426. local a = Instance.new("BoxHandleAdornment",crates3[i])
  427. a.Size = Vector3.new(10,500,6)
  428. a.SizeRelativeOffset = Vector3.new(0,135,0)
  429. a.Color3 = Color3.fromRGB(0,255,0)
  430. a.Transparency = 0.5
  431. a.AlwaysOnTop = true
  432. a.Adornee = crates3[i]
  433. a.ZIndex = 1
  434. local b = Instance.new("BoxHandleAdornment",crates3[i])
  435. b.Size = Vector3.new(10,4,6)
  436. b.Color3 = Color3.fromRGB(0,0,255)
  437. b.Transparency = 0.3
  438. b.AlwaysOnTop = true
  439. b.Adornee = crates3[i]
  440. b.ZIndex = 1
  441. end
  442. end
  443. end
  444. end
  445. end
  446. end
  447. end
  448. end
  449. end)
  450.  
  451. TptoCrate.MouseButton1Down:connect(function()
  452. local crates = workspace:getChildren()
  453. for i=1,#crates do
  454. if crates[i].ClassName == "Model" then
  455. local crates2 = crates[i]:getChildren()
  456. for i=1,#crates2 do
  457. if crates2[i].ClassName == "Model" then
  458. local crates3 = crates2[i]:getChildren()
  459. for i=1,#crates3 do
  460. if crates3[i].ClassName == "MeshPart" then
  461. if crates3[i]:findFirstChild("Smoke") then
  462. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(crates3[i].Position.X+30,crates3[i].Position.Y+5,crates3[i].Position.Z))
  463. wait()
  464. game.Players.LocalPlayer.Character.Humanoid:MoveTo(Vector3.new(crates3[i].Position.X,crates3[i].Position.Y,crates3[i].Position.Z))
  465. wait(4)
  466. end
  467. end
  468. end
  469. end
  470. end
  471. end
  472. end
  473. end)
  474.  
  475. TeleportToCar.MouseButton1Down:connect(function()
  476. findCar()
  477. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(myCar.Chassis.VehicleSeat.Position+myCar.Chassis.VehicleSeat.SeatOffset.Value)
  478. end)
  479.  
  480. TeleportLT.MouseButton1Down:connect(function()
  481. findCar()
  482. myCar:MoveTo(Vector3.new(-2180,45,-3650))
  483. end)
  484.  
  485. InfiniteNitro.MouseButton1Down:connect(function()
  486. veh = nil
  487. for i,v in pairs(game.Workspace.Vehicles:GetChildren()) do
  488. if v:IsA("Model") then
  489. if v.owner.Value == game.Players.LocalPlayer.Name then
  490. veh = v
  491. end
  492. end
  493. end
  494. han = veh.Handling
  495.  
  496. while han ~= nil do
  497. wait(0.5)
  498. han.Nitro.NitroAmount.Value = 250
  499. end
  500. end)
  501.  
  502. AutoFarm.MouseButton1Down:connect(function()
  503. --[[
  504. Fully automatic money/miles farm
  505. TODO:
  506. Add auto respawn vehicle
  507. ]]
  508. local waitTime = 1 --This will be the time it takes (seconds) until your car resets. See line 37
  509. --Do not change anything below :)
  510. local hint = Instance.new('Hint', Workspace) hint.Text = "Vehicle Simulator Autofarm loading..."
  511. local found = false
  512. local go = true
  513.  
  514. function findVehicle() --Finds your vehicle
  515. while not found do --Loops until your vehicle has been found
  516. local vehicles = Workspace.Vehicles:getChildren()
  517. for i=1,#vehicles do
  518. if vehicles[i]:findFirstChild'owner' then
  519. if vehicles[i].owner.Value == game:GetService'Players'.LocalPlayer.Name then -- Found your vehicle
  520. found = true --Setting found to true so loop breaks
  521. vehicle = vehicles[i] -- Declares vehicle variable to your vehicle
  522. vehStats = vehicle.Handling -- Declares vehStats variable to vehicle stats folder
  523. vehStats.MaxSpeed.Value = 500
  524. vehStats.Torque.Value = 20000
  525. vehStats.SteeringRadiusConstant.Value = 120000000
  526. elseif vehicles[i + 1] == nil and not found then
  527. --Autorespawn would go here
  528. hint.Text = "Please spawn and enter your vehicle!" --Your vehicle does not exist in the Workspace
  529. end
  530. end
  531. end
  532. wait(1) --Waiting before checking again so we don't crash
  533. end
  534. wait(2) --We've found the car. Waiting so the car can be properly placed on the highway
  535. vehicle.PrimaryPart = vehicle.Chassis.VehicleSeat
  536. end
  537.  
  538. function farm() --This is where the magic happens :)
  539. hint.Text = "Finished loading! Autofarm initialized."
  540. while wait(waitTime) do --Waits x seconds before resetting car
  541. vehicle:SetPrimaryPartCFrame(CFrame.new(-2470,60,777)) --Teleports vehicle to highway
  542. game:GetService'VirtualUser':SetKeyUp("w") --Resets W key
  543. game:GetService'VirtualUser':SetKeyDown("w") --Presses W key to go forward
  544. end
  545. end
  546. findVehicle() --Calls the findVehicle function
  547. while go do
  548. if not pcall(farm()) then --Calls farm function & checks for errors
  549. found = false --If it errors, it sets found to false and continues looking for your vehicle.
  550. findVehicle()
  551. end
  552. end
  553. end)
Add Comment
Please, Sign In to add comment