Advertisement
NikkoLim

op

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