Advertisement
Kore2K

Vehicle Simulator GUI

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