Advertisement
MemesScriptMox

auto farm 2 vehicle simulator

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