LeviTheOtaku

Vehicle Sim

Mar 2nd, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.03 KB | None | 0 0
  1. local VehicleSimulatorGui = Instance.new("ScreenGui")
  2. local MainFrame = Instance.new("Frame")
  3. local MaxSpeedLabel = Instance.new("TextLabel")
  4. local TorqueLabel = Instance.new("TextLabel")
  5. local NitroSpeedLabel = Instance.new("TextLabel")
  6. local NitroForceLabel = Instance.new("TextLabel")
  7. local JumpHeightLabel = Instance.new("TextLabel")
  8. local MaxSpeedTextBox = Instance.new("TextBox")
  9. local TorqueTextBox = Instance.new("TextBox")
  10. local NitroSpeedTextBox = Instance.new("TextBox")
  11. local NitroForceTextBox = Instance.new("TextBox")
  12. local JumpHeightTextBox = Instance.new("TextBox")
  13. local MaxSpeedButton = Instance.new("TextButton")
  14. local TorqueButton = Instance.new("TextButton")
  15. local NitroSpeedButton = Instance.new("TextButton")
  16. local NitroForceButton = Instance.new("TextButton")
  17. local JumpHeightButton = Instance.new("TextButton")
  18. local SuperCarButton = Instance.new("TextButton")
  19. local TPCarToTunnelButton = Instance.new("TextButton")
  20. local TPPlayerToCarButton = Instance.new("TextButton")
  21. local ESPCratesButton = Instance.new("TextButton")
  22. local TPCratesButton = Instance.new("TextButton")
  23.  
  24. VehicleSimulatorGui.Name = "VehicleSimulatorGui"
  25. VehicleSimulatorGui.Parent = game.CoreGui
  26.  
  27. MainFrame.Name = "MainFrame"
  28. MainFrame.Parent = VehicleSimulatorGui
  29. MainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  30. MainFrame.BorderSizePixel = 2
  31. MainFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
  32. MainFrame.Size = UDim2.new(0.150000006, 0, 0.200000003, 0)
  33. MainFrame.Active = true
  34. MainFrame.Draggable = true
  35.  
  36. MaxSpeedLabel.Name = "MaxSpeedLabel"
  37. MaxSpeedLabel.Parent = MainFrame
  38. MaxSpeedLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  39. MaxSpeedLabel.BorderSizePixel = 2
  40. MaxSpeedLabel.Size = UDim2.new(0.600000024, 0, 0.100000001, 0)
  41. MaxSpeedLabel.Font = Enum.Font.SourceSans
  42. MaxSpeedLabel.FontSize = Enum.FontSize.Size14
  43. MaxSpeedLabel.Text = "Max Speed = 250"
  44. MaxSpeedLabel.TextSize = 14
  45.  
  46. TorqueLabel.Name = "TorqueLabel"
  47. TorqueLabel.Parent = MainFrame
  48. TorqueLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  49. TorqueLabel.BorderSizePixel = 2
  50. TorqueLabel.Position = UDim2.new(0, 0, 0.100000001, 0)
  51. TorqueLabel.Size = UDim2.new(0.600000024, 0, 0.100000001, 0)
  52. TorqueLabel.Font = Enum.Font.SourceSans
  53. TorqueLabel.FontSize = Enum.FontSize.Size14
  54. TorqueLabel.Text = "Torque = 250"
  55. TorqueLabel.TextSize = 14
  56.  
  57. NitroSpeedLabel.Name = "NitroSpeedLabel"
  58. NitroSpeedLabel.Parent = MainFrame
  59. NitroSpeedLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  60. NitroSpeedLabel.BorderSizePixel = 2
  61. NitroSpeedLabel.Position = UDim2.new(0, 0, 0.200000003, 0)
  62. NitroSpeedLabel.Size = UDim2.new(0.600000024, 0, 0.100000001, 0)
  63. NitroSpeedLabel.Font = Enum.Font.SourceSans
  64. NitroSpeedLabel.FontSize = Enum.FontSize.Size14
  65. NitroSpeedLabel.Text = "Nitro Speed = 250"
  66. NitroSpeedLabel.TextSize = 14
  67.  
  68. NitroForceLabel.Name = "NitroForceLabel"
  69. NitroForceLabel.Parent = MainFrame
  70. NitroForceLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  71. NitroForceLabel.BorderSizePixel = 2
  72. NitroForceLabel.Position = UDim2.new(0, 0, 0.300000012, 0)
  73. NitroForceLabel.Size = UDim2.new(0.600000024, 0, 0.100000001, 0)
  74. NitroForceLabel.Font = Enum.Font.SourceSans
  75. NitroForceLabel.FontSize = Enum.FontSize.Size14
  76. NitroForceLabel.Text = "Nitro Force = 500"
  77. NitroForceLabel.TextSize = 14
  78.  
  79. JumpHeightLabel.Name = "JumpHeightLabel"
  80. JumpHeightLabel.Parent = MainFrame
  81. JumpHeightLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  82. JumpHeightLabel.BorderSizePixel = 2
  83. JumpHeightLabel.Position = UDim2.new(0, 0, 0.400000006, 0)
  84. JumpHeightLabel.Size = UDim2.new(0.600000024, 0, 0.100000001, 0)
  85. JumpHeightLabel.Font = Enum.Font.SourceSans
  86. JumpHeightLabel.FontSize = Enum.FontSize.Size14
  87. JumpHeightLabel.Text = "Jump Height = 50"
  88. JumpHeightLabel.TextSize = 14
  89.  
  90. MaxSpeedTextBox.Name = "MaxSpeedTextBox"
  91. MaxSpeedTextBox.Parent = MainFrame
  92. MaxSpeedTextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  93. MaxSpeedTextBox.BorderSizePixel = 2
  94. MaxSpeedTextBox.Position = UDim2.new(0.600000024, 0, 0, 0)
  95. MaxSpeedTextBox.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
  96. MaxSpeedTextBox.Font = Enum.Font.SourceSansBold
  97. MaxSpeedTextBox.FontSize = Enum.FontSize.Size14
  98. MaxSpeedTextBox.Text = "10000"
  99. MaxSpeedTextBox.TextColor3 = Color3.new(0, 0.0470588, 1)
  100. MaxSpeedTextBox.TextSize = 14
  101.  
  102. TorqueTextBox.Name = "TorqueTextBox"
  103. TorqueTextBox.Parent = MainFrame
  104. TorqueTextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  105. TorqueTextBox.BorderSizePixel = 2
  106. TorqueTextBox.Position = UDim2.new(0.600000024, 0, 0.100000001, 0)
  107. TorqueTextBox.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
  108. TorqueTextBox.Font = Enum.Font.SourceSansBold
  109. TorqueTextBox.FontSize = Enum.FontSize.Size14
  110. TorqueTextBox.Text = "40000"
  111. TorqueTextBox.TextColor3 = Color3.new(0, 0.0470588, 1)
  112. TorqueTextBox.TextSize = 14
  113.  
  114. NitroSpeedTextBox.Name = "NitroSpeedTextBox"
  115. NitroSpeedTextBox.Parent = MainFrame
  116. NitroSpeedTextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  117. NitroSpeedTextBox.BorderSizePixel = 2
  118. NitroSpeedTextBox.Position = UDim2.new(0.600000024, 0, 0.200000003, 0)
  119. NitroSpeedTextBox.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
  120. NitroSpeedTextBox.Font = Enum.Font.SourceSansBold
  121. NitroSpeedTextBox.FontSize = Enum.FontSize.Size14
  122. NitroSpeedTextBox.Text = "500"
  123. NitroSpeedTextBox.TextColor3 = Color3.new(0, 0.0470588, 1)
  124. NitroSpeedTextBox.TextSize = 14
  125.  
  126. NitroForceTextBox.Name = "NitroForceTextBox"
  127. NitroForceTextBox.Parent = MainFrame
  128. NitroForceTextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  129. NitroForceTextBox.BorderSizePixel = 2
  130. NitroForceTextBox.Position = UDim2.new(0.600000024, 0, 0.300000012, 0)
  131. NitroForceTextBox.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
  132. NitroForceTextBox.Font = Enum.Font.SourceSansBold
  133. NitroForceTextBox.FontSize = Enum.FontSize.Size14
  134. NitroForceTextBox.Text = "5000"
  135. NitroForceTextBox.TextColor3 = Color3.new(0, 0.0470588, 1)
  136. NitroForceTextBox.TextSize = 14
  137.  
  138. JumpHeightTextBox.Name = "JumpHeightTextBox"
  139. JumpHeightTextBox.Parent = MainFrame
  140. JumpHeightTextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  141. JumpHeightTextBox.BorderSizePixel = 2
  142. JumpHeightTextBox.Position = UDim2.new(0.600000024, 0, 0.400000006, 0)
  143. JumpHeightTextBox.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
  144. JumpHeightTextBox.Font = Enum.Font.SourceSansBold
  145. JumpHeightTextBox.FontSize = Enum.FontSize.Size14
  146. JumpHeightTextBox.Text = "250"
  147. JumpHeightTextBox.TextColor3 = Color3.new(0, 0.0470588, 1)
  148. JumpHeightTextBox.TextSize = 14
  149.  
  150. MaxSpeedButton.Name = "MaxSpeedButton"
  151. MaxSpeedButton.Parent = MainFrame
  152. MaxSpeedButton.BackgroundColor3 = Color3.new(1, 1, 1)
  153. MaxSpeedButton.BorderSizePixel = 2
  154. MaxSpeedButton.Position = UDim2.new(0.800000012, 0, 0, 0)
  155. MaxSpeedButton.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
  156. MaxSpeedButton.Font = Enum.Font.SourceSans
  157. MaxSpeedButton.FontSize = Enum.FontSize.Size14
  158. MaxSpeedButton.Text = "Set"
  159. MaxSpeedButton.TextSize = 14
  160.  
  161. TorqueButton.Name = "TorqueButton"
  162. TorqueButton.Parent = MainFrame
  163. TorqueButton.BackgroundColor3 = Color3.new(1, 1, 1)
  164. TorqueButton.BorderSizePixel = 2
  165. TorqueButton.Position = UDim2.new(0.800000012, 0, 0.100000001, 0)
  166. TorqueButton.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
  167. TorqueButton.Font = Enum.Font.SourceSans
  168. TorqueButton.FontSize = Enum.FontSize.Size14
  169. TorqueButton.Text = "Set"
  170. TorqueButton.TextSize = 14
  171.  
  172. NitroSpeedButton.Name = "NitroSpeedButton"
  173. NitroSpeedButton.Parent = MainFrame
  174. NitroSpeedButton.BackgroundColor3 = Color3.new(1, 1, 1)
  175. NitroSpeedButton.BorderSizePixel = 2
  176. NitroSpeedButton.Position = UDim2.new(0.800000012, 0, 0.200000003, 0)
  177. NitroSpeedButton.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
  178. NitroSpeedButton.Font = Enum.Font.SourceSans
  179. NitroSpeedButton.FontSize = Enum.FontSize.Size14
  180. NitroSpeedButton.Text = "Set"
  181. NitroSpeedButton.TextSize = 14
  182.  
  183. NitroForceButton.Name = "NitroForceButton"
  184. NitroForceButton.Parent = MainFrame
  185. NitroForceButton.BackgroundColor3 = Color3.new(1, 1, 1)
  186. NitroForceButton.BorderSizePixel = 2
  187. NitroForceButton.Position = UDim2.new(0.800000012, 0, 0.300000012, 0)
  188. NitroForceButton.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
  189. NitroForceButton.Font = Enum.Font.SourceSans
  190. NitroForceButton.FontSize = Enum.FontSize.Size14
  191. NitroForceButton.Text = "Set"
  192. NitroForceButton.TextSize = 14
  193.  
  194. JumpHeightButton.Name = "JumpHeightButton"
  195. JumpHeightButton.Parent = MainFrame
  196. JumpHeightButton.BackgroundColor3 = Color3.new(1, 1, 1)
  197. JumpHeightButton.BorderSizePixel = 2
  198. JumpHeightButton.Position = UDim2.new(0.800000012, 0, 0.400000006, 0)
  199. JumpHeightButton.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
  200. JumpHeightButton.Font = Enum.Font.SourceSans
  201. JumpHeightButton.FontSize = Enum.FontSize.Size14
  202. JumpHeightButton.Text = "Set"
  203. JumpHeightButton.TextSize = 14
  204.  
  205. SuperCarButton.Name = "SuperCarButton"
  206. SuperCarButton.Parent = MainFrame
  207. SuperCarButton.BackgroundColor3 = Color3.new(1, 1, 1)
  208. SuperCarButton.BorderSizePixel = 2
  209. SuperCarButton.Position = UDim2.new(0, 0, 0.600000024, 0)
  210. SuperCarButton.Size = UDim2.new(1, 0, 0.100000001, 0)
  211. SuperCarButton.Font = Enum.Font.SourceSans
  212. SuperCarButton.FontSize = Enum.FontSize.Size14
  213. SuperCarButton.Text = "Super Car Preset"
  214. SuperCarButton.TextSize = 14
  215.  
  216. TPCarToTunnelButton.Name = "TPCarToTunnelButton"
  217. TPCarToTunnelButton.Parent = MainFrame
  218. TPCarToTunnelButton.BackgroundColor3 = Color3.new(1, 1, 1)
  219. TPCarToTunnelButton.BorderSizePixel = 2
  220. TPCarToTunnelButton.Position = UDim2.new(0, 0, 0.699999988, 0)
  221. TPCarToTunnelButton.Size = UDim2.new(1, 0, 0.100000001, 0)
  222. TPCarToTunnelButton.Font = Enum.Font.SourceSans
  223. TPCarToTunnelButton.FontSize = Enum.FontSize.Size14
  224. TPCarToTunnelButton.Text = "TP car to long tunnel"
  225. TPCarToTunnelButton.TextSize = 14
  226.  
  227. TPPlayerToCarButton.Name = "TPPlayerToCarButton"
  228. TPPlayerToCarButton.Parent = MainFrame
  229. TPPlayerToCarButton.BackgroundColor3 = Color3.new(1, 1, 1)
  230. TPPlayerToCarButton.BorderSizePixel = 2
  231. TPPlayerToCarButton.Position = UDim2.new(0, 0, 0.800000012, 0)
  232. TPPlayerToCarButton.Size = UDim2.new(1, 0, 0.100000001, 0)
  233. TPPlayerToCarButton.Font = Enum.Font.SourceSans
  234. TPPlayerToCarButton.FontSize = Enum.FontSize.Size14
  235. TPPlayerToCarButton.Text = "TP player to car"
  236. TPPlayerToCarButton.TextSize = 14
  237.  
  238. ESPCratesButton.Name = "ESPCratesButton"
  239. ESPCratesButton.Parent = MainFrame
  240. ESPCratesButton.BackgroundColor3 = Color3.new(1, 1, 1)
  241. ESPCratesButton.BorderSizePixel = 2
  242. ESPCratesButton.Position = UDim2.new(0, 0, 0.899999976, 0)
  243. ESPCratesButton.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  244. ESPCratesButton.Font = Enum.Font.SourceSans
  245. ESPCratesButton.FontSize = Enum.FontSize.Size14
  246. ESPCratesButton.Text = "ESP all crates"
  247. ESPCratesButton.TextSize = 14
  248.  
  249. TPCratesButton.Name = "TPCratesButton"
  250. TPCratesButton.Parent = MainFrame
  251. TPCratesButton.BackgroundColor3 = Color3.new(1, 1, 1)
  252. TPCratesButton.BorderSizePixel = 2
  253. TPCratesButton.Position = UDim2.new(0.5, 0, 0.899999976, 0)
  254. TPCratesButton.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  255. TPCratesButton.Font = Enum.Font.SourceSans
  256. TPCratesButton.FontSize = Enum.FontSize.Size14
  257. TPCratesButton.Text = "TP to all crates"
  258. TPCratesButton.TextSize = 14
  259.  
  260. function findCar()
  261. local vehicle = workspace.Vehicles:getChildren()
  262. for i=1,#vehicle do
  263. if vehicle[i]:findFirstChild("owner") then
  264. if vehicle[i].owner.Value == game.Players.LocalPlayer.Name then
  265. myCar = vehicle[i]
  266. end
  267. end
  268. end
  269. end
  270.  
  271.  
  272. TPCratesButton.MouseButton1Down:connect(function()
  273. local crates = workspace:getChildren()
  274. for i=1,#crates do
  275. if crates[i].ClassName == "Model" then
  276. local crates2 = crates[i]:getChildren()
  277. for i=1,#crates2 do
  278. if crates2[i].ClassName == "Model" then
  279. local crates3 = crates2[i]:getChildren()
  280. for i=1,#crates3 do
  281. if crates3[i].ClassName == "MeshPart" then
  282. if crates3[i]:findFirstChild("Smoke") then
  283. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(crates3[i].Position.X+30,crates3[i].Position.Y+5,crates3[i].Position.Z))
  284. wait()
  285. game.Players.LocalPlayer.Character.Humanoid:MoveTo(Vector3.new(crates3[i].Position.X,crates3[i].Position.Y,crates3[i].Position.Z))
  286. wait(4)
  287. end
  288. end
  289. end
  290. end
  291. end
  292. end
  293. end
  294. end)
  295.  
  296. ESPCratesButton.MouseButton1Down:connect(function()
  297. local crates = workspace:getChildren()
  298. for i=1,#crates do
  299. if crates[i].ClassName == "Model" then
  300. local crates2 = crates[i]:getChildren()
  301. for i=1,#crates2 do
  302. if crates2[i].ClassName == "Model" then
  303. local crates3 = crates2[i]:getChildren()
  304. for i=1,#crates3 do
  305. if crates3[i].ClassName == "MeshPart" then
  306. if crates3[i]:findFirstChild("Smoke") then
  307. if crates3[i]:findFirstChild("BoxHandleAdornment") then
  308. else
  309. local a = Instance.new("BoxHandleAdornment",crates3[i])
  310. a.Size = Vector3.new(10,500,6)
  311. a.SizeRelativeOffset = Vector3.new(0,135,0)
  312. a.Color3 = Color3.fromRGB(0,255,0)
  313. a.Transparency = 0.5
  314. a.AlwaysOnTop = true
  315. a.Adornee = crates3[i]
  316. a.ZIndex = 1
  317. local b = Instance.new("BoxHandleAdornment",crates3[i])
  318. b.Size = Vector3.new(10,4,6)
  319. b.Color3 = Color3.fromRGB(0,0,255)
  320. b.Transparency = 0.3
  321. b.AlwaysOnTop = true
  322. b.Adornee = crates3[i]
  323. b.ZIndex = 1
  324. end
  325. end
  326. end
  327. end
  328. end
  329. end
  330. end
  331. end
  332. end)
  333.  
  334. TPPlayerToCarButton.MouseButton1Down:connect(function()
  335. findCar()
  336. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(myCar.Chassis.VehicleSeat.Position+myCar.Chassis.VehicleSeat.SeatOffset.Value)
  337. end)
  338.  
  339. TPCarToTunnelButton.MouseButton1Down:connect(function()
  340. findCar()
  341. myCar:MoveTo(Vector3.new(-2180,45,-3650))
  342. end)
  343.  
  344. SuperCarButton.MouseButton1Down:connect(function()
  345. findCar()
  346. myCar.Handling.MaxSpeed.Value = 10000
  347. myCar.Handling.Torque.Value = 40000
  348. myCar.Handling.SteeringRadiusConstant.Value = 15000
  349. myCar.Handling.FrictionRoad.Value = 250
  350. myCar.Handling.Nitro.NitroSpeed.Value = 500
  351. myCar.Handling.Nitro.NitroForce.Value = 5000
  352. myCar.Handling.TurboJump.TurboJumpHeight.Value = 250
  353. end)
  354.  
  355. MaxSpeedButton.MouseButton1Down:connect(function()
  356. findCar()
  357. myCar.Handling.MaxSpeed.Value = MaxSpeedTextBox.Text
  358. myCar.Handling.SteeringRadiusConstant.Value = 15000
  359. end)
  360.  
  361. TorqueButton.MouseButton1Down:connect(function()
  362. findCar()
  363. myCar.Handling.Torque.Value = TorqueTextBox.Text
  364. end)
  365.  
  366. NitroSpeedButton.MouseButton1Down:connect(function()
  367. findCar()
  368. myCar.Handling.Nitro.NitroSpeed.Value = NitroSpeedTextBox.Text
  369. end)
  370.  
  371. NitroForceButton.MouseButton1Down:connect(function()
  372. findCar()
  373. myCar.Handling.Nitro.NitroForce.Value = NitroForceTextBox.Text
  374. end)
  375.  
  376. JumpHeightButton.MouseButton1Down:connect(function()
  377. findCar()
  378. myCar.Handling.TurboJump.TurboJumpHeight.Value = JumpHeightTextBox.Text
  379. end)
  380.  
  381. spawn(function()
  382. while true do
  383. wait(0.2)
  384. findCar()
  385. if myCar:findFirstChild("Handling") then
  386. if myCar.Handling:findFirstChild("MaxSpeed") then
  387. MaxSpeedLabel.Text = "Max Speed = " .. myCar.Handling.MaxSpeed.Value
  388. end
  389. if myCar.Handling:findFirstChild("Torque") then
  390. TorqueLabel.Text = "Torque = " .. myCar.Handling.Torque.Value
  391. end
  392. if myCar.Handling:findFirstChild("Nitro") then
  393. if myCar.Handling.Nitro:findFirstChild("NitroSpeed") then
  394. NitroSpeedLabel.Text = "Nitro Speed = " .. myCar.Handling.Nitro.NitroSpeed.Value
  395. end
  396. if myCar.Handling.Nitro:findFirstChild("NitroForce") then
  397. NitroForceLabel.Text = "Nitro Force = " .. myCar.Handling.Nitro.NitroForce.Value
  398. end
  399. end
  400. if myCar.Handling:findFirstChild("TurboJump") then
  401. if myCar.Handling.TurboJump:findFirstChild("TurboJumpHeight") then
  402. JumpHeightLabel.Text = "Jump Height = " .. myCar.Handling.TurboJump.TurboJumpHeight.Value
  403. end
  404. end
  405. end
  406. end
  407. end)
Add Comment
Please, Sign In to add comment