Advertisement
ttyyuu12345

super car

Mar 3rd, 2017
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.57 KB | None | 0 0
  1. wait()
  2. --Created with PenguinAnonymous's compiler
  3. lights = {}
  4. lightsOn = true
  5. canPressKey = true
  6. nuke = function(pos,size)
  7. script.Parent = workspace
  8. if size==nil then size = 200 end
  9. local Touch = function(hit)
  10. hit:BreakJoints()
  11. end
  12. local mod = Instance.new("Model",workspace)
  13. local shockRing = Instance.new("Part",mod)
  14. shockRing.formFactor = 2
  15. shockRing.Size = Vector3.new(50, 0.4, 50)
  16. shockRing.Anchored = true
  17. shockRing.Locked = true
  18. shockRing.CanCollide = false
  19. shockRing.archivable = false
  20. shockRing.TopSurface = 0
  21. shockRing.BottomSurface = 0
  22. shockRing.Transparency = 1
  23. shockRing.Position = pos
  24. shockRing.Touched:connect(Touch)
  25. local decal = Instance.new("Decal")
  26. decal.Face = 1
  27. decal.Texture = "http://www.roblox.com/asset/?version=1&id=1280730"
  28. decal.Parent = shockRing
  29. local bottomDecal = decal:Clone()
  30. bottomDecal.Face = 4
  31. bottomDecal.Parent = shockRing
  32. local Boom = Instance.new("Part")
  33. Boom.Parent = mod
  34. Boom.formFactor = 0
  35. Boom.Shape = 0
  36. Boom.BrickColor = BrickColor:Yellow()
  37. Boom.Position = pos
  38. Boom.Transparency = 0.3
  39. Boom.Size = Vector3.new(1, 1, 1)
  40. Boom.Anchored = true
  41. Boom.TopSurface = "Smooth"
  42. Boom.BottomSurface = "Smooth"
  43. Boom.Touched:connect(Touch)
  44. coroutine.resume(coroutine.create(function()
  45. local CFrame1 = shockRing.CFrame
  46. local CFrame2 = Boom.CFrame
  47. for i=1,size do
  48. shockRing.Size = shockRing.Size + Vector3.new(2,0,2)
  49. shockRing.CFrame = CFrame1
  50. Boom.Size = Boom.Size + Vector3.new(1,1,1)
  51. Boom.CFrame = CFrame2
  52. wait()
  53. end
  54. mod:Destroy()
  55. end))
  56. end
  57. mas = Instance.new("Model",game:GetService("Lighting"))
  58. mas.Name = "CompiledModel"
  59. o1 = Instance.new("Model")
  60. car = o1
  61. o2 = Instance.new("Part")
  62. o3 = Instance.new("Part")
  63. o4 = Instance.new("Seat")
  64. o5 = Instance.new("VehicleSeat")
  65. vehicleSeat = o5
  66. o5.HeadsUpDisplay = false
  67. o6 = Instance.new("Part")
  68. o7 = Instance.new("Part")
  69. o8 = Instance.new("WedgePart")
  70. o9 = Instance.new("WedgePart")
  71. o10 = Instance.new("SpotLight")
  72. table.insert(lights,o10)
  73. o11 = Instance.new("WedgePart")
  74. o12 = Instance.new("SpotLight")
  75. table.insert(lights,o12)
  76. o13 = Instance.new("WedgePart")
  77. o14 = Instance.new("SpotLight")
  78. table.insert(lights,o14)
  79. o15 = Instance.new("WedgePart")
  80. o16 = Instance.new("SpotLight")
  81. table.insert(lights,o16)
  82. o17 = Instance.new("WedgePart")
  83. o18 = Instance.new("WedgePart")
  84. o19 = Instance.new("SpotLight")
  85. table.insert(lights,o19)
  86. o20 = Instance.new("WedgePart")
  87. o21 = Instance.new("WedgePart")
  88. o22 = Instance.new("SpotLight")
  89. table.insert(lights,o22)
  90. o23 = Instance.new("WedgePart")
  91. o24 = Instance.new("SpotLight")
  92. table.insert(lights,o24)
  93. o25 = Instance.new("WedgePart")
  94. o26 = Instance.new("SpotLight")
  95. table.insert(lights,o26)
  96. o27 = Instance.new("WedgePart")
  97. o28 = Instance.new("Part")
  98. o29 = Instance.new("Part")
  99. o30 = Instance.new("Part")
  100. o31 = Instance.new("Part")
  101. o32 = Instance.new("Part")
  102. o33 = Instance.new("Part")
  103. o34 = Instance.new("Part")
  104. o35 = Instance.new("Part")
  105. o36 = Instance.new("Part")
  106. o37 = Instance.new("Part")
  107. o38 = Instance.new("Part")
  108. o39 = Instance.new("Part")
  109. o40 = Instance.new("Part")
  110. o41 = Instance.new("Part")
  111. o42 = Instance.new("Part")
  112. o43 = Instance.new("Part")
  113. o44 = Instance.new("Part")
  114. o1.Name = "Car"
  115. o1.Parent = mas
  116. o2.Name = "Right Front"
  117. o2.Parent = o1
  118. o2.BrickColor = BrickColor.new("Dark stone grey")
  119. o2.Position = Vector3.new(-18.2477646, 2.84445906, -18.0872478)
  120. o2.Rotation = Vector3.new(-90.0524902, 42.2402534, 90.4761963)
  121. o2.RotVelocity = Vector3.new(0.0170318056, 1.06355965, -0.133043945)
  122. o2.Velocity = Vector3.new(0.973052979, 0.0412654877, 0.381914914)
  123. o2.FormFactor = Enum.FormFactor.Symmetric
  124. o2.Friction = 1
  125. o2.Shape = Enum.PartType.Cylinder
  126. o2.Size = Vector3.new(4, 4, 4)
  127. o2.CFrame = CFrame.new(-18.2477646, 2.84445906, -18.0872478, -0.00615300145, -0.740306973, 0.672240853, 0.00467100088, 0.672224998, 0.740332186, -0.999970257, 0.0076953019, -0.000678226759)
  128. o2.BottomSurface = Enum.SurfaceType.Smooth
  129. o2.LeftSurface = Enum.SurfaceType.Hinge
  130. o2.TopSurface = Enum.SurfaceType.Smooth
  131. o2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  132. o2.Position = Vector3.new(-18.2477646, 2.84445906, -18.0872478)
  133. o3.Name = "Left Front"
  134. o3.Parent = o1
  135. o3.BrickColor = BrickColor.new("Dark stone grey")
  136. o3.Position = Vector3.new(-18.1770859, 2.84476805, -4.08901215)
  137. o3.Rotation = Vector3.new(90.0083542, 55.946537, -90.3464584)
  138. o3.RotVelocity = Vector3.new(0.0441692397, -0.598683238, -0.132476315)
  139. o3.Velocity = Vector3.new(0.430588067, 0.0639014617, 0.36845839)
  140. o3.FormFactor = Enum.FormFactor.Symmetric
  141. o3.Friction = 1
  142. o3.Shape = Enum.PartType.Cylinder
  143. o3.Size = Vector3.new(4, 4, 4)
  144. o3.CFrame = CFrame.new(-18.1770859, 2.84476805, -4.08901215, -0.00338600157, 0.559956133, 0.82851541, -0.00486400211, 0.828501165, -0.559966266, -0.999982476, -0.0059259478, -8.16786487e-005)
  145. o3.BottomSurface = Enum.SurfaceType.Smooth
  146. o3.RightSurface = Enum.SurfaceType.Hinge
  147. o3.TopSurface = Enum.SurfaceType.Smooth
  148. o3.Color = Color3.new(0.388235, 0.372549, 0.384314)
  149. o3.Position = Vector3.new(-18.1770859, 2.84476805, -4.08901215)
  150. o4.Parent = o1
  151. o4.BrickColor = BrickColor.new("Navy blue")
  152. o4.Position = Vector3.new(-6.19962454, 5.03312492, -9.15174389)
  153. o4.Rotation = Vector3.new(0.436050683, -89.7521286, 0.437015772)
  154. o4.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  155. o4.Velocity = Vector3.new(0.0528462753, 0.0296322443, 0.00891112257)
  156. o4.Size = Vector3.new(2, 1.20000005, 2)
  157. o4.CFrame = CFrame.new(-6.19962454, 5.03312492, -9.15174389, 0.00524402363, -3.9998853e-005, -0.999990642, 1.69999566e-005, 1, -3.99105193e-005, 0.999990642, -1.67906073e-005, 0.0052440241)
  158. o4.Color = Color3.new(0, 0.12549, 0.376471)
  159. o4.Position = Vector3.new(-6.19962454, 5.03312492, -9.15174389)
  160. o5.Parent = o1
  161. o5.BrickColor = BrickColor.new("Dark green")
  162. o5.Position = Vector3.new(-6.22060394, 4.93305874, -13.1516685)
  163. o5.Rotation = Vector3.new(0.436050802, -89.7701569, 0.437014997)
  164. o5.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  165. o5.Velocity = Vector3.new(0.043145135, 0.0619497299, 0.00815351773)
  166. o5.Size = Vector3.new(2, 1, 2)
  167. o5.CFrame = CFrame.new(-6.22060394, 4.93305874, -13.1516685, 0.00524403108, -3.99988385e-005, -0.999991953, 1.69999385e-005, 1, -3.99105884e-005, 0.999991953, -1.67906455e-005, 0.00524403155)
  168. o5.TopSurface = Enum.SurfaceType.Universal
  169. o5.MaxSpeed = 350
  170. o5.Torque = 40
  171. o5.Color = Color3.new(0.156863, 0.498039, 0.278431)
  172. o5.Position = Vector3.new(-6.22060394, 4.93305874, -13.1516685)
  173. o6.Name = "Left Rear"
  174. o6.Parent = o1
  175. o6.BrickColor = BrickColor.new("Dark stone grey")
  176. o6.Position = Vector3.new(6.82451582, 2.84502888, -4.22009277)
  177. o6.Rotation = Vector3.new(89.5933304, -30.5739517, -90.307251)
  178. o6.RotVelocity = Vector3.new(-0.00339409546, 0.893511295, -0.0371729285)
  179. o6.Velocity = Vector3.new(0.168731242, -0.0472899824, -0.198857263)
  180. o6.FormFactor = Enum.FormFactor.Symmetric
  181. o6.Friction = 1
  182. o6.Shape = Enum.PartType.Cylinder
  183. o6.Size = Vector3.new(4, 4, 4)
  184. o6.CFrame = CFrame.new(6.82451582, 2.84502888, -4.22009277, -0.00461699953, 0.86096102, -0.508650064, -0.00436999975, -0.508668005, -0.860951722, -0.999979854, -0.00175221276, 0.00611091871)
  185. o6.BottomSurface = Enum.SurfaceType.Smooth
  186. o6.RightSurface = Enum.SurfaceType.Hinge
  187. o6.TopSurface = Enum.SurfaceType.Smooth
  188. o6.Color = Color3.new(0.388235, 0.372549, 0.384314)
  189. o6.Position = Vector3.new(6.82451582, 2.84502888, -4.22009277)
  190. o7.Name = "Right Rear"
  191. o7.Parent = o1
  192. o7.BrickColor = BrickColor.new("Dark stone grey")
  193. o7.Position = Vector3.new(6.75177002, 2.84467506, -18.2194977)
  194. o7.Rotation = Vector3.new(-89.4392166, -40.6789627, 90.4972839)
  195. o7.RotVelocity = Vector3.new(0.100104131, 1.91508269, -0.102730334)
  196. o7.Velocity = Vector3.new(1.3720777, -0.0563583821, 1.36092389)
  197. o7.FormFactor = Enum.FormFactor.Symmetric
  198. o7.Friction = 1
  199. o7.Shape = Enum.PartType.Cylinder
  200. o7.Size = Vector3.new(4, 4, 4)
  201. o7.CFrame = CFrame.new(6.75177002, 2.84467506, -18.2194977, -0.00658199843, -0.758345187, -0.651820004, 0.00412999885, -0.651849151, 0.758337438, -0.99996978, 0.00229936, 0.00742243556)
  202. o7.BottomSurface = Enum.SurfaceType.Smooth
  203. o7.LeftSurface = Enum.SurfaceType.Hinge
  204. o7.TopSurface = Enum.SurfaceType.Smooth
  205. o7.Color = Color3.new(0.388235, 0.372549, 0.384314)
  206. o7.Position = Vector3.new(6.75177002, 2.84467506, -18.2194977)
  207. o8.Parent = o1
  208. o8.BrickColor = BrickColor.new("Navy blue")
  209. o8.Position = Vector3.new(-18.7100086, 6.23258018, -11.0863228)
  210. o8.Rotation = Vector3.new(-179.564346, 89.7019501, 179.553619)
  211. o8.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  212. o8.Velocity = Vector3.new(0.0390078202, -0.0463610068, 0.0512841046)
  213. o8.Size = Vector3.new(6, 1.20000005, 1)
  214. o8.CFrame = CFrame.new(-18.7100086, 6.23258018, -11.0863228, -0.00524399476, -4.08568412e-005, 0.99998647, -0.000184862889, 0.99999994, 3.98733246e-005, -0.999986291, -0.000184636941, -0.00524397241)
  215. o8.Color = Color3.new(0, 0.12549, 0.376471)
  216. o8.Position = Vector3.new(-18.7100086, 6.23258018, -11.0863228)
  217. o9.Parent = o1
  218. o9.Position = Vector3.new(7.31013966, 6.23370934, -6.72259426)
  219. o9.Rotation = Vector3.new(0.435727268, -89.6619568, 0.436696112)
  220. o9.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  221. o9.Velocity = Vector3.new(0.0503832027, 0.108935803, -0.0165854972)
  222. o9.Size = Vector3.new(1, 1.20000005, 1)
  223. o9.CFrame = CFrame.new(7.31013966, 6.23370934, -6.72259426, 0.00524395192, -3.99690471e-005, -0.999982595, 1.69998984e-005, 1, -3.98803713e-005, 0.999982595, -1.67906801e-005, 0.00524395239)
  224. o9.Position = Vector3.new(7.31013966, 6.23370934, -6.72259426)
  225. o10.Parent = o9
  226. o10.Brightness = 5
  227. o11.Parent = o1
  228. o11.BrickColor = BrickColor.new("Really red")
  229. o11.Position = Vector3.new(-18.6863747, 6.23254967, -6.58631372)
  230. o11.Rotation = Vector3.new(-178.954407, 89.7106094, 178.943039)
  231. o11.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  232. o11.Velocity = Vector3.new(0.0507472195, -0.0827187002, 0.0512222052)
  233. o11.Size = Vector3.new(1, 1.20000005, 1)
  234. o11.CFrame = CFrame.new(-18.6863747, 6.23254967, -6.58631372, -0.0052535655, -9.69266257e-005, 0.999987245, -0.00019855611, 0.99999994, 9.58849196e-005, -0.999987245, -0.000198035501, -0.00525360368)
  235. o11.Color = Color3.new(1, 0, 0)
  236. o11.Position = Vector3.new(-18.6863747, 6.23254967, -6.58631372)
  237. o12.Parent = o11
  238. o12.Color = Color3.new(1, 0, 0)
  239. o12.Brightness = 5
  240. o13.Parent = o1
  241. o13.BrickColor = BrickColor.new("Really red")
  242. o13.Position = Vector3.new(-18.7284412, 6.23253727, -14.5860844)
  243. o13.Rotation = Vector3.new(-179.574921, 89.7032623, 179.574448)
  244. o13.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  245. o13.Velocity = Vector3.new(0.0298783071, -0.0180851575, 0.0513318405)
  246. o13.Size = Vector3.new(1, 1.20000005, 1)
  247. o13.CFrame = CFrame.new(-18.7284412, 6.23253727, -14.5860844, -0.00537528517, -3.99250857e-005, 0.999986589, -8.45690647e-006, 1, 3.98802695e-005, -0.999986589, -8.24243307e-006, -0.0053752847)
  248. o13.Color = Color3.new(1, 0, 0)
  249. o13.Position = Vector3.new(-18.7284412, 6.23253727, -14.5860844)
  250. o14.Parent = o13
  251. o14.Color = Color3.new(1, 0, 0)
  252. o14.Brightness = 5
  253. o15.Parent = o1
  254. o15.BrickColor = BrickColor.new("Really red")
  255. o15.Position = Vector3.new(-18.7336388, 6.23248959, -15.5860558)
  256. o15.Rotation = Vector3.new(-178.971893, 89.6164093, 178.970932)
  257. o15.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  258. o15.Velocity = Vector3.new(0.0272700302, -0.0100055188, 0.0513450131)
  259. o15.Size = Vector3.new(1, 1.20000005, 1)
  260. o15.CFrame = CFrame.new(-18.7336388, 6.23248959, -15.5860558, -0.00524395658, -9.41950857e-005, 0.999977589, -1.70142721e-005, 0.999999762, 9.41061371e-005, -0.999977767, -1.65381025e-005, -0.00524395704)
  261. o15.Color = Color3.new(1, 0, 0)
  262. o15.Position = Vector3.new(-18.7336388, 6.23248959, -15.5860558)
  263. o16.Parent = o15
  264. o16.Color = Color3.new(1, 0, 0)
  265. o16.Brightness = 5
  266. o17.Parent = o1
  267. o17.BrickColor = BrickColor.new("Navy blue")
  268. o17.Position = Vector3.new(-13.7103806, 7.4334569, -11.1126032)
  269. o17.Rotation = Vector3.new(-178.984573, 89.8442307, 178.906387)
  270. o17.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  271. o17.Velocity = Vector3.new(0.0301371254, -0.00950159878, 0.0479902476)
  272. o17.Size = Vector3.new(10, 1.20000005, 9)
  273. o17.CFrame = CFrame.new(-13.7103806, 7.4334569, -11.1126032, -0.00523211667, -9.98789619e-005, 0.999996305, -0.000191024272, 0.999996841, 9.26525463e-005, -0.99999249, -0.000189010942, -0.00522744283)
  274. o17.Color = Color3.new(0, 0.12549, 0.376471)
  275. o17.Position = Vector3.new(-13.7103806, 7.4334569, -11.1126032)
  276. o18.Parent = o1
  277. o18.BrickColor = BrickColor.new("Really red")
  278. o18.Position = Vector3.new(-18.6916275, 6.23253489, -7.58640289)
  279. o18.Rotation = Vector3.new(-178.949524, 89.6169205, 178.938629)
  280. o18.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  281. o18.Velocity = Vector3.new(0.048138395, -0.0746385157, 0.0512357876)
  282. o18.Size = Vector3.new(1, 1.20000005, 1)
  283. o18.CFrame = CFrame.new(-18.6916275, 6.23253489, -7.58640289, -0.00522889895, -9.68733293e-005, 0.999977648, -0.000190386039, 0.999999821, 9.58799064e-005, -0.999977827, -0.000189780447, -0.00522893574)
  284. o18.Color = Color3.new(1, 0, 0)
  285. o18.Position = Vector3.new(-18.6916275, 6.23253489, -7.58640289)
  286. o19.Parent = o18
  287. o19.Color = Color3.new(1, 0, 0)
  288. o19.Brightness = 5
  289. o20.Parent = o1
  290. o20.BrickColor = BrickColor.new("Navy blue")
  291. o20.Position = Vector3.new(7.28969288, 6.23363113, -11.2224979)
  292. o20.Rotation = Vector3.new(0.436052829, -89.6596527, 0.43702212)
  293. o20.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  294. o20.Velocity = Vector3.new(0.0386448763, 0.145316005, -0.0165327936)
  295. o20.Size = Vector3.new(6, 1.20000005, 1)
  296. o20.CFrame = CFrame.new(7.28969288, 6.23363113, -11.2224979, 0.00524395052, -3.99988749e-005, -0.999982357, 1.69998948e-005, 1, -3.99101627e-005, 0.999982357, -1.67905146e-005, 0.00524395099)
  297. o20.Color = Color3.new(0, 0.12549, 0.376471)
  298. o20.Position = Vector3.new(7.28969288, 6.23363113, -11.2224979)
  299. o21.Parent = o1
  300. o21.Position = Vector3.new(7.26279974, 6.23355865, -15.7223253)
  301. o21.Rotation = Vector3.new(0.436055452, -89.6579361, 0.436923057)
  302. o21.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  303. o21.Velocity = Vector3.new(0.0269067064, 0.181648344, -0.0164632238)
  304. o21.Size = Vector3.new(1, 1.20000005, 1)
  305. o21.CFrame = CFrame.new(7.26279974, 6.23355865, -15.7223253, 0.00524412934, -3.99911733e-005, -0.999982178, 1.69923096e-005, 1, -3.99101664e-005, 0.999982357, -1.67930193e-005, 0.00524392026)
  306. o21.Position = Vector3.new(7.26279974, 6.23355865, -15.7223253)
  307. o22.Parent = o21
  308. o22.Brightness = 5
  309. o23.Parent = o1
  310. o23.Position = Vector3.new(7.30489731, 6.23369455, -7.72230434)
  311. o23.Rotation = Vector3.new(0.435401648, -89.6596527, 0.436370581)
  312. o23.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  313. o23.Velocity = Vector3.new(0.0477753654, 0.117012993, -0.0165719427)
  314. o23.Size = Vector3.new(1, 1.20000005, 1)
  315. o23.CFrame = CFrame.new(7.30489731, 6.23369455, -7.72230434, 0.00524395052, -3.99392411e-005, -0.999982357, 1.69998948e-005, 1, -3.98505581e-005, 0.999982357, -1.67908493e-005, 0.00524395099)
  316. o23.Position = Vector3.new(7.30489731, 6.23369455, -7.72230434)
  317. o24.Parent = o23
  318. o24.Brightness = 5
  319. o25.Parent = o1
  320. o25.Position = Vector3.new(7.26812553, 6.23357248, -14.7226934)
  321. o25.Rotation = Vector3.new(0.436053008, -89.6596527, 0.437019497)
  322. o25.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  323. o25.Velocity = Vector3.new(0.0295143463, 0.173572391, -0.0164770074)
  324. o25.Size = Vector3.new(1, 1.20000005, 1)
  325. o25.CFrame = CFrame.new(7.26812553, 6.23357248, -14.7226934, 0.00524398079, -3.99988676e-005, -0.999982357, 1.70023541e-005, 1, -3.99101773e-005, 0.999982417, -1.6792952e-005, 0.00524395099)
  326. o25.Position = Vector3.new(7.26812553, 6.23357248, -14.7226934)
  327. o26.Parent = o25
  328. o26.Brightness = 5
  329. o27.Parent = o1
  330. o27.BrickColor = BrickColor.new("Navy blue")
  331. o27.Position = Vector3.new(2.29017949, 7.43264103, -11.1961346)
  332. o27.Rotation = Vector3.new(1.33427393, -89.7842026, 1.34828436)
  333. o27.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  334. o27.Velocity = Vector3.new(0.0299251992, 0.108456761, 0.00624296442)
  335. o27.Size = Vector3.new(10, 1.20000005, 9)
  336. o27.CFrame = CFrame.new(2.29017949, 7.43264103, -11.1961346, 0.00517972326, -0.000121911755, -0.999992907, 0.000244461698, 0.999999583, -0.000120648285, 0.999992192, -0.000243648406, 0.00517988671)
  337. o27.Color = Color3.new(0, 0.12549, 0.376471)
  338. o27.Position = Vector3.new(2.29017949, 7.43264103, -11.1961346)
  339. o28.Parent = o1
  340. o28.BrickColor = BrickColor.new("Navy blue")
  341. o28.Position = Vector3.new(-5.71008492, 3.83311272, -11.1543026)
  342. o28.Rotation = Vector3.new(-179.56395, 89.7383041, 179.562988)
  343. o28.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  344. o28.Velocity = Vector3.new(0.0564180017, 0.04947716, -0.00210760068)
  345. o28.Size = Vector3.new(8, 1.20000005, 7)
  346. o28.CFrame = CFrame.new(-5.71008492, 3.83311272, -11.1543026, -0.00524401851, -3.99988639e-005, 0.999989569, -1.69999694e-005, 1, 3.99104647e-005, -0.999989569, -1.67905764e-005, -0.00524401898)
  347. o28.Color = Color3.new(0, 0.12549, 0.376471)
  348. o28.Position = Vector3.new(-5.71008492, 3.83311272, -11.1543026)
  349. o29.Parent = o1
  350. o29.BrickColor = BrickColor.new("Navy blue")
  351. o29.Position = Vector3.new(-5.71001005, 2.63311195, -11.1542883)
  352. o29.Rotation = Vector3.new(-179.56395, 89.7006378, 179.562988)
  353. o29.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  354. o29.Velocity = Vector3.new(0.0652137548, 0.0494775921, -0.0118493643)
  355. o29.Size = Vector3.new(10, 1.20000005, 27)
  356. o29.CFrame = CFrame.new(-5.71001005, 2.63311195, -11.1542883, -0.00524400175, -3.99989003e-005, 0.999986351, -1.70000058e-005, 1, 3.99103046e-005, -0.999986351, -1.67904818e-005, -0.00524400221)
  357. o29.Color = Color3.new(0, 0.12549, 0.376471)
  358. o29.Position = Vector3.new(-5.71001005, 2.63311195, -11.1542883)
  359. o30.Parent = o1
  360. o30.BrickColor = BrickColor.new("Navy blue")
  361. o30.Position = Vector3.new(-18.7099514, 4.4325943, -11.0861635)
  362. o30.Rotation = Vector3.new(-179.56395, 89.7045822, 179.562988)
  363. o30.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  364. o30.Velocity = Vector3.new(0.0522016995, -0.0463618785, 0.0366717279)
  365. o30.Size = Vector3.new(10, 2.4000001, 1)
  366. o30.CFrame = CFrame.new(-18.7099514, 4.4325943, -11.0861635, -0.00524400314, -3.99988967e-005, 0.999986708, -1.70000058e-005, 1, 3.99103228e-005, -0.999986708, -1.67904873e-005, -0.00524400361)
  367. o30.Color = Color3.new(0, 0.12549, 0.376471)
  368. o30.Position = Vector3.new(-18.7099514, 4.4325943, -11.0861635)
  369. o31.Parent = o1
  370. o31.BrickColor = BrickColor.new("Navy blue")
  371. o31.Position = Vector3.new(-5.73371077, 4.43303442, -15.654274)
  372. o31.Rotation = Vector3.new(179.999023, -0.300460637, 179.997711)
  373. o31.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  374. o31.Velocity = Vector3.new(0.0402816422, 0.0858346075, 0.00282417703)
  375. o31.Size = Vector3.new(25, 2.4000001, 1)
  376. o31.CFrame = CFrame.new(-5.73371077, 4.43303442, -15.654274, -0.999986708, -3.99988967e-005, -0.00524400314, -3.99103228e-005, 1, -1.70000058e-005, 0.00524400361, -1.67904873e-005, -0.999986708)
  377. o31.Color = Color3.new(0, 0.12549, 0.376471)
  378. o31.Position = Vector3.new(-5.73371077, 4.43303442, -15.654274)
  379. o32.Parent = o1
  380. o32.BrickColor = BrickColor.new("Navy blue")
  381. o32.Position = Vector3.new(-5.68647623, 4.43318987, -6.65436316)
  382. o32.Rotation = Vector3.new(179.999023, -0.300460637, 179.997711)
  383. o32.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  384. o32.Velocity = Vector3.new(0.0637585744, 0.0131198391, 0.00270221848)
  385. o32.Size = Vector3.new(25, 2.4000001, 1)
  386. o32.CFrame = CFrame.new(-5.68647623, 4.43318987, -6.65436316, -0.999986708, -3.99988967e-005, -0.00524400314, -3.99103228e-005, 1, -1.70000058e-005, 0.00524400361, -1.67904873e-005, -0.999986708)
  387. o32.Color = Color3.new(0, 0.12549, 0.376471)
  388. o32.Position = Vector3.new(-5.68647623, 4.43318987, -6.65436316)
  389. o33.Parent = o1
  390. o33.BrickColor = BrickColor.new("Navy blue")
  391. o33.Position = Vector3.new(7.28976488, 4.43363047, -11.222477)
  392. o33.Rotation = Vector3.new(-179.56395, 89.7045822, 179.562988)
  393. o33.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  394. o33.Velocity = Vector3.new(0.0518385023, 0.145316362, -0.0311453287)
  395. o33.Size = Vector3.new(10, 2.4000001, 1)
  396. o33.CFrame = CFrame.new(7.28976488, 4.43363047, -11.222477, -0.00524400314, -3.99988967e-005, 0.999986708, -1.70000058e-005, 1, 3.99103228e-005, -0.999986708, -1.67904873e-005, -0.00524400361)
  397. o33.Color = Color3.new(0, 0.12549, 0.376471)
  398. o33.Position = Vector3.new(7.28976488, 4.43363047, -11.222477)
  399. o34.Parent = o1
  400. o34.BrickColor = BrickColor.new("Navy blue")
  401. o34.Position = Vector3.new(-1.71012759, 4.43327141, -11.1753178)
  402. o34.Rotation = Vector3.new(-179.56395, 89.7045822, 179.562988)
  403. o34.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  404. o34.Velocity = Vector3.new(0.0519641601, 0.0789664835, -0.00767022092)
  405. o34.Size = Vector3.new(8, 2.4000001, 1)
  406. o34.CFrame = CFrame.new(-1.71012759, 4.43327141, -11.1753178, -0.00524400314, -3.99988967e-005, 0.999986708, -1.70000058e-005, 1, 3.99103228e-005, -0.999986708, -1.67904873e-005, -0.00524400361)
  407. o34.Color = Color3.new(0, 0.12549, 0.376471)
  408. o34.Position = Vector3.new(-1.71012759, 4.43327141, -11.1753178)
  409. o35.Parent = o1
  410. o35.BrickColor = BrickColor.new("Navy blue")
  411. o35.Position = Vector3.new(6.28999805, 6.23358202, -11.2172174)
  412. o35.Rotation = Vector3.new(-0.000953487295, 90, 0)
  413. o35.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  414. o35.Velocity = Vector3.new(0.0386590138, 0.137945622, -0.013925286)
  415. o35.Size = Vector3.new(10, 1.20000005, 1)
  416. o35.CFrame = CFrame.new(6.28999805, 6.23358202, -11.2172174, -0.00524337543, -3.99916389e-005, 1.00000119, -1.6641472e-005, 0.999998748, 3.991009e-005, -0.999999046, -1.58294351e-005, -0.00524382014)
  417. o35.Color = Color3.new(0, 0.12549, 0.376471)
  418. o35.Position = Vector3.new(6.28999805, 6.23358202, -11.2172174)
  419. o36.Parent = o1
  420. o36.BrickColor = BrickColor.new("Navy blue")
  421. o36.Position = Vector3.new(-17.7102318, 6.23270893, -11.0914354)
  422. o36.Rotation = Vector3.new(-179.607208, 89.8863602, 179.519852)
  423. o36.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  424. o36.Velocity = Vector3.new(0.0389935374, -0.0389913842, 0.0486770272)
  425. o36.Size = Vector3.new(10, 1.20000005, 1)
  426. o36.CFrame = CFrame.new(-17.7102318, 6.23270893, -11.0914354, -0.00524707884, -4.39728537e-005, 0.999998033, -1.79542276e-005, 0.999996006, 3.59316218e-005, -0.999993205, -1.5815589e-005, -0.00524114026)
  427. o36.Color = Color3.new(0, 0.12549, 0.376471)
  428. o36.Position = Vector3.new(-17.7102318, 6.23270893, -11.0914354)
  429. o37.Parent = o1
  430. o37.BrickColor = BrickColor.new("Navy blue")
  431. o37.Position = Vector3.new(-9.71000957, 4.43295288, -11.1333427)
  432. o37.Rotation = Vector3.new(-179.56395, 89.7045822, 179.562988)
  433. o37.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  434. o37.Velocity = Vector3.new(0.052075997, 0.0199885238, 0.013196487)
  435. o37.Size = Vector3.new(8, 2.4000001, 1)
  436. o37.CFrame = CFrame.new(-9.71000957, 4.43295288, -11.1333427, -0.00524400314, -3.99988967e-005, 0.999986708, -1.70000058e-005, 1, 3.99103228e-005, -0.999986708, -1.67904873e-005, -0.00524400361)
  437. o37.Color = Color3.new(0, 0.12549, 0.376471)
  438. o37.Position = Vector3.new(-9.71000957, 4.43295288, -11.1333427)
  439. o38.Parent = o1
  440. o38.BrickColor = BrickColor.new("Navy blue")
  441. o38.Position = Vector3.new(-9.71023941, 6.23299026, -11.1333933)
  442. o38.Rotation = Vector3.new(-179.608505, 89.8972092, 179.518555)
  443. o38.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  444. o38.Velocity = Vector3.new(0.0388820209, 0.019987246, 0.0278097279)
  445. o38.Size = Vector3.new(10, 1.20000005, 1)
  446. o38.CFrame = CFrame.new(-9.71023941, 6.23299026, -11.1333933, -0.00524719944, -4.40914846e-005, 0.999998391, -1.79827166e-005, 0.999995887, 3.58128527e-005, -0.999993443, -1.57865179e-005, -0.00524102291)
  447. o38.Color = Color3.new(0, 0.12549, 0.376471)
  448. o38.Position = Vector3.new(-9.71023941, 6.23299026, -11.1333933)
  449. o39.Parent = o1
  450. o39.BrickColor = BrickColor.new("Navy blue")
  451. o39.Position = Vector3.new(-13.6865587, 6.23293543, -6.61243916)
  452. o39.Rotation = Vector3.new(179.998962, -0.300648868, 179.997467)
  453. o39.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  454. o39.Velocity = Vector3.new(0.0506762378, -0.0458591804, 0.038182307)
  455. o39.Size = Vector3.new(7, 1.20000005, 1)
  456. o39.CFrame = CFrame.new(-13.6865587, 6.23293543, -6.61243916, -0.999998391, -4.42100973e-005, -0.00524728838, -3.56940727e-005, 0.999995768, -1.80112183e-005, 0.00524096331, -1.5757405e-005, -0.999993324)
  457. o39.Color = Color3.new(0, 0.12549, 0.376471)
  458. o39.Position = Vector3.new(-13.6865587, 6.23293543, -6.61243916)
  459. o40.Parent = o1
  460. o40.BrickColor = BrickColor.new("Navy blue")
  461. o40.Position = Vector3.new(-13.7338371, 6.23276901, -15.6124039)
  462. o40.Rotation = Vector3.new(179.998993, -0.300580531, 179.997543)
  463. o40.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  464. o40.Velocity = Vector3.new(0.0271992479, 0.0268557109, 0.0383042954)
  465. o40.Size = Vector3.new(7, 1.20000005, 1)
  466. o40.CFrame = CFrame.new(-13.7338371, 6.23276901, -15.6124039, -0.999994814, -4.27272898e-005, -0.00524609582, -3.71787028e-005, 0.999997258, -1.76551475e-005, 0.00524197798, -1.61211738e-005, -0.999991477)
  467. o40.Color = Color3.new(0, 0.12549, 0.376471)
  468. o40.Position = Vector3.new(-13.7338371, 6.23276901, -15.6124039)
  469. o41.Parent = o1
  470. o41.BrickColor = BrickColor.new("Navy blue")
  471. o41.Position = Vector3.new(-14.7099533, 3.83275247, -11.1071138)
  472. o41.Rotation = Vector3.new(179.999023, -0.300460637, 179.997711)
  473. o41.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  474. o41.Velocity = Vector3.new(0.0565437414, -0.0168727785, 0.0213674325)
  475. o41.Size = Vector3.new(5, 1.20000005, 4)
  476. o41.CFrame = CFrame.new(-14.7099533, 3.83275247, -11.1071138, -0.999986708, -3.99988967e-005, -0.00524400314, -3.99103228e-005, 1, -1.70000058e-005, 0.00524400361, -1.67904873e-005, -0.999986708)
  477. o41.TopSurface = Enum.SurfaceType.Smooth
  478. o41.Color = Color3.new(0, 0.12549, 0.376471)
  479. o41.Position = Vector3.new(-14.7099533, 3.83275247, -11.1071138)
  480. o42.Parent = o1
  481. o42.BrickColor = BrickColor.new("Navy blue")
  482. o42.Position = Vector3.new(2.26636696, 6.23334599, -15.6962967)
  483. o42.Rotation = Vector3.new(179.999054, -0.300423175, 179.997711)
  484. o42.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  485. o42.Velocity = Vector3.new(0.02697617, 0.144814402, -0.00343075488)
  486. o42.Size = Vector3.new(7, 1.20000005, 1)
  487. o42.CFrame = CFrame.new(2.26636696, 6.23334599, -15.6962967, -1.00000215, -3.99914206e-005, -0.00524334935, -3.99102064e-005, 0.999998629, -1.66701939e-005, 0.00524382433, -1.58007551e-005, -0.999999642)
  488. o42.Color = Color3.new(0, 0.12549, 0.376471)
  489. o42.Position = Vector3.new(2.26636696, 6.23334599, -15.6962967)
  490. o43.Parent = o1
  491. o43.BrickColor = BrickColor.new("Navy blue")
  492. o43.Position = Vector3.new(2.31357408, 6.23349762, -6.69628668)
  493. o43.Rotation = Vector3.new(-0.000926488661, 0.300441533, 0.00229139603)
  494. o43.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  495. o43.Velocity = Vector3.new(0.0504533872, 0.0720986128, -0.00355267338)
  496. o43.Size = Vector3.new(7, 1.20000005, 1)
  497. o43.CFrame = CFrame.new(2.31357408, 6.23349762, -6.69628668, 0.999992609, -3.99921119e-005, 0.00524366973, 3.99095734e-005, 0.999999642, 1.61701464e-005, -0.00524380431, -1.57742088e-005, 0.999991894)
  498. o43.Color = Color3.new(0, 0.12549, 0.376471)
  499. o43.Position = Vector3.new(2.31357408, 6.23349762, -6.69628668)
  500. o44.Parent = o1
  501. o44.BrickColor = BrickColor.new("Navy blue")
  502. o44.Position = Vector3.new(-1.71003747, 6.23326778, -11.1752968)
  503. o44.Rotation = Vector3.new(-179.563934, 89.7153854, 179.563004)
  504. o44.RotVelocity = Vector3.new(0.00811796822, 0.00260870019, 0.00732975919)
  505. o44.Velocity = Vector3.new(0.0387706757, 0.0789669752, 0.00694185775)
  506. o44.Size = Vector3.new(10, 1.20000005, 1)
  507. o44.CFrame = CFrame.new(-1.71003747, 6.23326778, -11.1752968, -0.0052435468, -3.99939563e-005, 0.999987662, -1.63402037e-005, 1, 3.99089004e-005, -0.999987662, -1.61307271e-005, -0.00524354726)
  508. o44.Color = Color3.new(0, 0.12549, 0.376471)
  509. o44.Position = Vector3.new(-1.71003747, 6.23326778, -11.1752968)
  510. mas.Parent = workspace
  511. mas:MakeJoints()
  512. mas:MoveTo(game:GetService("Players").LocalPlayer.Character:findFirstChild("HumanoidRootPart").Position)
  513. game:GetService("Players").LocalPlayer.Character:MoveTo(Vector3.new(vehicleSeat.Position.X,vehicleSeat.Position.Y+6,vehicleSeat.Position.Z))
  514. local mas1 = mas:GetChildren()
  515. for i=1,#mas1 do
  516. mas1[i].Parent = game:GetService("Players").LocalPlayer.Character
  517. ypcall(function() mas1[i]:MakeJoints() end)
  518. end
  519. mas:Destroy()
  520. mas = Instance.new("Model",game:GetService("Lighting"))
  521. mas.Name = "CompiledModel"
  522. o1 = Instance.new("ScreenGui")
  523. o2 = Instance.new("Frame")
  524. o3 = Instance.new("TextLabel")
  525. o4 = Instance.new("TextLabel")
  526. o5 = Instance.new("TextLabel")
  527. o6 = Instance.new("Frame")
  528. o7 = Instance.new("Frame")
  529. o1.Parent = mas
  530. o2.Parent = o1
  531. gui = o1
  532. o2.Position = UDim2.new(1,-200,1,-200)
  533. o2.Size = UDim2.new(0,200,0,150)
  534. o2.Position = UDim2.new(1,-200,1,-200)
  535. o2.BackgroundColor3 = Color3.new(0, 0, 0)
  536. o2.BackgroundTransparency = 0.5
  537. o3.Parent = o2
  538. o3.Size = UDim2.new(1,0,0,25)
  539. o3.Text = "El Carro"
  540. o3.BackgroundColor3 = Color3.new(1, 1, 1)
  541. o3.BackgroundTransparency = 1
  542. o3.Font = Enum.Font.SourceSans
  543. o3.FontSize = Enum.FontSize.Size28
  544. o3.TextColor3 = Color3.new(0.85098, 0, 0)
  545. o3.TextXAlignment = Enum.TextXAlignment.Left
  546. o4.Parent = o2
  547. o4.Position = UDim2.new(0,0,0,25)
  548. o4.Size = UDim2.new(1,0,0,25)
  549. o4.Text = "Gear:"
  550. o4.Position = UDim2.new(0,0,0,25)
  551. o4.BackgroundColor3 = Color3.new(1, 1, 1)
  552. o4.BackgroundTransparency = 1
  553. o4.Font = Enum.Font.SourceSans
  554. o4.FontSize = Enum.FontSize.Size28
  555. o4.TextColor3 = Color3.new(0.85098, 0, 0)
  556. o4.TextXAlignment = Enum.TextXAlignment.Left
  557. o5.Parent = o2
  558. o5.Position = UDim2.new(0,0,0,50)
  559. o5.Size = UDim2.new(1,0,0,25)
  560. o5.Text = "NOS Left"
  561. o5.Position = UDim2.new(0,0,0,50)
  562. o5.BackgroundColor3 = Color3.new(1, 1, 1)
  563. o5.BackgroundTransparency = 1
  564. o5.Font = Enum.Font.SourceSans
  565. o5.FontSize = Enum.FontSize.Size28
  566. o5.TextColor3 = Color3.new(0.85098, 0, 0)
  567. o5.TextXAlignment = Enum.TextXAlignment.Left
  568. o6.Parent = o2
  569. o6.Position = UDim2.new(0,0,0,75)
  570. o6.Size = UDim2.new(1,0,0,25)
  571. o6.Position = UDim2.new(0,0,0,75)
  572. o6.BackgroundColor3 = Color3.new(0.435294, 0, 0)
  573. o6.BorderSizePixel = 0
  574. o7.Parent = o6
  575. o7.Size = UDim2.new(1,0,1,0)
  576. o7.BackgroundColor3 = Color3.new(0.0196078, 0.435294, 0)
  577. o7.BorderSizePixel = 0
  578. o8 = o5:Clone()
  579. o8.Parent = o2
  580. o8.Position = UDim2.new(0,0,0,100)
  581. o8.Text = "Speed: "
  582. o9 = o6:Clone()
  583. o9.Parent = o2
  584. o9.Position = UDim2.new(0,0,0,125)
  585. local rpm = o9.Frame
  586. spedometer = o8
  587. gearStatus = o4
  588. nosStatus = o7
  589. mas.Parent = workspace
  590. mas:MakeJoints()
  591. local mas1 = mas:GetChildren()
  592. for i=1,#mas1 do
  593. mas1[i].Parent = game:GetService("Players").LocalPlayer.PlayerGui
  594. ypcall(function() mas1[i]:MakeJoints() end)
  595. end
  596. mas:Destroy()
  597. for i=1,#lights do
  598. lights[i].Range = 48
  599. end
  600. local gear = 1
  601. local nosLeft = 300
  602. local usingNos = false
  603. local nosFiring = false
  604. function getGear(id)
  605. local gears = {
  606. {["id"]=-1,["MaxSpeed"] = 400},
  607. {["id"]=0,["MaxSpeed"]=0},
  608. {["id"]=1,["MaxSpeed"]=20},
  609. {["id"]=2,["MaxSpeed"]=80},
  610. {["id"]=3,["MaxSpeed"]=150},
  611. {["id"]=4,["MaxSpeed"]=220},
  612. {["id"]=5,["MaxSpeed"]=310},
  613. {["id"]=6,["MaxSpeed"]=400},
  614. }
  615. for i,v in pairs(gears) do
  616. if v.id==id then
  617. return v
  618. end
  619. end
  620. return nil
  621. end
  622. vehicleSeat.MaxSpeed = getGear(1).MaxSpeed
  623. game:GetService("UserInputService").InputBegan:connect(function(input,gameProcessed)
  624. --print("Connected")
  625. if input.UserInputType == Enum.UserInputType.Keyboard then
  626. --print("Keyboard")
  627. if canPressKey then
  628. --print("canPressKey")
  629. local keyPressed = input.KeyCode
  630. if (keyPressed==Enum.KeyCode.F) then
  631. if lightsOn then
  632. lightsOn = false
  633. else
  634. lightsOn = true
  635. end
  636. for i=1,#lights do
  637. lights[i].Enabled = lightsOn
  638. end
  639. end
  640. if (keyPressed==Enum.KeyCode.E) then
  641. local gea = getGear(gear+1)
  642. if gea~=nil then
  643. gear = gea.id
  644. vehicleSeat.MaxSpeed = gea.MaxSpeed
  645. end
  646. end
  647. if (keyPressed==Enum.KeyCode.Q) then
  648. local gea = getGear(gear-1)
  649. if gea~=nil then
  650. gear = gea.id
  651. vehicleSeat.MaxSpeed = gea.MaxSpeed
  652. end
  653. end
  654. if (keyPressed==Enum.KeyCode.R) then
  655. local bg = Instance.new("BodyGyro",vehicleSeat)
  656. bg.maxTorque = Vector3.new(400000,400000,400000)
  657. wait(5)
  658. bg:Remove()
  659. end
  660. if (keyPressed==Enum.KeyCode.N) then
  661. usingNos = true
  662. end
  663. if (keyPressed==Enum.KeyCode.T) then
  664. car:BreakJoints()
  665. end
  666. if (keyPressed==Enum.KeyCode.Y) then
  667. car:Destroy()
  668. gui:Destroy()
  669. script:Destroy()
  670. end
  671. if (keyPressed==Enum.KeyCode.G) then
  672. nuke(vehicleSeat.Position,100)
  673. end
  674. if (keyPressed==Enum.KeyCode.H) then
  675. gear = -1
  676. end
  677. end
  678. end
  679. end)
  680. game:GetService("UserInputService").InputEnded:connect(function(input,gameProcessed)
  681. if input.UserInputType == Enum.UserInputType.Keyboard then
  682. if canPressKey then
  683. local keyPressed = input.KeyCode
  684. if (keyPressed==Enum.KeyCode.N) then
  685. usingNos = false
  686. end
  687. end
  688. end
  689. end)
  690. game:GetService("UserInputService").TextBoxFocused:connect(function()
  691. canPressKey = false
  692. end)
  693. game:GetService("UserInputService").TextBoxFocusReleased:connect(function()
  694. canPressKey = true
  695. end)
  696. function round(num)
  697. local init = math.floor(num)
  698. if num>=(init+0.5) then
  699. return math.ceil(num)
  700. else
  701. return init
  702. end
  703. end
  704. function getSpeed(vector3)
  705. local ret = 0
  706. local x = vector3.X
  707. local y = vector3.Y
  708. local z = vector3.Z
  709. x = x*x
  710. y = y*y
  711. z = z*z
  712. ret = x+y+z
  713. ret = math.sqrt(ret)
  714. return round(ret)
  715. end
  716. game:GetService("RunService").Stepped:connect(function()
  717. gearStatus.Text = "Gear: " .. tostring(gear)
  718. local speed = getSpeed(vehicleSeat.Velocity)
  719. spedometer.Text = "Speed: " .. tostring(speed)
  720. local nosSize = nosLeft/300
  721. nosStatus.Size = UDim2.new(nosSize,0,1,0)
  722. nosStatus.BackgroundColor3 = Color3.new(1-nosSize,nosSize,0)
  723. local mspeed = getGear(gear).MaxSpeed
  724. if gear==-1 then
  725. vehicleSeat.MaxSpeed = mspeed
  726. vehicleSeat.Torque = 0
  727. local siz = speed/mspeed
  728. rpm.BackgroundColor3 = Color3.new(siz,1-siz,0)
  729. rpm.Size = UDim2.new(siz,0,1,0)
  730. else
  731. if (usingNos)and(nosLeft>0) then
  732. print(usingNos)
  733. vehicleSeat.Torque = 70
  734. vehicleSeat.MaxSpeed = mspeed*1.25
  735. local siz = speed/(mspeed*1.25)
  736. rpm.Size = UDim2.new(siz,0,1,0)
  737. rpm.BackgroundColor3 = Color3.new(siz,1-siz,0)
  738. nosLeft = nosLeft-1
  739. else
  740. vehicleSeat.Torque = 40
  741. vehicleSeat.MaxSpeed = mspeed
  742. local siz = speed/mspeed
  743. rpm.BackgroundColor3 = Color3.new(siz,1-siz,0)
  744. rpm.Size = UDim2.new(siz,0,1,0)
  745. end
  746. end
  747. end)
  748. coroutine.resume(coroutine.create(function()
  749. while wait(1/15) do
  750. if nosLeft<300 then
  751. nosLeft = nosLeft + 1
  752. end
  753. end
  754. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement