Advertisement
Guest User

Untitled

a guest
May 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.71 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title> </title>
  5. </head>
  6. <body>
  7. <style>
  8. img[src="https://cdn.rawgit.com/000webhost/logo/e9bd13f7/footer-powered-by-000webhost-white2.png"] {
  9. display: none;}
  10. </style>
  11.  
  12. <pre style="word-wrap: break-word; white-space: pre-wrap;">
  13. --[[
  14.  
  15. Created by Cronizete
  16. cron#7538
  17.  
  18. A Car
  19.  
  20. --]]
  21.  
  22. --[[
  23. Keys:
  24.  
  25.  
  26. --]]
  27.  
  28. wait(3)
  29.  
  30. plr = game:service'Players'.LocalPlayer
  31. char = plr.Character
  32. mouse = plr:GetMouse()
  33. cooldown = false
  34. rotation = {}
  35.  
  36. --// Configuration
  37.  
  38. turn = "Middle"
  39. falling = false
  40. abletoparachute = false
  41. driver = nil
  42. rocketout = false
  43. selfdriving = false
  44. driving = false
  45. timer = 0
  46. speed = 0
  47. saycode = false
  48. allowed = false
  49. exception = false
  50. flying = false
  51.  
  52. passcode = "cron is cool"
  53.  
  54. --//
  55.  
  56. function invisible(b)
  57. for _, a in pairs(b:children'') do
  58. if a:IsA'Part' or a:IsA'UnionOperation' or a:IsA'MeshPart' then
  59. a.Transparency = 1
  60. elseif a:IsA'Accessory' then
  61. a.Handle.Transparency = 1
  62. end
  63. end
  64.  
  65. b.Head.face.Parent = b
  66. end
  67.  
  68. function visible(b)
  69. for _, a in pairs(b:children'') do
  70. if a:IsA'Part' or a:IsA'UnionOperation' or a:IsA'MeshPart' then
  71. if a.Name ~= "HumanoidRootPart" then
  72. a.Transparency = 0
  73. end
  74. elseif a:IsA'Accessory' then
  75. a.Handle.Transparency = 0
  76. end
  77. end
  78.  
  79. b.face.Parent = b.Head
  80. end
  81.  
  82. function boost(a)
  83. bv = Instance.new('BodyVelocity', a)
  84. bv.MaxForce = Vector3.new(2e9, 2e9, 2e9)
  85. bv.Velocity = a.CFrame.lookVector * -100
  86. game:service'Debris':AddItem(bv, 0.4)
  87. end
  88.  
  89. Model0 = Instance.new("Model")
  90. car = Model0
  91.  
  92. Part1 = Instance.new("Part")
  93. Part2 = Instance.new("Part")
  94. Part3 = Instance.new("Part")
  95. Part4 = Instance.new("Part")
  96. Part5 = Instance.new("Part")
  97.  
  98. VehicleSeat6 = Instance.new("VehicleSeat")
  99. Part7 = Instance.new("Part")
  100. SpecialMesh8 = Instance.new("SpecialMesh")
  101. Part9 = Instance.new("Part")
  102. SpecialMesh10 = Instance.new("SpecialMesh")
  103. Part11 = Instance.new("Part")
  104. SpecialMesh12 = Instance.new("SpecialMesh")
  105. Part13 = Instance.new("Part")
  106. SpecialMesh14 = Instance.new("SpecialMesh")
  107. Part15 = Instance.new("Part")
  108. SpecialMesh16 = Instance.new("SpecialMesh")
  109.  
  110. Model0.Name = "Car"
  111. Model0.Parent = char
  112.  
  113. Part1.Name = "FRONTW2"
  114. Part1.Parent = Model0
  115. Part1.Material = Enum.Material.DiamondPlate
  116. Part1.BrickColor = BrickColor.new("Really black")
  117. Part1.Transparency = 1
  118. Part1.FormFactor = Enum.FormFactor.Symmetric
  119. Part1.Shape = Enum.PartType.Cylinder
  120. Part1.Size = Vector3.new(2, 2, 2)
  121. Part1.CFrame = CFrame.new(-200.615112, 1.01000166, -28.1637135, 1, 2.03056483e-09, 6.81246036e-07, -2.03056505e-09, 1, 3.52883112e-10, -6.81246036e-07, -3.52884472e-10, 1)
  122. Part1.BottomSurface = Enum.SurfaceType.Smooth
  123. Part1.RightSurface = Enum.SurfaceType.Hinge
  124. Part1.TopSurface = Enum.SurfaceType.Smooth
  125. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  126. Part1.Position = Vector3.new(-200.615112, 1.01000166, -28.1637135)
  127. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  128.  
  129. Part2.Name = "Body"
  130. Part2.Parent = Model0
  131. Part2.BrickColor = BrickColor.new("Mid gray")
  132. Part2.Transparency = 1
  133. Part2.Rotation = Vector3.new(-180, 0, 180)
  134. Part2.CanCollide = false
  135. Part2.FormFactor = Enum.FormFactor.Plate
  136. Part2.Size = Vector3.new(5.00999546, 1.17999935, 10.5300083)
  137. Part2.CFrame = CFrame.new(-197.134171, 1.34863997, -24.3212357, -1.00001001, -1.07609139e-05, 1.46844068e-05, -1.07603382e-05, 1, 3.21863845e-05, -1.46120638e-05, 3.21859079e-05, -1.00001001)
  138. Part2.Color = Color3.new(0.803922, 0.803922, 0.803922)
  139. Part2.Position = Vector3.new(-197.134171, 1.34863997, -24.3212357)
  140. Part2.Orientation = Vector3.new(0, 180, 0)
  141. Part2.Color = Color3.new(0.803922, 0.803922, 0.803922)
  142.  
  143. Part3.Name = "BACKW2"
  144. Part3.Parent = Model0
  145. Part3.Material = Enum.Material.DiamondPlate
  146. Part3.BrickColor = BrickColor.new("Really black")
  147. Part3.Transparency = 1
  148. Part3.FormFactor = Enum.FormFactor.Symmetric
  149. Part3.Shape = Enum.PartType.Cylinder
  150. Part3.Size = Vector3.new(2, 2, 2)
  151. Part3.CFrame = CFrame.new(-200.642776, 1.01002812, -19.8439331, 1, 2.03056483e-09, 6.81246036e-07, -2.03056505e-09, 1, 3.52883112e-10, -6.81246036e-07, -3.52884472e-10, 1)
  152. Part3.BottomSurface = Enum.SurfaceType.Smooth
  153. Part3.RightSurface = Enum.SurfaceType.Hinge
  154. Part3.TopSurface = Enum.SurfaceType.Smooth
  155. Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  156. Part3.Position = Vector3.new(-200.642776, 1.01002812, -19.8439331)
  157. Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  158.  
  159. Part4.Name = "FRONTW1"
  160. Part4.Parent = Model0
  161. Part4.Material = Enum.Material.DiamondPlate
  162. Part4.BrickColor = BrickColor.new("Really black")
  163. Part4.Transparency = 1
  164. Part4.Rotation = Vector3.new(180, -0.359999985, -180)
  165. Part4.FormFactor = Enum.FormFactor.Symmetric
  166. Part4.Shape = Enum.PartType.Cylinder
  167. Part4.Size = Vector3.new(2, 2, 2)
  168. Part4.CFrame = CFrame.new(-193.626587, 1.0100739, -28.345871, -0.99998039, 2.02539319e-09, -0.00627368269, 2.0275972e-09, 1, -3.44951817e-10, 0.00627368316, -3.57665508e-10, -0.99998039)
  169. Part4.BottomSurface = Enum.SurfaceType.Smooth
  170. Part4.RightSurface = Enum.SurfaceType.Hinge
  171. Part4.TopSurface = Enum.SurfaceType.Smooth
  172. Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  173. Part4.Position = Vector3.new(-193.626587, 1.0100739, -28.345871)
  174. Part4.Orientation = Vector3.new(0, -179.639999, 0)
  175. Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  176.  
  177. Part5.Name = "BACKW1"
  178. Part5.Parent = Model0
  179. Part5.Material = Enum.Material.DiamondPlate
  180. Part5.BrickColor = BrickColor.new("Really black")
  181. Part5.Transparency = 1
  182. Part5.Rotation = Vector3.new(180, -0.359999985, -180)
  183. Part5.FormFactor = Enum.FormFactor.Symmetric
  184. Part5.Shape = Enum.PartType.Cylinder
  185. Part5.Size = Vector3.new(2, 2, 2)
  186. Part5.CFrame = CFrame.new(-193.648865, 1.01002812, -19.8439369, -0.99998033, 1.63917968e-09, -0.006283761, 1.64136449e-09, 1, -3.42521622e-10, 0.00628376147, -3.52828766e-10, -0.99998033)
  187. Part5.BottomSurface = Enum.SurfaceType.Smooth
  188. Part5.RightSurface = Enum.SurfaceType.Hinge
  189. Part5.TopSurface = Enum.SurfaceType.Smooth
  190. Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  191. Part5.Position = Vector3.new(-193.648865, 1.01002812, -19.8439369)
  192. Part5.Orientation = Vector3.new(0, -179.639999, 0)
  193. Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  194.  
  195. VehicleSeat6.Name = "Seat"
  196. VehicleSeat6.Parent = Model0
  197. VehicleSeat6.BrickColor = BrickColor.new("Light stone grey")
  198. VehicleSeat6.Size = Vector3.new(2, 1, 2)
  199. VehicleSeat6.CFrame = CFrame.new(-197.359161, 2.4387784, -27.2763634, 1.00000501, -1.92323597e-07, -3.12767588e-05, 1.91317497e-07, 1, -3.21884836e-05, 3.1240419e-05, 3.21883163e-05, 1.00000501)
  200. VehicleSeat6.TopSurface = Enum.SurfaceType.Universal
  201. VehicleSeat6.Color = Color3.new(0.898039, 0.894118, 0.87451)
  202. VehicleSeat6.Position = Vector3.new(-197.359161, 2.4387784, -27.2763634)
  203. VehicleSeat6.Color = Color3.new(0.898039, 0.894118, 0.87451)
  204. VehicleSeat6.Steer = 0
  205. VehicleSeat6.Throttle = 0
  206. VehicleSeat6.MaxSpeed = 0
  207. VehicleSeat6.Torque = 3
  208. VehicleSeat6.TurnSpeed = 2.5
  209.  
  210. Part7.Name = "MESHBODY"
  211. Part7.Parent = Model0
  212. Part7.BrickColor = BrickColor.new("Mid gray")
  213. Part7.Rotation = Vector3.new(-180, 0, 180)
  214. Part7.FormFactor = Enum.FormFactor.Plate
  215. Part7.Size = Vector3.new(5.00999546, 1.36999929, 10.5300083)
  216. Part7.CFrame = CFrame.new(-197.134171, 3.62371111, -24.3212147, -1.00000501, -1.07608885e-05, 1.47206811e-05, -1.07603628e-05, 1, 3.21862171e-05, -1.46846833e-05, 3.2185897e-05, -1.00000501)
  217. Part7.Color = Color3.new(0.803922, 0.803922, 0.803922)
  218. Part7.Position = Vector3.new(-197.134171, 3.62371111, -24.3212147)
  219. Part7.Orientation = Vector3.new(0, 180, 0)
  220. Part7.Color = Color3.new(0.803922, 0.803922, 0.803922)
  221.  
  222. SpecialMesh8.Parent = Part7
  223. SpecialMesh8.MeshId = "rbxassetid://589458611"
  224. SpecialMesh8.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  225. SpecialMesh8.TextureId = "rbxassetid://589459590"
  226. SpecialMesh8.MeshType = Enum.MeshType.FileMesh
  227. SpecialMesh8.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  228.  
  229. Part9.Name = "Front1"
  230. Part9.Parent = Model0
  231. Part9.BrickColor = BrickColor.new("Mid gray")
  232. Part9.Rotation = Vector3.new(0, -90, 0)
  233. Part9.FormFactor = Enum.FormFactor.Plate
  234. Part9.Size = Vector3.new(2.52999401, 2.61999846, 1.07001042)
  235. Part9.Orientation = Vector3.new(0, -90, 0)
  236. Part9.Color = Color3.new(0.803922, 0.803922, 0.803922)
  237. Part9.CanCollide = false
  238.  
  239. SpecialMesh10.Parent = Part9
  240. SpecialMesh10.MeshId = "rbxassetid://488935318"
  241. SpecialMesh10.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
  242. SpecialMesh10.TextureId = "rbxassetid://488935371"
  243. SpecialMesh10.MeshType = Enum.MeshType.FileMesh
  244. SpecialMesh10.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
  245.  
  246. Part11.Name = "Back1"
  247. Part11.Parent = Model0
  248. Part11.BrickColor = BrickColor.new("Mid gray")
  249. Part11.Rotation = Vector3.new(0, -90, 0)
  250. Part11.FormFactor = Enum.FormFactor.Plate
  251. Part11.Size = Vector3.new(2.52999401, 2.61999846, 1.07001042)
  252. Part11.Orientation = Vector3.new(0, -90, 0)
  253. Part11.Color = Color3.new(0.803922, 0.803922, 0.803922)
  254. Part11.CanCollide = false
  255.  
  256. SpecialMesh12.Parent = Part11
  257. SpecialMesh12.MeshId = "rbxassetid://488935318"
  258. SpecialMesh12.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
  259. SpecialMesh12.TextureId = "rbxassetid://488935371"
  260. SpecialMesh12.MeshType = Enum.MeshType.FileMesh
  261. SpecialMesh12.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
  262.  
  263. Part13.Name = "Front2"
  264. Part13.Parent = Model0
  265. Part13.BrickColor = BrickColor.new("Mid gray")
  266. Part13.Rotation = Vector3.new(0, -90, 0)
  267. Part13.FormFactor = Enum.FormFactor.Plate
  268. Part13.Size = Vector3.new(2.52999401, 2.61999846, 1.07001042)
  269. Part13.Orientation = Vector3.new(0, -90, 0)
  270. Part13.Color = Color3.new(0.803922, 0.803922, 0.803922)
  271. Part13.CanCollide = false
  272.  
  273. SpecialMesh14.Parent = Part13
  274. SpecialMesh14.MeshId = "rbxassetid://488935318"
  275. SpecialMesh14.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
  276. SpecialMesh14.TextureId = "rbxassetid://488935371"
  277. SpecialMesh14.MeshType = Enum.MeshType.FileMesh
  278. SpecialMesh14.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
  279.  
  280. Part15.Name = "Back2"
  281. Part15.Parent = Model0
  282. Part15.BrickColor = BrickColor.new("Mid gray")
  283. Part15.Rotation = Vector3.new(0, -90, 0)
  284. Part15.FormFactor = Enum.FormFactor.Plate
  285. Part15.Size = Vector3.new(2.52999401, 2.61999846, 1.07001042)
  286. Part15.Color = Color3.new(0.803922, 0.803922, 0.803922)
  287. Part15.Orientation = Vector3.new(0, -90, 0)
  288. Part15.Color = Color3.new(0.803922, 0.803922, 0.803922)
  289. Part15.CanCollide = false
  290.  
  291. SpecialMesh16.Parent = Part15
  292. SpecialMesh16.MeshId = "rbxassetid://488935318"
  293. SpecialMesh16.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
  294. SpecialMesh16.TextureId = "rbxassetid://488935371"
  295. SpecialMesh16.MeshType = Enum.MeshType.FileMesh
  296. SpecialMesh16.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
  297.  
  298. rocket = Instance.new('Part', car)
  299. rocket.CanCollide = false
  300. rocket.Size = Vector3.new(1.9, 2.21, 5.54)
  301. rocket.BrickColor = BrickColor.new('Really black')
  302.  
  303. nitro = Instance.new('Sound', rocket)
  304. nitro.SoundId = "rbxassetid://337163436"
  305. nitro.Looped = true
  306. nitro.Volume = 3
  307.  
  308. wb = Instance.new('Sound', car.Body)
  309. wb.SoundId = "rbxassetid://1616972457"
  310. wb.Looped = false
  311. wb.Volume = 4
  312.  
  313. code = Instance.new('Sound', car.Body)
  314. code.SoundId = "rbxassetid://1616957468"
  315. code.Looped = false
  316. code.Volume = 4
  317.  
  318. wp = Instance.new('Sound', car.Body)
  319. wp.SoundId = "rbxassetid://1616970928"
  320. wp.Looped = false
  321. wp.Volume = 4
  322.  
  323. ParticleEmitter0 = Instance.new("ParticleEmitter")
  324. ParticleEmitter0.Name = "Flame"
  325. ParticleEmitter0.Parent = rocket
  326. ParticleEmitter0.Transparency = NumberSequence.new(1,0.5,0.25,0.25,0.5,1)
  327. ParticleEmitter0.Rotation = NumberRange.new(-180, 180)
  328. ParticleEmitter0.Size = NumberSequence.new(5)
  329. ParticleEmitter0.Color = ColorSequence.new(Color3.new(1, 0.494118, 0.239216),Color3.new(1, 0.572549, 0.223529))
  330. ParticleEmitter0.LightEmission = 0.75
  331. ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=304437537"
  332. ParticleEmitter0.Acceleration = Vector3.new(0, 2.5, 0)
  333. ParticleEmitter0.Lifetime = NumberRange.new(0.4)
  334. ParticleEmitter0.Rate = 15000
  335. ParticleEmitter0.Enabled = false
  336. ParticleEmitter0.LockedToPart = false
  337. ParticleEmitter0.RotSpeed = NumberRange.new(-200, 200)
  338. ParticleEmitter0.Speed = NumberRange.new(2, 2)
  339. ParticleEmitter0.Color = ColorSequence.new(Color3.new(1, 0.494118, 0.239216),Color3.new(1, 0.572549, 0.223529))
  340.  
  341. mesh = Instance.new('SpecialMesh', rocket)
  342. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  343. mesh.TextureId = ""
  344. mesh.Scale = Vector3.new(2, 2, 35)
  345.  
  346. weld = Instance.new('Weld', rocket)
  347. weld.Part0 = rocket
  348. weld.Part1 = Part2
  349. weld.C0 = CFrame.new(0,-0.5,0)
  350.  
  351. crash = Instance.new('Part', car)
  352. crash.CanCollide = false
  353. crash.Size = Vector3.new(5,2.5,1)
  354. crash.Transparency = 1
  355. a = Instance.new('Weld', crash)
  356. a.Part0 = crash
  357. a.Part1 = car.Body
  358. a.C0 = CFrame.new(0,-0.5,-7)
  359.  
  360.  
  361. bg = Instance.new('BodyGyro', car.Body)
  362. bg.MaxTorque = Vector3.new(5000, 5000, 5000)
  363.  
  364. Part15.Transparency = 1
  365. test = Part15:Clone()
  366. test.Parent = car
  367. test.Transparency = 0
  368.  
  369. a = Instance.new('Weld', Part15)
  370. a.Part0 = Part15
  371. a.Part1 = Part2
  372. a.C0 = CFrame.new(4,0,2.5) * CFrame.Angles(0,math.rad(90),0)
  373.  
  374. weldtest = Instance.new('Weld', test)
  375. weldtest.Part0 = Part15
  376. weldtest.Part1 = test
  377. table.insert(rotation, weldtest)
  378.  
  379. Part13.Transparency = 1
  380. test = Part13:Clone()
  381. test.Parent = car
  382. test.Transparency = 0
  383.  
  384. a = Instance.new('Weld', Part13)
  385. a.Part0 = Part13
  386. a.Part1 = Part2
  387. a.C0 = CFrame.new(-4.5,0,2.5) * CFrame.Angles(0,math.rad(90),0)
  388.  
  389. weldtest = Instance.new('Weld', test)
  390. weldtest.Part0 = Part13
  391. weldtest.Part1 = test
  392. table.insert(rotation, weldtest)
  393.  
  394. Part11.Transparency = 1
  395. test = Part11:Clone()
  396. test.Parent = car
  397. test.Transparency = 0
  398.  
  399. a = Instance.new('Weld', Part11)
  400. a.Part0 = Part11
  401. a.Part1 = Part2
  402. a.C0 = CFrame.new(-4.5,0,-2.5) * CFrame.Angles(0,math.rad(90),0)
  403.  
  404. weldtest = Instance.new('Weld', test)
  405. weldtest.Part0 = Part11
  406. weldtest.Part1 = test
  407. table.insert(rotation, weldtest)
  408.  
  409. Part9.Transparency = 1
  410. test = Part9:Clone()
  411. test.Parent = car
  412. test.Transparency = 0
  413.  
  414. a = Instance.new('Weld', Part9)
  415. a.Part0 = Part9
  416. a.Part1 = Part2
  417. a.C0 = CFrame.new(4,0,-2.5) * CFrame.Angles(0,math.rad(90),0)
  418.  
  419. weldtest = Instance.new('Weld', test)
  420. weldtest.Part0 = Part9
  421. weldtest.Part1 = test
  422. table.insert(rotation, weldtest)
  423.  
  424. if passcode ~= "cron is cool" then
  425. plr:Kick"Nice try changing the passcode 😎"
  426. end
  427.  
  428. mouse.KeyDown:connect(function(k)
  429. if allowed then
  430. key = k:lower()
  431. if key == "e" and not selfdriving and driver ~= plr.Name and (char.HumanoidRootPart.Position - car.Body.Position).magnitude >= 125 then
  432. selfdriving = true
  433. wp:Play()
  434. rand = math.random(10,25)
  435. car.Seat.Throttle = 1
  436. car.Seat.Disabled = true
  437. repeat wait() bg.CFrame = CFrame.new(-car.Seat.Position, -char.HumanoidRootPart.Position + Vector3.new(rand,0,rand)) until (char.HumanoidRootPart.Position + Vector3.new(rand,0,rand) - car.Body.Position).magnitude <= 125
  438. car.Seat.Disabled = false
  439. car.Seat.Throttle = 0
  440. car.Seat.Steer = 0
  441. selfdriving = false
  442. end
  443.  
  444. if key == "f" and not cooldown and driving then
  445. cooldown = true
  446. if not flying then
  447. flying = true
  448.  
  449. bv = Instance.new('BodyVelocity', car.Body)
  450. bv.MaxForce = Vector3.new(2e9, 2e9, 2e9)
  451. bv.Velocity = Vector3.new(0,150,0) + car.Body.CFrame.lookVector * -100
  452. wait(.8)
  453. bv.Velocity = Vector3.new(0,0,0) + car.Body.CFrame.lookVector * -100
  454.  
  455. wait(.6)
  456. exception = true
  457. a = Instance.new('Part', workspace.Camera)
  458. a.Name = "Platform"
  459. a.Size = Vector3.new(9999,0,9999)
  460. a.Transparency = 1
  461. a.CanCollide = true
  462. a.Anchored = true
  463. a.CFrame = car.Body.CFrame * CFrame.new(0,-5,0)
  464.  
  465. bv:Destroy''
  466. else
  467. flying = false
  468. exception = false
  469. for _, a in pairs(workspace.Camera:children'') do
  470. if a.Name == "Platform" then
  471. a:Destroy''
  472. end
  473. end
  474. for _, a in pairs(rotation) do
  475. coroutine.resume(coroutine.create(function()
  476. for i = 1,50 do
  477. a.C0 = a.C0:lerp(CFrame.Angles(math.rad(0),0,math.rad(90)), 0.1)
  478. wait()
  479. end
  480. end))
  481. end
  482. end
  483. wait(2)
  484. cooldown = false
  485. end
  486.  
  487. if key == "r" and not cooldown then
  488. cooldown = true
  489. num = 0
  490. if not rocketout then
  491. rocketout = true
  492. boost(car.Body)
  493. for i = 1,15 do
  494. wait()
  495. weld.C0 = CFrame.new(0, -0.5, num)
  496. num = num + .51
  497. end
  498. z = num
  499. elseif rocketout then
  500. rocketout = false
  501. for i = 1,10 do
  502. wait()
  503. weld.C0 = CFrame.new(0, -0.5, z)
  504. z = z - .5
  505. end
  506. end
  507. wait(1)
  508. cooldown = false
  509. end
  510. end
  511. end)
  512. selfdriving = true
  513. rand = math.random(10,25)
  514. car.Seat.Throttle = 1
  515. car.Seat.MaxSpeed = 75
  516. repeat wait() bg.CFrame = CFrame.new(-car.Seat.Position, -char.HumanoidRootPart.Position + Vector3.new(rand,0,rand)) until (char.HumanoidRootPart.Position + Vector3.new(rand,0,rand) - car.Body.Position).magnitude <= 125
  517. car.Seat.Throttle = 0
  518. car.Seat.Steer = 0
  519. car.Seat.MaxSpeed = 0
  520. selfdriving = false
  521.  
  522. plr.Chatted:connect(function(a)
  523. if a:lower() == "cron is cool" then
  524. allowed = true
  525.  
  526. wb:Play()
  527. car.Seat.MaxSpeed = 75
  528. end
  529. end)
  530.  
  531. car.Seat.Changed:connect(function(p)
  532. ypcall(function()
  533. if p == "Occupant" then
  534. if car.Seat.Occupant then
  535. driver = car.Seat.Occupant.Parent.Name
  536. driving = true
  537. bg.Parent = nil
  538. invisible(workspace[driver])
  539.  
  540. if not allowed then
  541. wait(.5)
  542. code:Play()
  543. saycode = true
  544. end
  545. else
  546. visible(workspace[driver])
  547. flying = false
  548. exception = false
  549. for _, a in pairs(workspace.Camera:children'') do
  550. if a.Name == "Platform" then
  551. a:Destroy''
  552. end
  553. end
  554. for _, a in pairs(rotation) do
  555. coroutine.resume(coroutine.create(function()
  556. for i = 1,50 do
  557. a.C0 = a.C0:lerp(CFrame.Angles(math.rad(0),0,math.rad(90)), 0.1)
  558. wait()
  559. end
  560. end))
  561. end
  562. driving = false
  563. bg.Parent = car.Body
  564. end
  565. end
  566. end)
  567. end)
  568.  
  569. crash.Touched:connect(function(hit)
  570. if hit and hit.Parent and hit.Parent.Name ~= plr.Name and hit.Parent:FindFirstChildOfClass'Humanoid' and hit.Parent:FindFirstChildOfClass'Humanoid'.Health ~= 0 and speed >= 50 then
  571. humtarg = hit.Parent:FindFirstChildOfClass'Humanoid'
  572. humtarg:TakeDamage(humtarg.MaxHealth/2/2/2)
  573. a = Instance.new('Sound', hit)
  574. a.SoundId = "rbxassetid://545219984"
  575. a.Volume = 4
  576. a:Play()
  577. elseif hit:IsA'Part' and speed >= 90 then
  578. hit.Anchored = false
  579. bv = Instance.new('BodyVelocity', hit)
  580. bv.MaxForce = Vector3.new(2e9, 2e9, 2e9)
  581. bv.Velocity = hit.CFrame.lookVector * -250
  582. game:service'Debris':AddItem(bv, 0.4)
  583. end
  584. end)
  585.  
  586. mouse.KeyDown:connect(function(key)
  587. if key:lower() == "e" then
  588. up = true
  589. down = false
  590. elseif key:lower() == "q" then
  591. up = false
  592. down = true
  593. end
  594. end)
  595.  
  596. mouse.KeyUp:connect(function(key)
  597. if key:lower() == "e" then
  598. up = false
  599. down = false
  600. elseif key:lower() == "q" then
  601. up = false
  602. down = false
  603. end
  604. end)
  605.  
  606. while wait() do
  607. -- if down and flying then
  608. -- workspace.Camera:WaitForChild('Platform').CFrame = workspace.Camera:WaitForChild('Platform').CFrame * CFrame.new(0,-1.5,0)
  609. -- bg.Parent = car.Body
  610. -- elseif not down and flying then
  611. -- bg.Parent = nil
  612. -- elseif up and flying then
  613. -- workspace.Camera:WaitForChild('Platform').CFrame = workspace.Camera:WaitForChild('Platform').CFrame * CFrame.new(0,1.1,0)
  614. -- end
  615.  
  616. speed = car.Seat.Velocity.magnitude
  617.  
  618. if car.Seat.Steer == -1 then
  619. turn = "Left"
  620. elseif car.Seat.Steer == 1 then
  621. turn = "Right"
  622. elseif car.Seat.Steer == 0 then
  623. turn = "Middle"
  624. end
  625.  
  626. if not flying then
  627. if car.Seat.Throttle == 1 then
  628. for _, a in pairs(rotation) do
  629. a.C0 = a.C0:lerp(a.C0 * CFrame.Angles(0,math.rad(0),-math.rad(speed)), 0.5)
  630. end
  631. elseif car.Seat.Throttle == -1 then
  632. for _, a in pairs(rotation) do
  633. a.C0 = a.C0:lerp(a.C0 * CFrame.Angles(0,math.rad(0),math.rad(speed)), 0.5)
  634. end
  635. end
  636. end
  637.  
  638. if flying then
  639. for _, a in pairs(rotation) do
  640. a.C0 = a.C0:lerp(CFrame.Angles(math.rad(90),0,math.rad(0)), 0.1)
  641. end
  642. end
  643.  
  644. if not flying then
  645. if turn == "Left" then
  646. weld1 = Part13:FindFirstChildOfClass('Weld')
  647. weld2 = Part11:FindFirstChildOfClass('Weld')
  648.  
  649. weld1.C0 = CFrame.new(-5,0,-1.1) * CFrame.Angles(0,math.rad(50),math.rad(0))
  650. weld2.C0 = CFrame.new(-2,0,-5) * CFrame.Angles(0,math.rad(50),math.rad(0))
  651. elseif turn == "Middle" then
  652. weld1 = Part13:FindFirstChildOfClass('Weld')
  653. weld2 = Part11:FindFirstChildOfClass('Weld')
  654.  
  655. weld1.C0 = CFrame.new(-4.5,0,2.5) * CFrame.Angles(0,math.rad(90),0)
  656. weld2.C0 = CFrame.new(-4.5,0,-2.5) * CFrame.Angles(0,math.rad(90),0)
  657. elseif turn == "Right" then
  658. weld1 = Part13:FindFirstChildOfClass('Weld')
  659. weld2 = Part11:FindFirstChildOfClass('Weld')
  660.  
  661. weld1.C0 = CFrame.new(5,0,-1.1) * CFrame.Angles(0,math.rad(-50),math.rad(0))
  662. weld2.C0 = CFrame.new(2,0,-5) * CFrame.Angles(0,math.rad(-50),math.rad(0))
  663. end
  664. end
  665.  
  666. if allowed then
  667. if speed >= 25 and rocketout and car.Seat.Throttle ~= -1 then
  668. car.Seat.MaxSpeed = 200
  669. nitro:Resume()
  670. ParticleEmitter0.Enabled = true
  671. elseif not rocketout or not flying then
  672. car.Seat.MaxSpeed = 75
  673. nitro:Stop()
  674. ParticleEmitter0.Enabled = false
  675. elseif speed <= 25 and rocketout then
  676. ParticleEmitter0.Enabled = false
  677. nitro:Stop()
  678. elseif flying and not rocketout then
  679. car.Seat.MaxSpeed = 300
  680. elseif flying and rocketout then
  681. car.Seat.MaxSpeed = 500
  682. end
  683. end
  684.  
  685. if rocketout and speed >= 71 and driving then
  686. workspace.Camera.FieldOfView = speed
  687. else
  688. workspace.Camera.FieldOfView = 70
  689. end
  690.  
  691. if allowed then
  692. if not flying and not selfdriving then
  693. bg.Parent = nil
  694. elseif flying and not exception then
  695. bg.Parent = car.Body
  696. elseif exception then
  697. bg.Parent = nil
  698. end
  699. end
  700. end
  701. </pre>
  702. </body>
  703. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement