TheProNoob2004

Car.Lua

Jun 18th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.13 KB | None | 0 0
  1. Health = 2500
  2. MaxHealth = 2500
  3. ToughnessMinorDamage = 200
  4. ToughnessMajorDamage = 300
  5.  
  6. DriftAcceleration = 0.001
  7. DriftSteerDifficulty = 0.05
  8. DriftSteerPower = 30
  9.  
  10. Acceleration = 0.004
  11. TopSpeed = 250
  12. Deceleration = 0.008
  13. BrakePower = 0.015
  14.  
  15. SteerDifficulty = 0.05
  16. SteerPower = 25
  17.  
  18. TireFriction = 0.3
  19. TireElasticity = 0.9
  20.  
  21. MasterColor = BrickColor.random()
  22. Wrecked = false
  23.  
  24. Vehicle = Instance.new("Model")
  25. Vehicle.Name = "Car"
  26. Vehicle.Parent = Workspace
  27.  
  28. Base = Instance.new("Part")
  29. Base.Name = "VehicleBase"
  30. Base.BrickColor = MasterColor
  31. Base.TopSurface = "Smooth"
  32. Base.BottomSurface = "Smooth"
  33. Base.FormFactor = "Custom"
  34. Base.Size = Vector3.new(8, 1, 17)
  35. Base.Friction = 1
  36. Base.Elasticity = 0
  37. Base.Parent = Vehicle
  38. Thrust = Instance.new("BodyVelocity")
  39. Thrust.P = 100
  40. Thrust.maxForce = Vector3.new(math.huge, 0, math.huge)
  41. Thrust.velocity = Vector3.new()
  42. Thrust.Parent = Base
  43. Steer = Instance.new("BodyGyro")
  44. Steer.maxTorque = Vector3.new(0, math.huge, 0)
  45. Steer.cframe = CFrame.new()
  46. Steer.P = 7500
  47. Steer.Parent = Base
  48. Instance.new("BodyForce", Base).force = Vector3.new(0, -1000, 0)
  49.  
  50. Seat = Instance.new("VehicleSeat")
  51. Seat.CanCollide = false
  52. Seat.MaxSpeed = 0
  53. Seat.Torque = 0
  54. Seat.HeadsUpDisplay = false
  55. Seat.BrickColor = BrickColor.new("Black")
  56. Seat.TopSurface = "Smooth"
  57. Seat.BottomSurface = "Smooth"
  58. Seat.Size = Vector3.new(2, 1, 2)
  59. Seat.Parent = Vehicle
  60. Weld = Instance.new("Weld")
  61. Weld.Name = "Weld"
  62. Weld.Parent = Seat
  63. Weld.Part0 = Base
  64. Weld.Part1 = Seat
  65. Weld.C0 = CFrame.new(-2.5, 0.375, 0.25)
  66.  
  67. Part = Instance.new("Part")
  68. Part.Name = "Front Left Seat Back"
  69. Part.BrickColor = BrickColor.new("Black")
  70. Part.TopSurface = "Smooth"
  71. Part.BottomSurface = "Smooth"
  72. Part.FormFactor = "Custom"
  73. Part.Size = Vector3.new(2, 3, 1)
  74. Part.Parent = Vehicle
  75. Mesh = Instance.new("SpecialMesh")
  76. Mesh.MeshType = "Brick"
  77. Mesh.Scale = Vector3.new(1, 1, 1)
  78. Mesh.Parent = Part
  79. Weld = Instance.new("Weld")
  80. Weld.Parent = Part
  81. Weld.Part0 = Base
  82. Weld.Part1 = Part
  83. Weld.C0 = CFrame.new(-2.5, 1.5, 1.25)
  84.  
  85. Part = Instance.new("Part")
  86. Part.Name = "Front Left Seat Headrest 1"
  87. Part.BrickColor = BrickColor.new("Black")
  88. Part.TopSurface = "Smooth"
  89. Part.BottomSurface = "Smooth"
  90. Part.FormFactor = "Custom"
  91. Part.Size = Vector3.new(2, 1, 1)
  92. Part.Parent = Vehicle
  93. Mesh = Instance.new("SpecialMesh")
  94. Mesh.MeshType = "Brick"
  95. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  96. Mesh.Parent = Part
  97. Weld = Instance.new("Weld")
  98. Weld.Parent = Part
  99. Weld.Part0 = Base
  100. Weld.Part1 = Part
  101. Weld.C0 = CFrame.new(-2.5, 3, 1.25)
  102.  
  103. Part = Instance.new("Part")
  104. Part.Name = "Front Left Seat Headrest 2"
  105. Part.BrickColor = BrickColor.new("Black")
  106. Part.TopSurface = "Smooth"
  107. Part.BottomSurface = "Smooth"
  108. Part.FormFactor = "Custom"
  109. Part.Size = Vector3.new(2, 1, 1)
  110. Part.Parent = Vehicle
  111. Mesh = Instance.new("SpecialMesh")
  112. Mesh.MeshType = "Brick"
  113. Mesh.Scale = Vector3.new(0.9, 1.1, 1)
  114. Mesh.Parent = Part
  115. Weld = Instance.new("Weld")
  116. Weld.Parent = Part
  117. Weld.Part0 = Base
  118. Weld.Part1 = Part
  119. Weld.C0 = CFrame.new(-2.5, 3.8, 1.25)
  120.  
  121. Seat2 = Instance.new("VehicleSeat")
  122. Seat2.Name = "VehicleSeat2"
  123. Seat2.CanCollide = false
  124. Seat2.MaxSpeed = 0
  125. Seat2.Torque = 0
  126. Seat2.HeadsUpDisplay = false
  127. Seat2.BrickColor = BrickColor.new("Black")
  128. Seat2.TopSurface = "Smooth"
  129. Seat2.BottomSurface = "Smooth"
  130. Seat2.Size = Vector3.new(2, 1, 2)
  131. Seat2.Parent = Vehicle
  132. Weld = Instance.new("Weld")
  133. Weld.Parent = Seat2
  134. Weld.Part0 = Base
  135. Weld.Part1 = Seat2
  136. Weld.C0 = CFrame.new(2.5, 0.375, 0.5)
  137.  
  138. Part = Instance.new("Part")
  139. Part.Name = "Front Right Seat Back"
  140. Part.BrickColor = BrickColor.new("Black")
  141. Part.TopSurface = "Smooth"
  142. Part.BottomSurface = "Smooth"
  143. Part.FormFactor = "Custom"
  144. Part.Size = Vector3.new(2, 3, 1)
  145. Part.Parent = Vehicle
  146. Mesh = Instance.new("SpecialMesh")
  147. Mesh.MeshType = "Brick"
  148. Mesh.Scale = Vector3.new(1, 1, 1)
  149. Mesh.Parent = Part
  150. Weld = Instance.new("Weld")
  151. Weld.Parent = Part
  152. Weld.Part0 = Base
  153. Weld.Part1 = Part
  154. Weld.C0 = CFrame.new(2.5, 1.5, 1.25)
  155.  
  156. Part = Instance.new("Part")
  157. Part.Name = "Front Right Seat Headrest 1"
  158. Part.BrickColor = BrickColor.new("Black")
  159. Part.TopSurface = "Smooth"
  160. Part.BottomSurface = "Smooth"
  161. Part.FormFactor = "Custom"
  162. Part.Size = Vector3.new(2, 1, 1)
  163. Part.Parent = Vehicle
  164. Mesh = Instance.new("SpecialMesh")
  165. Mesh.MeshType = "Brick"
  166. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  167. Mesh.Parent = Part
  168. Weld = Instance.new("Weld")
  169. Weld.Parent = Part
  170. Weld.Part0 = Base
  171. Weld.Part1 = Part
  172. Weld.C0 = CFrame.new(2.5, 3, 1.25)
  173.  
  174. Part = Instance.new("Part")
  175. Part.Name = "Front Right Seat Headrest 2"
  176. Part.BrickColor = BrickColor.new("Black")
  177. Part.TopSurface = "Smooth"
  178. Part.BottomSurface = "Smooth"
  179. Part.FormFactor = "Custom"
  180. Part.Size = Vector3.new(2, 1, 1)
  181. Part.Parent = Vehicle
  182. Mesh = Instance.new("SpecialMesh")
  183. Mesh.MeshType = "Brick"
  184. Mesh.Scale = Vector3.new(0.9, 1.1, 1)
  185. Mesh.Parent = Part
  186. Weld = Instance.new("Weld")
  187. Weld.Parent = Part
  188. Weld.Part0 = Base
  189. Weld.Part1 = Part
  190. Weld.C0 = CFrame.new(2.5, 3.8, 1.25)
  191.  
  192. Seat3 = Instance.new("VehicleSeat")
  193. Seat3.Name = "VehicleSeat3"
  194. Seat3.CanCollide = false
  195. Seat3.MaxSpeed = 0
  196. Seat3.Torque = 0
  197. Seat3.HeadsUpDisplay = false
  198. Seat3.BrickColor = BrickColor.new("Black")
  199. Seat3.TopSurface = "Smooth"
  200. Seat3.BottomSurface = "Smooth"
  201. Seat3.Size = Vector3.new(2, 1, 2)
  202. Seat3.Parent = Vehicle
  203. Weld = Instance.new("Weld")
  204. Weld.Parent = Seat3
  205. Weld.Part0 = Base
  206. Weld.Part1 = Seat3
  207. Weld.C0 = CFrame.new(-2.5, 0.375, 4.5)
  208.  
  209. Part = Instance.new("Part")
  210. Part.Name = "Rear Left Seat Back"
  211. Part.BrickColor = BrickColor.new("Black")
  212. Part.TopSurface = "Smooth"
  213. Part.BottomSurface = "Smooth"
  214. Part.FormFactor = "Custom"
  215. Part.Size = Vector3.new(2, 3, 1)
  216. Part.Parent = Vehicle
  217. Mesh = Instance.new("SpecialMesh")
  218. Mesh.MeshType = "Brick"
  219. Mesh.Scale = Vector3.new(1, 1, 1)
  220. Mesh.Parent = Part
  221. Weld = Instance.new("Weld")
  222. Weld.Parent = Part
  223. Weld.Part0 = Base
  224. Weld.Part1 = Part
  225. Weld.C0 = CFrame.new(-2.5, 1.5, 5.25)
  226.  
  227. Seat4 = Instance.new("VehicleSeat")
  228. Seat4.Name = "VehicleSeat4"
  229. Seat4.CanCollide = false
  230. Seat4.MaxSpeed = 0
  231. Seat4.Torque = 0
  232. Seat4.HeadsUpDisplay = false
  233. Seat4.BrickColor = BrickColor.new("Black")
  234. Seat4.TopSurface = "Smooth"
  235. Seat4.BottomSurface = "Smooth"
  236. Seat4.Size = Vector3.new(2, 1, 2)
  237. Seat4.Parent = Vehicle
  238. Weld = Instance.new("Weld")
  239. Weld.Parent = Seat4
  240. Weld.Part0 = Base
  241. Weld.Part1 = Seat4
  242. Weld.C0 = CFrame.new(2.5, 0.375, 4.5)
  243.  
  244. Part = Instance.new("Part")
  245. Part.Name = "Rear Right Seat Back"
  246. Part.BrickColor = BrickColor.new("Black")
  247. Part.TopSurface = "Smooth"
  248. Part.BottomSurface = "Smooth"
  249. Part.FormFactor = "Custom"
  250. Part.Size = Vector3.new(2, 3, 1)
  251. Part.Parent = Vehicle
  252. Mesh = Instance.new("SpecialMesh")
  253. Mesh.MeshType = "Brick"
  254. Mesh.Scale = Vector3.new(1, 1, 1)
  255. Mesh.Parent = Part
  256. Weld = Instance.new("Weld")
  257. Weld.Parent = Part
  258. Weld.Part0 = Base
  259. Weld.Part1 = Part
  260. Weld.C0 = CFrame.new(2.5, 1.5, 5.25)
  261.  
  262. Part = Instance.new("Part")
  263. Part.Name = "Rear Center Seat"
  264. Part.BrickColor = BrickColor.new("Black")
  265. Part.TopSurface = "Smooth"
  266. Part.BottomSurface = "Smooth"
  267. Part.FormFactor = "Custom"
  268. Part.Size = Vector3.new(3, 3, 1)
  269. Part.Parent = Vehicle
  270. Weld = Instance.new("Weld")
  271. Weld.Parent = Part
  272. Weld.Part0 = Base
  273. Weld.Part1 = Part
  274. Weld.C0 = CFrame.new(0, 1.3, 5.25)
  275.  
  276. Part = Instance.new("Part")
  277. Part.Name = "Front Right Bumper"
  278. Part.BrickColor = MasterColor
  279. Part.TopSurface = "Smooth"
  280. Part.BottomSurface = "Smooth"
  281. Part.FormFactor = "Custom"
  282. Part.Size = Vector3.new(2, 1, 3)
  283. Part.Parent = Vehicle
  284. Mesh = Instance.new("SpecialMesh")
  285. Mesh.MeshType = "Brick"
  286. Mesh.Scale = Vector3.new(1, 1, 0.95)
  287. Mesh.Parent = Part
  288. Weld = Instance.new("Weld")
  289. Weld.Parent = Part
  290. Weld.Part0 = Base
  291. Weld.Part1 = Part
  292. Weld.C0 = CFrame.new(5, 0, -7.075)
  293.  
  294. Part = Instance.new("Part")
  295. Part.Name = "Front Left Bumper"
  296. Part.BrickColor = MasterColor
  297. Part.TopSurface = "Smooth"
  298. Part.BottomSurface = "Smooth"
  299. Part.FormFactor = "Custom"
  300. Part.Size = Vector3.new(2, 1, 3)
  301. Part.Parent = Vehicle
  302. Mesh = Instance.new("SpecialMesh")
  303. Mesh.MeshType = "Brick"
  304. Mesh.Scale = Vector3.new(1, 1, 0.95)
  305. Mesh.Parent = Part
  306. Weld = Instance.new("Weld")
  307. Weld.Parent = Part
  308. Weld.Part0 = Base
  309. Weld.Part1 = Part
  310. Weld.C0 = CFrame.new(-5, 0, -7.075)
  311.  
  312. Part = Instance.new("Part")
  313. Part.Name = "Right Skirt 1"
  314. Part.BrickColor = MasterColor
  315. Part.TopSurface = "Smooth"
  316. Part.BottomSurface = "Smooth"
  317. Part.FormFactor = "Custom"
  318. Part.Size = Vector3.new(1, 1, 9)
  319. Part.Parent = Vehicle
  320. Mesh = Instance.new("SpecialMesh")
  321. Mesh.MeshType = "Brick"
  322. Mesh.Scale = Vector3.new(1, 1, 0.975)
  323. Mesh.Parent = Part
  324. Weld = Instance.new("Weld")
  325. Weld.Parent = Part
  326. Weld.Part0 = Base
  327. Weld.Part1 = Part
  328. Weld.C0 = CFrame.new(4.5, 0, 2)
  329.  
  330. Part = Instance.new("Part")
  331. Part.Name = "Right Skirt 2"
  332. Part.BrickColor = MasterColor
  333. Part.TopSurface = "Smooth"
  334. Part.BottomSurface = "Smooth"
  335. Part.FormFactor = "Custom"
  336. Part.Size = Vector3.new(1, 1, 9)
  337. Part.Parent = Vehicle
  338. Mesh = Instance.new("SpecialMesh")
  339. Mesh.MeshType = "Brick"
  340. Mesh.Scale = Vector3.new(1, 0.5, 0.975)
  341. Mesh.Parent = Part
  342. Weld = Instance.new("Weld")
  343. Weld.Parent = Part
  344. Weld.Part0 = Base
  345. Weld.Part1 = Part
  346. Weld.C0 = CFrame.new(5.5, -0.25, 2)
  347.  
  348. Part = Instance.new("Part")
  349. Part.Name = "Left Skirt 1"
  350. Part.BrickColor = MasterColor
  351. Part.TopSurface = "Smooth"
  352. Part.BottomSurface = "Smooth"
  353. Part.FormFactor = "Custom"
  354. Part.Size = Vector3.new(1, 1, 9)
  355. Part.Parent = Vehicle
  356. Mesh = Instance.new("SpecialMesh")
  357. Mesh.MeshType = "Brick"
  358. Mesh.Scale = Vector3.new(1, 1, 0.975)
  359. Mesh.Parent = Part
  360. Weld = Instance.new("Weld")
  361. Weld.Parent = Part
  362. Weld.Part0 = Base
  363. Weld.Part1 = Part
  364. Weld.C0 = CFrame.new(-4.5, 0, 2)
  365.  
  366. Part = Instance.new("Part")
  367. Part.Name = "Left Skirt 2"
  368. Part.BrickColor = MasterColor
  369. Part.TopSurface = "Smooth"
  370. Part.BottomSurface = "Smooth"
  371. Part.FormFactor = "Custom"
  372. Part.Size = Vector3.new(1, 1, 9)
  373. Part.Parent = Vehicle
  374. Mesh = Instance.new("SpecialMesh")
  375. Mesh.MeshType = "Brick"
  376. Mesh.Scale = Vector3.new(1, 0.5, 0.975)
  377. Mesh.Parent = Part
  378. Weld = Instance.new("Weld")
  379. Weld.Parent = Part
  380. Weld.Part0 = Base
  381. Weld.Part1 = Part
  382. Weld.C0 = CFrame.new(-5.5, -0.25, 2)
  383.  
  384. Part = Instance.new("Part")
  385. Part.Name = "VehicleEngine"
  386. Part.BrickColor = MasterColor
  387. Part.TopSurface = "Smooth"
  388. Part.BottomSurface = "Smooth"
  389. Part.FormFactor = "Custom"
  390. Part.Size = Vector3.new(12, 1, 3)
  391. Part.Parent = Vehicle
  392. Weld = Instance.new("Weld")
  393. Weld.Parent = Part
  394. Weld.Part0 = Base
  395. Weld.Part1 = Part
  396. Weld.C0 = CFrame.new(0, 1, -7)
  397. coroutine.wrap(function(Part2)
  398. while true do
  399. if Driver ~= nil and Part2:FindFirstChild("Drive") == nil and Part2:FindFirstChild("Start") == nil and Health > 0 then
  400. local Sound1 = Instance.new("Sound")
  401. Sound1.Name = "Start"
  402. Sound1.SoundId = "http://www.roblox.com/Asset/?id=31245452"
  403. Sound1.Volume = 1
  404. Sound1.Pitch = 0.95
  405. Sound1.Parent = Part2
  406. Sound1:Play()
  407. wait(1)
  408. local Sound2 = Instance.new("Sound")
  409. Sound2.Name = "Drive"
  410. Sound2.SoundId = "http://www.roblox.com/Asset/?id=2766576"
  411. Sound2.Volume = 1
  412. Sound2.Pitch = 0
  413. Sound2.Looped = true
  414. Sound2.Parent = Part2
  415. Sound2:Play()
  416. while Driver ~= nil and Vehicle.Parent ~= nil and Health > 0 do
  417. Sound2.Pitch = 0.05 + (math.abs(ThrottlePercent) * 0.2)
  418. wait()
  419. end
  420. coroutine.wrap(function()
  421. for i = Sound1.Pitch, 0, -0.075 do
  422. Sound1.Pitch = i
  423. wait()
  424. end
  425. end)()
  426. for i = Sound2.Pitch, 0, -0.01 do
  427. Sound2.Pitch = i
  428. wait()
  429. end
  430. Sound1:Stop()
  431. Sound2:Stop()
  432. wait(0.25)
  433. Sound1:Remove()
  434. Sound2:Remove()
  435. end
  436. wait()
  437. end
  438. end)(Part)
  439.  
  440. Part = Instance.new("Part")
  441. Part.Name = "Grill"
  442. Part.BrickColor = BrickColor.new("Medium stone grey")
  443. Part.Reflectance = 0.2
  444. Part.TopSurface = "Smooth"
  445. Part.BottomSurface = "Smooth"
  446. Part.FormFactor = "Custom"
  447. Part.Size = Vector3.new(4, 1, 2)
  448. Part.Parent = Vehicle
  449. Weld = Instance.new("Weld")
  450. Weld.Parent = Part
  451. Weld.Part0 = Base
  452. Weld.Part1 = Part
  453. Weld.C0 = CFrame.new(0, 2, -7.5)
  454.  
  455. Part = Instance.new("Part")
  456. Part.Name = "Right Headlight"
  457. Part.BrickColor = BrickColor.new("Institutional white")
  458. Part.Transparency = 0.5
  459. Part.TopSurface = "Smooth"
  460. Part.BottomSurface = "Smooth"
  461. Part.FormFactor = "Custom"
  462. Part.Size = Vector3.new(3, 1, 2)
  463. Part.Parent = Vehicle
  464. Weld = Instance.new("Weld")
  465. Weld.Parent = Part
  466. Weld.Part0 = Base
  467. Weld.Part1 = Part
  468. Weld.C0 = CFrame.new(3.5, 2, -7.5)
  469.  
  470. Part = Instance.new("Part")
  471. Part.Name = "Right Front Turn Signal"
  472. Part.BrickColor = BrickColor.new("New Yeller")
  473. Part.Transparency = 0.5
  474. Part.TopSurface = "Smooth"
  475. Part.BottomSurface = "Smooth"
  476. Part.FormFactor = "Custom"
  477. Part.Size = Vector3.new(1, 1, 2)
  478. Part.Parent = Vehicle
  479. Weld = Instance.new("Weld")
  480. Weld.Parent = Part
  481. Weld.Part0 = Base
  482. Weld.Part1 = Part
  483. Weld.C0 = CFrame.new(5.5, 2, -7.5)
  484.  
  485. Part = Instance.new("Part")
  486. Part.Name = "Left Headlight"
  487. Part.BrickColor = BrickColor.new("Institutional white")
  488. Part.Transparency = 0.5
  489. Part.TopSurface = "Smooth"
  490. Part.BottomSurface = "Smooth"
  491. Part.FormFactor = "Custom"
  492. Part.Size = Vector3.new(3, 1, 2)
  493. Part.Parent = Vehicle
  494. Weld = Instance.new("Weld")
  495. Weld.Parent = Part
  496. Weld.Part0 = Base
  497. Weld.Part1 = Part
  498. Weld.C0 = CFrame.new(-3.5, 2, -7.5)
  499.  
  500. Part = Instance.new("Part")
  501. Part.Name = "Left Front Turn Signal"
  502. Part.BrickColor = BrickColor.new("New Yeller")
  503. Part.Transparency = 0.5
  504. Part.TopSurface = "Smooth"
  505. Part.BottomSurface = "Smooth"
  506. Part.FormFactor = "Custom"
  507. Part.Size = Vector3.new(1, 1, 2)
  508. Part.Parent = Vehicle
  509. Weld = Instance.new("Weld")
  510. Weld.Parent = Part
  511. Weld.Part0 = Base
  512. Weld.Part1 = Part
  513. Weld.C0 = CFrame.new(-5.5, 2, -7.5)
  514.  
  515. Part = Instance.new("Part")
  516. Part.Name = "Headlight Back"
  517. Part.BrickColor = MasterColor
  518. Part.TopSurface = "Smooth"
  519. Part.BottomSurface = "Smooth"
  520. Part.FormFactor = "Custom"
  521. Part.Size = Vector3.new(12, 1, 4)
  522. Part.Parent = Vehicle
  523. Weld = Instance.new("Weld")
  524. Weld.Parent = Part
  525. Weld.Part0 = Base
  526. Weld.Part1 = Part
  527. Weld.C0 = CFrame.new(0, 2, -4.5)
  528.  
  529. Part = Instance.new("WedgePart")
  530. Part.Name = "Hood"
  531. Part.BrickColor = MasterColor
  532. Part.TopSurface = "Smooth"
  533. Part.BottomSurface = "Smooth"
  534. Part.FormFactor = "Custom"
  535. Part.Size = Vector3.new(12, 1, 6)
  536. Part.Parent = Vehicle
  537. Weld = Instance.new("Weld")
  538. Weld.Parent = Part
  539. Weld.Part0 = Base
  540. Weld.Part1 = Part
  541. Weld.C0 = CFrame.new(0, 3, -5.5)
  542.  
  543. Part = Instance.new("WedgePart")
  544. Part.Name = "Front Well 1"
  545. Part.BrickColor = MasterColor
  546. Part.TopSurface = "Smooth"
  547. Part.BottomSurface = "Smooth"
  548. Part.FormFactor = "Custom"
  549. Part.Size = Vector3.new(12, 1, 1)
  550. Part.Parent = Vehicle
  551. Mesh = Instance.new("SpecialMesh")
  552. Mesh.MeshType = "Wedge"
  553. Mesh.Scale = Vector3.new(1, 0.5, 0.5)
  554. Mesh.Parent = Part
  555. Weld = Instance.new("Weld")
  556. Weld.Parent = Part
  557. Weld.Part0 = Base
  558. Weld.Part1 = Part
  559. Weld.C0 = CFrame.new(0, 1.25, -5.25) * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, 0)
  560.  
  561. Part = Instance.new("WedgePart")
  562. Part.Name = "Front Well 2"
  563. Part.BrickColor = MasterColor
  564. Part.TopSurface = "Smooth"
  565. Part.BottomSurface = "Smooth"
  566. Part.FormFactor = "Custom"
  567. Part.Size = Vector3.new(12, 1, 1)
  568. Part.Parent = Vehicle
  569. Mesh = Instance.new("SpecialMesh")
  570. Mesh.MeshType = "Wedge"
  571. Mesh.Scale = Vector3.new(1, 0.5, 0.5)
  572. Mesh.Parent = Part
  573. Weld = Instance.new("Weld")
  574. Weld.Parent = Part
  575. Weld.Part0 = Base
  576. Weld.Part1 = Part
  577. Weld.C0 = CFrame.new(0, 1.25, -2.75) * CFrame.fromEulerAnglesXYZ(math.rad(180), math.rad(180), 0)
  578.  
  579. Part = Instance.new("Part")
  580. Part.Name = "Front Well 3"
  581. Part.BrickColor = BrickColor.new("Black")
  582. Part.TopSurface = "Smooth"
  583. Part.BottomSurface = "Smooth"
  584. Part.FormFactor = "Custom"
  585. Part.Size = Vector3.new(8, 1, 3)
  586. Part.Parent = Vehicle
  587. Weld = Instance.new("Weld")
  588. Weld.Parent = Part
  589. Weld.Part0 = Base
  590. Weld.Part1 = Part
  591. Weld.C0 = CFrame.new(0, 1, -4)
  592.  
  593. Part = Instance.new("Part")
  594. Part.Name = "Front Left Roof Support"
  595. Part.BrickColor = MasterColor
  596. Part.TopSurface = "Smooth"
  597. Part.BottomSurface = "Smooth"
  598. Part.FormFactor = "Custom"
  599. Part.Size = Vector3.new(1, 4, 1)
  600. Part.CanCollide = false
  601. Part.Parent = Vehicle
  602. Weld = Instance.new("Weld")
  603. Weld.Parent = Part
  604. Weld.Part0 = Base
  605. Weld.Part1 = Part
  606. Weld.C0 = CFrame.new(-5.5, 4.4, -1.4) * CFrame.fromEulerAnglesXYZ(math.rad(45), 0, 0)
  607.  
  608. Part = Instance.new("Part")
  609. Part.Name = "Front Right Roof Support"
  610. Part.BrickColor = MasterColor
  611. Part.TopSurface = "Smooth"
  612. Part.BottomSurface = "Smooth"
  613. Part.FormFactor = "Custom"
  614. Part.Size = Vector3.new(1, 4, 1)
  615. Part.CanCollide = false
  616. Part.Parent = Vehicle
  617. Weld = Instance.new("Weld")
  618. Weld.Parent = Part
  619. Weld.Part0 = Base
  620. Weld.Part1 = Part
  621. Weld.C0 = CFrame.new(5.5, 4.4, -1.4) * CFrame.fromEulerAnglesXYZ(math.rad(45), 0, 0)
  622.  
  623. Part = Instance.new("Part")
  624. Part.Name = "Front Window"
  625. Part.BrickColor = BrickColor.new("Institutional white")
  626. Part.Transparency = 0.75
  627. Part.TopSurface = "Smooth"
  628. Part.BottomSurface = "Smooth"
  629. Part.FormFactor = "Custom"
  630. Part.Size = Vector3.new(10, 4, 1)
  631. Part.Parent = Vehicle
  632. Weld = Instance.new("Weld")
  633. Weld.Parent = Part
  634. Weld.Part0 = Base
  635. Weld.Part1 = Part
  636. Weld.C0 = CFrame.new(0, 4.4, -1.4) * CFrame.fromEulerAnglesXYZ(math.rad(45), 0, 0)
  637.  
  638. Part = Instance.new("Part")
  639. Part.Name = "Roof 1"
  640. Part.CanCollide = false
  641. Part.BrickColor = MasterColor
  642. Part.TopSurface = "Smooth"
  643. Part.BottomSurface = "Smooth"
  644. Part.FormFactor = "Custom"
  645. Part.Size = Vector3.new(12, 1, 6)
  646. Part.Parent = Vehicle
  647. Weld = Instance.new("Weld")
  648. Weld.Parent = Part
  649. Weld.Part0 = Base
  650. Weld.Part1 = Part
  651. Weld.C0 = CFrame.new(0, 5.675, 2.654)
  652.  
  653. Part = Instance.new("Part")
  654. Part.Name = "Roof 2"
  655. Part.Transparency = 1
  656. Part.TopSurface = "Smooth"
  657. Part.BottomSurface = "Smooth"
  658. Part.FormFactor = "Custom"
  659. Part.Size = Vector3.new(12, 1, 6)
  660. Part.Parent = Vehicle
  661. Weld = Instance.new("Weld")
  662. Weld.Parent = Part
  663. Weld.Part0 = Base
  664. Weld.Part1 = Part
  665. Weld.C0 = CFrame.new(0, 6.675, 2.654)
  666.  
  667. Part = Instance.new("Part")
  668. Part.Name = "Dashboard Back"
  669. Part.BrickColor = MasterColor
  670. Part.TopSurface = "Smooth"
  671. Part.BottomSurface = "Smooth"
  672. Part.FormFactor = "Custom"
  673. Part.Size = Vector3.new(12, 4, 1)
  674. Part.Parent = Vehicle
  675. Mesh = Instance.new("SpecialMesh")
  676. Mesh.MeshType = "Brick"
  677. Mesh.Scale = Vector3.new(1, 1, 0.5)
  678. Mesh.Parent = Part
  679. Weld = Instance.new("Weld")
  680. Weld.Parent = Part
  681. Weld.Part0 = Base
  682. Weld.Part1 = Part
  683. Weld.C0 = CFrame.new(0, 1.5, -2.25)
  684.  
  685. Part = Instance.new("Part")
  686. Part.Name = "Steeringwheel"
  687. Part.BrickColor = BrickColor.new("Black")
  688. Part.TopSurface = "Smooth"
  689. Part.BottomSurface = "Smooth"
  690. Part.FormFactor = "Custom"
  691. Part.Size = Vector3.new(2, 2, 1)
  692. Part.CanCollide = false
  693. Part.Parent = Vehicle
  694. Mesh = Instance.new("SpecialMesh")
  695. Mesh.MeshType = "Sphere"
  696. Mesh.Scale = Vector3.new(1.25, 1.25, 0.5)
  697. Mesh.Parent = Part
  698. Weld = Instance.new("Weld")
  699. Weld.Parent = Part
  700. Weld.Part0 = Base
  701. Weld.Part1 = Part
  702. Weld.C0 = CFrame.new(-2.5, 3, -1.5)
  703.  
  704. Part = Instance.new("Part")
  705. Part.Name = "Steering Column"
  706. Part.BrickColor = BrickColor.new("Black")
  707. Part.TopSurface = "Smooth"
  708. Part.BottomSurface = "Smooth"
  709. Part.FormFactor = "Custom"
  710. Part.Size = Vector3.new(1, 1, 1)
  711. Part.CanCollide = false
  712. Part.Parent = Vehicle
  713. Weld = Instance.new("Weld")
  714. Weld.Parent = Part
  715. Weld.Part0 = Base
  716. Weld.Part1 = Part
  717. Weld.C0 = CFrame.new(-2.5, 2.95, -1.9)
  718.  
  719. Part = Instance.new("Part")
  720. Part.Name = "Left Turn Signal Button"
  721. Part.BrickColor = BrickColor.new("Bright green")
  722. Part.TopSurface = "Smooth"
  723. Part.BottomSurface = "Smooth"
  724. Part.FormFactor = "Custom"
  725. Part.Size = Vector3.new(0.5, 0.5, 0.5)
  726. Part.CanCollide = false
  727. Part.Parent = Vehicle
  728. Instance.new("CylinderMesh", Part)
  729. Weld = Instance.new("Weld")
  730. Weld.Parent = Part
  731. Weld.Part0 = Base
  732. Weld.Part1 = Part
  733. Weld.C0 = CFrame.new(-0.5, 2.5, -1.8) * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
  734. local Open = Instance.new("ClickDetector")
  735. Open.Parent = Part
  736. coroutine.wrap(function(Part2, Weld2)
  737. local SignalOn = false
  738. Open.MouseClick:connect(function()
  739. SignalOn = not SignalOn
  740. Part2.BrickColor = SignalOn == true and BrickColor.new("Institutional white") or BrickColor.new("Bright green")
  741. coroutine.wrap(function()
  742. if SignalOn == true then
  743. for i = 0, 0.1, 0.01 do
  744. Weld2.C1 = CFrame.new(0, i, 0)
  745. wait()
  746. end
  747. Weld2.C1 = CFrame.new(0, 0.1, 0)
  748. else
  749. for i = 0.1, 0, -0.01 do
  750. Weld2.C1 = CFrame.new(0, i, 0)
  751. wait()
  752. end
  753. Weld2.C1 = CFrame.new(0, 0, 0)
  754. end
  755. end)()
  756. end)
  757. local i = false
  758. coroutine.wrap(function()
  759. while true do
  760. i = not i
  761. wait(0.5)
  762. end
  763. end)()
  764. while true do
  765. if Vehicle:FindFirstChild("Left Front Turn Signal") ~= nil then
  766. if Vehicle["Left Front Turn Signal"]:FindFirstChild("Weld") == nil or SignalOn == false or i == false then
  767. Vehicle["Left Front Turn Signal"].Transparency = 0.5
  768. else
  769. Vehicle["Left Front Turn Signal"].Transparency = 0
  770. end
  771. end
  772. if Vehicle:FindFirstChild("Left Rear Turn Signal") ~= nil then
  773. if Vehicle["Left Rear Turn Signal"]:FindFirstChild("Weld") == nil or SignalOn == false or i == false then
  774. Vehicle["Left Rear Turn Signal"].Transparency = 0.5
  775. else
  776. Vehicle["Left Rear Turn Signal"].Transparency = 0
  777. end
  778. end
  779. wait()
  780. end
  781. end)(Part, Weld)
  782.  
  783. Part = Instance.new("Part")
  784. Part.Name = "Headlights Button"
  785. Part.BrickColor = BrickColor.new("New Yeller")
  786. Part.TopSurface = "Smooth"
  787. Part.BottomSurface = "Smooth"
  788. Part.FormFactor = "Custom"
  789. Part.Size = Vector3.new(0.5, 0.5, 0.5)
  790. Part.CanCollide = false
  791. Part.Parent = Vehicle
  792. Instance.new("CylinderMesh", Part)
  793. Weld = Instance.new("Weld")
  794. Weld.Parent = Part
  795. Weld.Part0 = Base
  796. Weld.Part1 = Part
  797. Weld.C0 = CFrame.new(0, 2.5, -1.8) * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
  798. local Open = Instance.new("ClickDetector")
  799. Open.Parent = Part
  800. coroutine.wrap(function(Part2, Weld2)
  801. local HeadlightsOn = false
  802. Open.MouseClick:connect(function()
  803. HeadlightsOn = not HeadlightsOn
  804. Part2.BrickColor = HeadlightsOn == true and BrickColor.new("Institutional white") or BrickColor.new("New Yeller")
  805. coroutine.wrap(function()
  806. if HeadlightsOn == true then
  807. for i = 0, 0.1, 0.01 do
  808. Weld2.C1 = CFrame.new(0, i, 0)
  809. wait()
  810. end
  811. Weld2.C1 = CFrame.new(0, 0.1, 0)
  812. else
  813. for i = 0.1, 0, -0.01 do
  814. Weld2.C1 = CFrame.new(0, i, 0)
  815. wait()
  816. end
  817. Weld2.C1 = CFrame.new(0, 0, 0)
  818. end
  819. end)()
  820. end)
  821. while true do
  822. if Vehicle:FindFirstChild("Left Headlight") ~= nil then
  823. if Vehicle["Left Headlight"]:FindFirstChild("Weld") == nil or HeadlightsOn == false then
  824. Vehicle["Left Headlight"].Transparency = 0.5
  825. else
  826. Vehicle["Left Headlight"].Transparency = 0
  827. end
  828. end
  829. if Vehicle:FindFirstChild("Right Headlight") ~= nil then
  830. if Vehicle["Right Headlight"]:FindFirstChild("Weld") == nil or HeadlightsOn == false then
  831. Vehicle["Right Headlight"].Transparency = 0.5
  832. else
  833. Vehicle["Right Headlight"].Transparency = 0
  834. end
  835. end
  836. wait()
  837. end
  838. end)(Part, Weld)
  839.  
  840. Part = Instance.new("Part")
  841. Part.Name = "Right Turn Signal Button"
  842. Part.BrickColor = BrickColor.new("Bright green")
  843. Part.TopSurface = "Smooth"
  844. Part.BottomSurface = "Smooth"
  845. Part.FormFactor = "Custom"
  846. Part.Size = Vector3.new(0.5, 0.5, 0.5)
  847. Part.CanCollide = false
  848. Part.Parent = Vehicle
  849. Instance.new("CylinderMesh", Part)
  850. Weld = Instance.new("Weld")
  851. Weld.Parent = Part
  852. Weld.Part0 = Base
  853. Weld.Part1 = Part
  854. Weld.C0 = CFrame.new(0.5, 2.5, -1.8) * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
  855. local Open = Instance.new("ClickDetector")
  856. Open.Parent = Part
  857. coroutine.wrap(function(Part2, Weld2)
  858. local SignalOn = false
  859. Open.MouseClick:connect(function()
  860. SignalOn = not SignalOn
  861. Part2.BrickColor = SignalOn == true and BrickColor.new("Institutional white") or BrickColor.new("Bright green")
  862. coroutine.wrap(function()
  863. if SignalOn == true then
  864. for i = 0, 0.1, 0.01 do
  865. Weld2.C1 = CFrame.new(0, i, 0)
  866. wait()
  867. end
  868. Weld2.C1 = CFrame.new(0, 0.1, 0)
  869. else
  870. for i = 0.1, 0, -0.01 do
  871. Weld2.C1 = CFrame.new(0, i, 0)
  872. wait()
  873. end
  874. Weld2.C1 = CFrame.new(0, 0, 0)
  875. end
  876. end)()
  877. end)
  878. local i = false
  879. coroutine.wrap(function()
  880. while true do
  881. i = not i
  882. wait(0.5)
  883. end
  884. end)()
  885. while true do
  886. if Vehicle:FindFirstChild("Right Front Turn Signal") ~= nil then
  887. if Vehicle["Right Front Turn Signal"]:FindFirstChild("Weld") == nil or SignalOn == false or i == false then
  888. Vehicle["Right Front Turn Signal"].Transparency = 0.5
  889. else
  890. Vehicle["Right Front Turn Signal"].Transparency = 0
  891. end
  892. if Vehicle:FindFirstChild("Right Rear Turn Signal") ~= nil then
  893. if Vehicle["Right Rear Turn Signal"]:FindFirstChild("Weld") == nil or SignalOn == false or i == false then
  894. Vehicle["Right Rear Turn Signal"].Transparency = 0.5
  895. else
  896. Vehicle["Right Rear Turn Signal"].Transparency = 0
  897. end
  898. end
  899. end
  900. wait()
  901. end
  902. end)(Part, Weld)
  903.  
  904. Part = Instance.new("Part")
  905. Part.Name = "Front Left Door"
  906. Part.BrickColor = MasterColor
  907. Part.TopSurface = "Smooth"
  908. Part.BottomSurface = "Smooth"
  909. Part.FormFactor = "Custom"
  910. Part.Size = Vector3.new(1, 3, 4)
  911. Part.Parent = Vehicle
  912. Weld = Instance.new("Weld")
  913. Weld.Parent = Part
  914. Weld.Part0 = Base
  915. Weld.Part1 = Part
  916. Weld.C0 = CFrame.new(-6, 1.5, -2)
  917. Weld.C1 = CFrame.new(-0.5, 0, -2)
  918. local Open = Instance.new("ClickDetector")
  919. Open.Parent = Part
  920. coroutine.wrap(function(Weld2)
  921. local IsOpen = false
  922. local CanOpen = true
  923. Open.MouseClick:connect(function()
  924. if IsOpen == false and CanOpen == true then
  925. CanOpen = false
  926. IsOpen = true
  927. for i = 0, 1, 0.1 do
  928. Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(90 * i), 0)
  929. wait()
  930. end
  931. CanOpen = true
  932. elseif IsOpen == true and CanOpen == true then
  933. CanOpen = false
  934. IsOpen = false
  935. for i = 1, 0, -0.1 do
  936. Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(90 * i), 0)
  937. wait()
  938. end
  939. CanOpen = true
  940. end
  941. end)
  942. end)(Weld)
  943.  
  944. Part = Instance.new("Part")
  945. Part.Name = "Front Right Door"
  946. Part.BrickColor = MasterColor
  947. Part.TopSurface = "Smooth"
  948. Part.BottomSurface = "Smooth"
  949. Part.FormFactor = "Custom"
  950. Part.Size = Vector3.new(1, 3, 4)
  951. Part.Parent = Vehicle
  952. Weld = Instance.new("Weld")
  953. Weld.Parent = Part
  954. Weld.Part0 = Base
  955. Weld.Part1 = Part
  956. Weld.C0 = CFrame.new(6, 1.5, -2)
  957. Weld.C1 = CFrame.new(0.5, 0, -2)
  958. local Open = Instance.new("ClickDetector")
  959. Open.Parent = Part
  960. coroutine.wrap(function(Weld2)
  961. local IsOpen = false
  962. local CanOpen = true
  963. Open.MouseClick:connect(function()
  964. if IsOpen == false and CanOpen == true then
  965. CanOpen = false
  966. IsOpen = true
  967. for i = 0, 1, 0.1 do
  968. Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90 * i), 0)
  969. wait()
  970. end
  971. CanOpen = true
  972. elseif IsOpen == true and CanOpen == true then
  973. CanOpen = false
  974. IsOpen = false
  975. for i = 1, 0, -0.1 do
  976. Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90 * i), 0)
  977. wait()
  978. end
  979. CanOpen = true
  980. end
  981. end)
  982. end)(Weld)
  983.  
  984. Part = Instance.new("Part")
  985. Part.Name = "Rear Left Door"
  986. Part.BrickColor = MasterColor
  987. Part.TopSurface = "Smooth"
  988. Part.BottomSurface = "Smooth"
  989. Part.FormFactor = "Custom"
  990. Part.Size = Vector3.new(1, 3, 4)
  991. Part.Parent = Vehicle
  992. Weld = Instance.new("Weld")
  993. Weld.Parent = Part
  994. Weld.Part0 = Base
  995. Weld.Part1 = Part
  996. Weld.C0 = CFrame.new(-6, 1.5, 2)
  997. Weld.C1 = CFrame.new(-0.5, 0, -2)
  998. local Open = Instance.new("ClickDetector")
  999. Open.Parent = Part
  1000. coroutine.wrap(function(Weld2)
  1001. local IsOpen = false
  1002. local CanOpen = true
  1003. Open.MouseClick:connect(function()
  1004. if IsOpen == false and CanOpen == true then
  1005. CanOpen = false
  1006. IsOpen = true
  1007. for i = 0, 1, 0.1 do
  1008. Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(90 * i), 0)
  1009. wait()
  1010. end
  1011. CanOpen = true
  1012. elseif IsOpen == true and CanOpen == true then
  1013. CanOpen = false
  1014. IsOpen = false
  1015. for i = 1, 0, -0.1 do
  1016. Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(90 * i), 0)
  1017. wait()
  1018. end
  1019. CanOpen = true
  1020. end
  1021. end)
  1022. end)(Weld)
  1023.  
  1024. Part = Instance.new("Part")
  1025. Part.Name = "Rear Right Door"
  1026. Part.BrickColor = MasterColor
  1027. Part.TopSurface = "Smooth"
  1028. Part.BottomSurface = "Smooth"
  1029. Part.FormFactor = "Custom"
  1030. Part.Size = Vector3.new(1, 3, 4)
  1031. Part.Parent = Vehicle
  1032. Weld = Instance.new("Weld")
  1033. Weld.Parent = Part
  1034. Weld.Part0 = Base
  1035. Weld.Part1 = Part
  1036. Weld.C0 = CFrame.new(6, 1.5, 2)
  1037. Weld.C1 = CFrame.new(0.5, 0, -2)
  1038. local Open = Instance.new("ClickDetector")
  1039. Open.Parent = Part
  1040. coroutine.wrap(function(Weld2)
  1041. local IsOpen = false
  1042. local CanOpen = true
  1043. Open.MouseClick:connect(function()
  1044. if IsOpen == false and CanOpen == true then
  1045. CanOpen = false
  1046. IsOpen = true
  1047. for i = 0, 1, 0.1 do
  1048. Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90 * i), 0)
  1049. wait()
  1050. end
  1051. CanOpen = true
  1052. elseif IsOpen == true and CanOpen == true then
  1053. CanOpen = false
  1054. IsOpen = false
  1055. for i = 1, 0, -0.1 do
  1056. Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90 * i), 0)
  1057. wait()
  1058. end
  1059. CanOpen = true
  1060. end
  1061. end)
  1062. end)(Weld)
  1063.  
  1064. Part = Instance.new("Part")
  1065. Part.Name = "Rear Right Bumper"
  1066. Part.BrickColor = MasterColor
  1067. Part.TopSurface = "Smooth"
  1068. Part.BottomSurface = "Smooth"
  1069. Part.FormFactor = "Custom"
  1070. Part.Size = Vector3.new(2, 1, 2)
  1071. Part.Parent = Vehicle
  1072. Mesh = Instance.new("SpecialMesh")
  1073. Mesh.MeshType = "Brick"
  1074. Mesh.Scale = Vector3.new(1, 1, 0.95)
  1075. Mesh.Parent = Part
  1076. Weld = Instance.new("Weld")
  1077. Weld.Parent = Part
  1078. Weld.Part0 = Base
  1079. Weld.Part1 = Part
  1080. Weld.C0 = CFrame.new(5, 0, 10.55)
  1081.  
  1082. Part = Instance.new("Part")
  1083. Part.Name = "Rear Left Bumper"
  1084. Part.BrickColor = MasterColor
  1085. Part.TopSurface = "Smooth"
  1086. Part.BottomSurface = "Smooth"
  1087. Part.FormFactor = "Custom"
  1088. Part.Size = Vector3.new(2, 1, 2)
  1089. Part.Parent = Vehicle
  1090. Mesh = Instance.new("SpecialMesh")
  1091. Mesh.MeshType = "Brick"
  1092. Mesh.Scale = Vector3.new(1, 1, 0.95)
  1093. Mesh.Parent = Part
  1094. Weld = Instance.new("Weld")
  1095. Weld.Parent = Part
  1096. Weld.Part0 = Base
  1097. Weld.Part1 = Part
  1098. Weld.C0 = CFrame.new(-5, 0, 10.55)
  1099.  
  1100. Part = Instance.new("Part")
  1101. Part.Name = "Rear Center Bumper"
  1102. Part.BrickColor = MasterColor
  1103. Part.TopSurface = "Smooth"
  1104. Part.BottomSurface = "Smooth"
  1105. Part.FormFactor = "Custom"
  1106. Part.Size = Vector3.new(8, 1, 3)
  1107. Part.Parent = Vehicle
  1108. Mesh = Instance.new("SpecialMesh")
  1109. Mesh.MeshType = "Brick"
  1110. Mesh.Scale = Vector3.new(1, 0.5, 1)
  1111. Mesh.Parent = Part
  1112. Weld = Instance.new("Weld")
  1113. Weld.Parent = Part
  1114. Weld.Part0 = Base
  1115. Weld.Part1 = Part
  1116. Weld.C0 = CFrame.new(0, -0.25, 10)
  1117.  
  1118. Part = Instance.new("Part")
  1119. Part.Name = "Rear Left Roof Support"
  1120. Part.BrickColor = MasterColor
  1121. Part.TopSurface = "Smooth"
  1122. Part.BottomSurface = "Smooth"
  1123. Part.FormFactor = "Custom"
  1124. Part.Size = Vector3.new(1, 4, 1)
  1125. Part.Parent = Vehicle
  1126. Weld = Instance.new("Weld")
  1127. Weld.Parent = Part
  1128. Weld.Part0 = Base
  1129. Weld.Part1 = Part
  1130. Weld.C0 = CFrame.new(-5.5, 4.125, 5.875) * CFrame.fromEulerAnglesXYZ(math.rad(-20), 0, 0)
  1131.  
  1132. Part = Instance.new("Part")
  1133. Part.Name = "Rear Right Roof Support"
  1134. Part.BrickColor = MasterColor
  1135. Part.TopSurface = "Smooth"
  1136. Part.BottomSurface = "Smooth"
  1137. Part.FormFactor = "Custom"
  1138. Part.Size = Vector3.new(1, 4, 1)
  1139. Part.Parent = Vehicle
  1140. Weld = Instance.new("Weld")
  1141. Weld.Parent = Part
  1142. Weld.Part0 = Base
  1143. Weld.Part1 = Part
  1144. Weld.C0 = CFrame.new(5.5, 4.125, 5.875) * CFrame.fromEulerAnglesXYZ(math.rad(-20), 0, 0)
  1145.  
  1146. Part = Instance.new("Part")
  1147. Part.Name = "Rear Window"
  1148. Part.BrickColor = BrickColor.new("Institutional white")
  1149. Part.Transparency = 0.75
  1150. Part.TopSurface = "Smooth"
  1151. Part.BottomSurface = "Smooth"
  1152. Part.FormFactor = "Custom"
  1153. Part.Size = Vector3.new(10, 4, 1)
  1154. Part.Parent = Vehicle
  1155. Weld = Instance.new("Weld")
  1156. Weld.Parent = Part
  1157. Weld.Part0 = Base
  1158. Weld.Part1 = Part
  1159. Weld.C0 = CFrame.new(0, 4.125, 5.875) * CFrame.fromEulerAnglesXYZ(math.rad(-20), 0, 0)
  1160.  
  1161. Part = Instance.new("Part")
  1162. Part.Name = "Center 1"
  1163. Part.BrickColor = MasterColor
  1164. Part.TopSurface = "Smooth"
  1165. Part.BottomSurface = "Smooth"
  1166. Part.FormFactor = "Custom"
  1167. Part.Size = Vector3.new(12, 3, 1)
  1168. Part.Parent = Vehicle
  1169. Mesh = Instance.new("SpecialMesh")
  1170. Mesh.MeshType = "Brick"
  1171. Mesh.Scale = Vector3.new(1, 1, 0.5)
  1172. Mesh.Parent = Part
  1173. Weld = Instance.new("Weld")
  1174. Weld.Parent = Part
  1175. Weld.Part0 = Base
  1176. Weld.Part1 = Part
  1177. Weld.C0 = CFrame.new(0, 1.5, 6.25)
  1178.  
  1179. Part = Instance.new("Part")
  1180. Part.Name = "Center 2"
  1181. Part.BrickColor = MasterColor
  1182. Part.TopSurface = "Smooth"
  1183. Part.BottomSurface = "Smooth"
  1184. Part.FormFactor = "Custom"
  1185. Part.Size = Vector3.new(8, 3, 1)
  1186. Part.Parent = Vehicle
  1187. Weld = Instance.new("Weld")
  1188. Weld.Parent = Part
  1189. Weld.Part0 = Base
  1190. Weld.Part1 = Part
  1191. Weld.C0 = CFrame.new(0, 1.5, 7)
  1192.  
  1193. Part = Instance.new("Part")
  1194. Part.Name = "Rear Left Well 1"
  1195. Part.BrickColor = MasterColor
  1196. Part.TopSurface = "Smooth"
  1197. Part.BottomSurface = "Smooth"
  1198. Part.FormFactor = "Custom"
  1199. Part.Size = Vector3.new(2, 2, 3)
  1200. Part.Parent = Vehicle
  1201. Mesh = Instance.new("SpecialMesh")
  1202. Mesh.MeshType = "Brick"
  1203. Mesh.Scale = Vector3.new(1, 0.75, 1)
  1204. Mesh.Parent = Part
  1205. Weld = Instance.new("Weld")
  1206. Weld.Parent = Part
  1207. Weld.Part0 = Base
  1208. Weld.Part1 = Part
  1209. Weld.C0 = CFrame.new(-5, 2.25, 8)
  1210.  
  1211. Part = Instance.new("Part")
  1212. Part.Name = "Rear Left Well 2"
  1213. Part.BrickColor = MasterColor
  1214. Part.TopSurface = "Smooth"
  1215. Part.BottomSurface = "Smooth"
  1216. Part.FormFactor = "Custom"
  1217. Part.Size = Vector3.new(2, 3, 2)
  1218. Part.Parent = Vehicle
  1219. Mesh = Instance.new("SpecialMesh")
  1220. Mesh.MeshType = "Brick"
  1221. Mesh.Scale = Vector3.new(1, 0.837, 1)
  1222. Mesh.Parent = Part
  1223. Weld = Instance.new("Weld")
  1224. Weld.Parent = Part
  1225. Weld.Part0 = Base
  1226. Weld.Part1 = Part
  1227. Weld.C0 = CFrame.new(-5, 1.75, 10.5)
  1228.  
  1229. Part = Instance.new("Part")
  1230. Part.Name = "Rear Right Well 1"
  1231. Part.BrickColor = MasterColor
  1232. Part.TopSurface = "Smooth"
  1233. Part.BottomSurface = "Smooth"
  1234. Part.FormFactor = "Custom"
  1235. Part.Size = Vector3.new(2, 2, 3)
  1236. Part.Parent = Vehicle
  1237. Mesh = Instance.new("SpecialMesh")
  1238. Mesh.MeshType = "Brick"
  1239. Mesh.Scale = Vector3.new(1, 0.75, 1)
  1240. Mesh.Parent = Part
  1241. Weld = Instance.new("Weld")
  1242. Weld.Parent = Part
  1243. Weld.Part0 = Base
  1244. Weld.Part1 = Part
  1245. Weld.C0 = CFrame.new(5, 2.25, 8)
  1246.  
  1247. Part = Instance.new("Part")
  1248. Part.Name = "Rear Right Well 2"
  1249. Part.BrickColor = MasterColor
  1250. Part.TopSurface = "Smooth"
  1251. Part.BottomSurface = "Smooth"
  1252. Part.FormFactor = "Custom"
  1253. Part.Size = Vector3.new(2, 3, 2)
  1254. Part.Parent = Vehicle
  1255. Mesh = Instance.new("SpecialMesh")
  1256. Mesh.MeshType = "Brick"
  1257. Mesh.Scale = Vector3.new(1, 0.837, 1)
  1258. Mesh.Parent = Part
  1259. Weld = Instance.new("Weld")
  1260. Weld.Parent = Part
  1261. Weld.Part0 = Base
  1262. Weld.Part1 = Part
  1263. Weld.C0 = CFrame.new(5, 1.75, 10.5)
  1264.  
  1265. Part = Instance.new("WedgePart")
  1266. Part.Name = "Rear Well 1"
  1267. Part.BrickColor = MasterColor
  1268. Part.TopSurface = "Smooth"
  1269. Part.BottomSurface = "Smooth"
  1270. Part.FormFactor = "Custom"
  1271. Part.Size = Vector3.new(12, 1, 1)
  1272. Part.Parent = Vehicle
  1273. Mesh = Instance.new("SpecialMesh")
  1274. Mesh.MeshType = "Wedge"
  1275. Mesh.Scale = Vector3.new(1, 0.5, 0.5)
  1276. Mesh.Parent = Part
  1277. Weld = Instance.new("Weld")
  1278. Weld.Parent = Part
  1279. Weld.Part0 = Base
  1280. Weld.Part1 = Part
  1281. Weld.C0 = CFrame.new(0, 1.25, 6.75) * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, 0)
  1282.  
  1283. Part = Instance.new("WedgePart")
  1284. Part.Name = "Rear Left Well 3"
  1285. Part.BrickColor = MasterColor
  1286. Part.TopSurface = "Smooth"
  1287. Part.BottomSurface = "Smooth"
  1288. Part.FormFactor = "Custom"
  1289. Part.Size = Vector3.new(2, 1, 1)
  1290. Part.Parent = Vehicle
  1291. Mesh = Instance.new("SpecialMesh")
  1292. Mesh.MeshType = "Wedge"
  1293. Mesh.Scale = Vector3.new(1, 0.5, 0.5)
  1294. Mesh.Parent = Part
  1295. Weld = Instance.new("Weld")
  1296. Weld.Parent = Part
  1297. Weld.Part0 = Base
  1298. Weld.Part1 = Part
  1299. Weld.C0 = CFrame.new(-5, 1.25, 9.25) * CFrame.fromEulerAnglesXYZ(math.rad(180), math.rad(180), 0)
  1300.  
  1301. Part = Instance.new("WedgePart")
  1302. Part.Name = "Rear Right Well 3"
  1303. Part.BrickColor = MasterColor
  1304. Part.TopSurface = "Smooth"
  1305. Part.BottomSurface = "Smooth"
  1306. Part.FormFactor = "Custom"
  1307. Part.Size = Vector3.new(2, 1, 1)
  1308. Part.Parent = Vehicle
  1309. Mesh = Instance.new("SpecialMesh")
  1310. Mesh.MeshType = "Wedge"
  1311. Mesh.Scale = Vector3.new(1, 0.5, 0.5)
  1312. Mesh.Parent = Part
  1313. Weld = Instance.new("Weld")
  1314. Weld.Parent = Part
  1315. Weld.Part0 = Base
  1316. Weld.Part1 = Part
  1317. Weld.C0 = CFrame.new(5, 1.25, 9.25) * CFrame.fromEulerAnglesXYZ(math.rad(180), math.rad(180), 0)
  1318.  
  1319. Part = Instance.new("Part")
  1320. Part.Name = "Bottom Trunk Lining"
  1321. Part.BrickColor = BrickColor.new("Black")
  1322. Part.TopSurface = "Smooth"
  1323. Part.BottomSurface = "Smooth"
  1324. Part.FormFactor = "Custom"
  1325. Part.Size = Vector3.new(8, 1, 3)
  1326. Part.Parent = Vehicle
  1327. Mesh = Instance.new("SpecialMesh")
  1328. Mesh.MeshType = "Brick"
  1329. Mesh.Scale = Vector3.new(1, 0.5025, 1.5)
  1330. Mesh.Parent = Part
  1331. Weld = Instance.new("Weld")
  1332. Weld.Parent = Part
  1333. Weld.Part0 = Base
  1334. Weld.Part1 = Part
  1335. Weld.C0 = CFrame.new(0, 0.25, 9.25)
  1336.  
  1337. Part = Instance.new("Part")
  1338. Part.Name = "Left Trunk Lining"
  1339. Part.BrickColor = BrickColor.new("Black")
  1340. Part.TopSurface = "Smooth"
  1341. Part.BottomSurface = "Smooth"
  1342. Part.FormFactor = "Custom"
  1343. Part.Size = Vector3.new(1, 3, 4)
  1344. Part.Parent = Vehicle
  1345. Mesh = Instance.new("SpecialMesh")
  1346. Mesh.MeshType = "Brick"
  1347. Mesh.Scale = Vector3.new(0.5, 1, 1)
  1348. Mesh.Parent = Part
  1349. Weld = Instance.new("Weld")
  1350. Weld.Parent = Part
  1351. Weld.Part0 = Base
  1352. Weld.Part1 = Part
  1353. Weld.C0 = CFrame.new(-3.75, 1.5, 9.5)
  1354.  
  1355. Part = Instance.new("Part")
  1356. Part.Name = "Right Trunk Lining"
  1357. Part.BrickColor = BrickColor.new("Black")
  1358. Part.TopSurface = "Smooth"
  1359. Part.BottomSurface = "Smooth"
  1360. Part.FormFactor = "Custom"
  1361. Part.Size = Vector3.new(1, 3, 4)
  1362. Part.Parent = Vehicle
  1363. Mesh = Instance.new("SpecialMesh")
  1364. Mesh.MeshType = "Brick"
  1365. Mesh.Scale = Vector3.new(0.5, 1, 1)
  1366. Mesh.Parent = Part
  1367. Weld = Instance.new("Weld")
  1368. Weld.Parent = Part
  1369. Weld.Part0 = Base
  1370. Weld.Part1 = Part
  1371. Weld.C0 = CFrame.new(3.75, 1.5, 9.5)
  1372.  
  1373. Part = Instance.new("WedgePart")
  1374. Part.Name = "Front Trunk Lining"
  1375. Part.BrickColor = BrickColor.new("Black")
  1376. Part.TopSurface = "Smooth"
  1377. Part.BottomSurface = "Smooth"
  1378. Part.FormFactor = "Custom"
  1379. Part.Size = Vector3.new(7, 3, 1)
  1380. Part.Parent = Vehicle
  1381. Weld = Instance.new("Weld")
  1382. Weld.Parent = Part
  1383. Weld.Part0 = Base
  1384. Weld.Part1 = Part
  1385. Weld.C0 = CFrame.new(0, 1.5, 8) * CFrame.fromEulerAnglesXYZ(0, math.rad(180), 0)
  1386.  
  1387. Part = Instance.new("Part")
  1388. Part.Name = "Rear Trunk Lining"
  1389. Part.BrickColor = BrickColor.new("Black")
  1390. Part.TopSurface = "Smooth"
  1391. Part.BottomSurface = "Smooth"
  1392. Part.FormFactor = "Custom"
  1393. Part.Size = Vector3.new(7, 1, 1)
  1394. Part.Parent = Vehicle
  1395. Mesh = Instance.new("SpecialMesh")
  1396. Mesh.MeshType = "Brick"
  1397. Mesh.Scale = Vector3.new(1, 1, 0.5)
  1398. Mesh.Parent = Part
  1399. Weld = Instance.new("Weld")
  1400. Weld.Parent = Part
  1401. Weld.Part0 = Base
  1402. Weld.Part1 = Part
  1403. Weld.C0 = CFrame.new(0, 0.5, 11.25)
  1404.  
  1405. Part = Instance.new("Part")
  1406. Part.Name = "Trunk 1"
  1407. Part.BrickColor = MasterColor
  1408. Part.TopSurface = "Smooth"
  1409. Part.BottomSurface = "Smooth"
  1410. Part.FormFactor = "Custom"
  1411. Part.Size = Vector3.new(8, 1, 4)
  1412. Part.Parent = Vehicle
  1413. Mesh = Instance.new("SpecialMesh")
  1414. Mesh.MeshType = "Brick"
  1415. Mesh.Scale = Vector3.new(1, 0.5, 1)
  1416. Mesh.Parent = Part
  1417. Weld = Instance.new("Weld")
  1418. Weld.Parent = Part
  1419. Weld.Part0 = Base
  1420. Weld.Part1 = Part
  1421. Weld.C0 = CFrame.new(0, 2.751, 7)
  1422. Weld.C1 = CFrame.new(0, 0, -2.25)
  1423. local Open = Instance.new("ClickDetector")
  1424. Open.Parent = Part
  1425. coroutine.wrap(function(Weld2)
  1426. local IsOpen = false
  1427. local CanOpen = true
  1428. Open.MouseClick:connect(function()
  1429. if IsOpen == false and CanOpen == true then
  1430. CanOpen = false
  1431. IsOpen = true
  1432. for i = 0, 1, 0.05 do
  1433. Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(math.rad(90 * i), 0, 0)
  1434. wait()
  1435. end
  1436. Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
  1437. CanOpen = true
  1438. elseif IsOpen == true and CanOpen == true then
  1439. CanOpen = false
  1440. IsOpen = false
  1441. for i = 1, 0, -0.05 do
  1442. Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(math.rad(90 * i), 0, 0)
  1443. wait()
  1444. end
  1445. Weld2.C1 = CFrame.new(Weld2.C1.p)
  1446. CanOpen = true
  1447. end
  1448. end)
  1449. end)(Weld)
  1450.  
  1451. Part = Instance.new("Part")
  1452. Part.Name = "Trunk 2"
  1453. Part.BrickColor = MasterColor
  1454. Part.TopSurface = "Smooth"
  1455. Part.BottomSurface = "Smooth"
  1456. Part.FormFactor = "Custom"
  1457. Part.Size = Vector3.new(8, 3, 1)
  1458. Part.Parent = Vehicle
  1459. Mesh = Instance.new("SpecialMesh")
  1460. Mesh.MeshType = "Brick"
  1461. Mesh.Scale = Vector3.new(1, 1, 0.5)
  1462. Mesh.Parent = Part
  1463. Weld = Instance.new("Weld")
  1464. Weld.Parent = Part
  1465. Weld.Part0 = Vehicle["Trunk 1"]
  1466. Weld.Part1 = Part
  1467. Weld.C0 = CFrame.new(0, -1.25, 2.01)
  1468.  
  1469. Part = Instance.new("Part")
  1470. Part.Name = "Left Brake Light"
  1471. Part.TopSurface = "Smooth"
  1472. Part.BottomSurface = "Smooth"
  1473. Part.FormFactor = "Custom"
  1474. Part.Size = Vector3.new(1, 1, 1)
  1475. Part.Parent = Vehicle
  1476. Mesh = Instance.new("SpecialMesh")
  1477. Mesh.MeshType = "Brick"
  1478. Mesh.Scale = Vector3.new(0.75, 1, 0.01)
  1479. Mesh.Parent = Part
  1480. Weld = Instance.new("Weld")
  1481. Weld.Parent = Part
  1482. Weld.Part0 = Base
  1483. Weld.Part1 = Part
  1484. Weld.C0 = CFrame.new(-5, 2, 11.5)
  1485. coroutine.wrap(function(Part2)
  1486. while true do
  1487. if Part2:FindFirstChild("Weld") == nil or IsBraking == false then
  1488. Part2.Transparency = 0.75
  1489. Part2.BrickColor = BrickColor.new("Dark red")
  1490. else
  1491. Part2.Transparency = 0
  1492. Part2.BrickColor = BrickColor.new("Really red")
  1493. end
  1494. wait()
  1495. end
  1496. end)(Part)
  1497.  
  1498. Part = Instance.new("Part")
  1499. Part.Name = "Left Rear Turn Signal"
  1500. Part.BrickColor = BrickColor.new("New Yeller")
  1501. Part.TopSurface = "Smooth"
  1502. Part.BottomSurface = "Smooth"
  1503. Part.FormFactor = "Custom"
  1504. Part.Size = Vector3.new(1, 1, 1)
  1505. Part.Parent = Vehicle
  1506. Mesh = Instance.new("SpecialMesh")
  1507. Mesh.MeshType = "Brick"
  1508. Mesh.Scale = Vector3.new(0.5, 1.5, 0.01)
  1509. Mesh.Parent = Part
  1510. Weld = Instance.new("Weld")
  1511. Weld.Parent = Part
  1512. Weld.Part0 = Base
  1513. Weld.Part1 = Part
  1514. Weld.C0 = CFrame.new(-4.375, 1.75, 11.5)
  1515.  
  1516. Part = Instance.new("Part")
  1517. Part.Name = "Right Brake Light"
  1518. Part.TopSurface = "Smooth"
  1519. Part.BottomSurface = "Smooth"
  1520. Part.FormFactor = "Custom"
  1521. Part.Size = Vector3.new(1, 1, 1)
  1522. Part.Parent = Vehicle
  1523. Mesh = Instance.new("SpecialMesh")
  1524. Mesh.MeshType = "Brick"
  1525. Mesh.Scale = Vector3.new(0.75, 1, 0.01)
  1526. Mesh.Parent = Part
  1527. Weld = Instance.new("Weld")
  1528. Weld.Parent = Part
  1529. Weld.Part0 = Base
  1530. Weld.Part1 = Part
  1531. Weld.C0 = CFrame.new(5, 2, 11.5)
  1532. coroutine.wrap(function(Part2)
  1533. while true do
  1534. if Part2:FindFirstChild("Weld") == nil or IsBraking == false then
  1535. Part2.Transparency = 0.75
  1536. Part2.BrickColor = BrickColor.new("Dark red")
  1537. else
  1538. Part2.Transparency = 0
  1539. Part2.BrickColor = BrickColor.new("Really red")
  1540. end
  1541. wait()
  1542. end
  1543. end)(Part)
  1544.  
  1545. Part = Instance.new("Part")
  1546. Part.Name = "Right Rear Turn Signal"
  1547. Part.BrickColor = BrickColor.new("New Yeller")
  1548. Part.TopSurface = "Smooth"
  1549. Part.BottomSurface = "Smooth"
  1550. Part.FormFactor = "Custom"
  1551. Part.Size = Vector3.new(1, 1, 1)
  1552. Part.Parent = Vehicle
  1553. Mesh = Instance.new("SpecialMesh")
  1554. Mesh.MeshType = "Brick"
  1555. Mesh.Scale = Vector3.new(0.5, 1.5, 0.01)
  1556. Mesh.Parent = Part
  1557. Weld = Instance.new("Weld")
  1558. Weld.Parent = Part
  1559. Weld.Part0 = Base
  1560. Weld.Part1 = Part
  1561. Weld.C0 = CFrame.new(4.375, 1.75, 11.5)
  1562.  
  1563. Part = Instance.new("Part")
  1564. Part.Name = "Left Reverse Light"
  1565. Part.TopSurface = "Smooth"
  1566. Part.BottomSurface = "Smooth"
  1567. Part.FormFactor = "Custom"
  1568. Part.Size = Vector3.new(1, 1, 1)
  1569. Part.Parent = Vehicle
  1570. Mesh = Instance.new("SpecialMesh")
  1571. Mesh.MeshType = "Brick"
  1572. Mesh.Scale = Vector3.new(0.75, 0.5, 0.01)
  1573. Mesh.Parent = Part
  1574. Weld = Instance.new("Weld")
  1575. Weld.Parent = Part
  1576. Weld.Part0 = Base
  1577. Weld.Part1 = Part
  1578. Weld.C0 = CFrame.new(-5, 1.25, 11.5)
  1579. coroutine.wrap(function(Part2)
  1580. wait()
  1581. while true do
  1582. if Part2:FindFirstChild("Weld") == nil or ThrottlePercent >= 0 then
  1583. Part2.Transparency = 0.5
  1584. Part2.BrickColor = BrickColor.new("White")
  1585. else
  1586. Part2.Transparency = 0
  1587. Part2.BrickColor = BrickColor.new("Institutional white")
  1588. end
  1589. wait()
  1590. end
  1591. end)(Part)
  1592.  
  1593. Part = Instance.new("Part")
  1594. Part.Name = "Right Reverse Light"
  1595. Part.TopSurface = "Smooth"
  1596. Part.BottomSurface = "Smooth"
  1597. Part.FormFactor = "Custom"
  1598. Part.Size = Vector3.new(1, 1, 1)
  1599. Part.Parent = Vehicle
  1600. Mesh = Instance.new("SpecialMesh")
  1601. Mesh.MeshType = "Brick"
  1602. Mesh.Scale = Vector3.new(0.75, 0.5, 0.01)
  1603. Mesh.Parent = Part
  1604. Weld = Instance.new("Weld")
  1605. Weld.Parent = Part
  1606. Weld.Part0 = Base
  1607. Weld.Part1 = Part
  1608. Weld.C0 = CFrame.new(5, 1.25, 11.5)
  1609. coroutine.wrap(function(Part2)
  1610. wait()
  1611. while true do
  1612. if Part2:FindFirstChild("Weld") == nil or ThrottlePercent >= 0 then
  1613. Part2.Transparency = 0.5
  1614. Part2.BrickColor = BrickColor.new("White")
  1615. else
  1616. Part2.Transparency = 0
  1617. Part2.BrickColor = BrickColor.new("Institutional white")
  1618. end
  1619. wait()
  1620. end
  1621. end)(Part)
  1622.  
  1623. Part = Instance.new("Part")
  1624. Part.Name = "Rear Right Wheel"
  1625. Part.BrickColor = BrickColor.new("Really black")
  1626. Part.TopSurface = "Smooth"
  1627. Part.BottomSurface = "Smooth"
  1628. Part.FormFactor = "Custom"
  1629. Part.Size = Vector3.new(3, 2, 3)
  1630. Part.Friction = TireFriction
  1631. Part.Elasticity = TireElasticity
  1632. Part.Parent = Vehicle
  1633. Mesh = Instance.new("CylinderMesh")
  1634. Mesh.Parent = Part
  1635. Weld = Instance.new("Weld")
  1636. Weld.Parent = Part
  1637. Weld.Part0 = Base
  1638. Weld.Part1 = Part
  1639. Weld.C0 = CFrame.new(5, 0, 8) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))
  1640.  
  1641. Part = Instance.new("Part")
  1642. Part.Name = "Rear Left Wheel"
  1643. Part.BrickColor = BrickColor.new("Really black")
  1644. Part.TopSurface = "Smooth"
  1645. Part.BottomSurface = "Smooth"
  1646. Part.FormFactor = "Custom"
  1647. Part.Size = Vector3.new(3, 2, 3)
  1648. Part.Friction = TireFriction
  1649. Part.Elasticity = TireElasticity
  1650. Part.Parent = Vehicle
  1651. Mesh = Instance.new("CylinderMesh")
  1652. Mesh.Parent = Part
  1653. Weld = Instance.new("Weld")
  1654. Weld.Parent = Part
  1655. Weld.Part0 = Base
  1656. Weld.Part1 = Part
  1657. Weld.C0 = CFrame.new(-5, 0, 8) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))
  1658.  
  1659. Part = Instance.new("Part")
  1660. Part.Name = "Front Right Wheel"
  1661. Part.BrickColor = BrickColor.new("Really black")
  1662. Part.TopSurface = "Smooth"
  1663. Part.BottomSurface = "Smooth"
  1664. Part.FormFactor = "Custom"
  1665. Part.Size = Vector3.new(3, 2, 3)
  1666. Part.Friction = TireFriction
  1667. Part.Elasticity = TireElasticity
  1668. Part.Parent = Vehicle
  1669. Mesh = Instance.new("CylinderMesh")
  1670. Mesh.Parent = Part
  1671. Weld = Instance.new("Weld")
  1672. Weld.Parent = Part
  1673. Weld.Part0 = Base
  1674. Weld.Part1 = Part
  1675. Weld.C0 = CFrame.new(5, 0, -4) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))
  1676.  
  1677. Part = Instance.new("Part")
  1678. Part.Name = "Front Left Wheel"
  1679. Part.BrickColor = BrickColor.new("Really black")
  1680. Part.TopSurface = "Smooth"
  1681. Part.BottomSurface = "Smooth"
  1682. Part.FormFactor = "Custom"
  1683. Part.Size = Vector3.new(3, 2, 3)
  1684. Part.Friction = TireFriction
  1685. Part.Elasticity = TireElasticity
  1686. Part.Parent = Vehicle
  1687. Mesh = Instance.new("CylinderMesh")
  1688. Mesh.Parent = Part
  1689. Weld = Instance.new("Weld")
  1690. Weld.Parent = Part
  1691. Weld.Part0 = Base
  1692. Weld.Part1 = Part
  1693. Weld.C0 = CFrame.new(-5, 0, -4) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))
  1694.  
  1695. Vehicle:MoveTo((Workspace:FindFirstChild("DarkShadow6") == nil and Vector3.new() or Workspace.DarkShadow6.Torso.Position) + Vector3.new(9, 3, 0))
  1696.  
  1697. loadstring(game:GetService("InsertService"):LoadAsset(62456942)["VehicleSupport"].Value)()
Add Comment
Please, Sign In to add comment