Advertisement
Bruno972

roblox Car test test test

Jan 31st, 2018
1,170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 136.19 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. VehicleSeat1 = Instance.new("VehicleSeat")
  21. Model2 = Instance.new("Model")
  22. Part3 = Instance.new("Part")
  23. Model4 = Instance.new("Model")
  24. Decal5 = Instance.new("Decal")
  25. Decal6 = Instance.new("Decal")
  26. Model7 = Instance.new("Model")
  27. Model8 = Instance.new("Model")
  28. PointLight9 = Instance.new("PointLight")
  29. Decal10 = Instance.new("Decal")
  30. Decal11 = Instance.new("Decal")
  31. Decal12 = Instance.new("Decal")
  32. Decal13 = Instance.new("Decal")
  33. Decal14 = Instance.new("Decal")
  34. Decal15 = Instance.new("Decal")
  35. Model16 = Instance.new("Model")
  36. Model17 = Instance.new("Model")
  37. Part18 = Instance.new("Part")
  38. BodyGyro19 = Instance.new("BodyGyro")
  39. Script20 = Instance.new("Script")
  40. BodyForce21 = Instance.new("BodyForce")
  41. ParticleEmitter22 = Instance.new("ParticleEmitter")
  42. Sound23 = Instance.new("Sound")
  43. Part24 = Instance.new("Part")
  44. Model25 = Instance.new("Model")
  45. Decal26 = Instance.new("Decal")
  46. Decal27 = Instance.new("Decal")
  47. Model28 = Instance.new("Model")
  48. Model29 = Instance.new("Model")
  49. PointLight30 = Instance.new("PointLight")
  50. Decal31 = Instance.new("Decal")
  51. Decal32 = Instance.new("Decal")
  52. Decal33 = Instance.new("Decal")
  53. Decal34 = Instance.new("Decal")
  54. Decal35 = Instance.new("Decal")
  55. Decal36 = Instance.new("Decal")
  56. Model37 = Instance.new("Model")
  57. Model38 = Instance.new("Model")
  58. Part39 = Instance.new("Part")
  59. BodyGyro40 = Instance.new("BodyGyro")
  60. Script41 = Instance.new("Script")
  61. Part42 = Instance.new("Part")
  62. Model43 = Instance.new("Model")
  63. Decal44 = Instance.new("Decal")
  64. Decal45 = Instance.new("Decal")
  65. Decal46 = Instance.new("Decal")
  66. Decal47 = Instance.new("Decal")
  67. Decal48 = Instance.new("Decal")
  68. Decal49 = Instance.new("Decal")
  69. PointLight50 = Instance.new("PointLight")
  70. Model51 = Instance.new("Model")
  71. Model52 = Instance.new("Model")
  72. Model53 = Instance.new("Model")
  73. Part54 = Instance.new("Part")
  74. BodyGyro55 = Instance.new("BodyGyro")
  75. Script56 = Instance.new("Script")
  76. Model57 = Instance.new("Model")
  77. Decal58 = Instance.new("Decal")
  78. Decal59 = Instance.new("Decal")
  79. BodyForce60 = Instance.new("BodyForce")
  80. ParticleEmitter61 = Instance.new("ParticleEmitter")
  81. Sound62 = Instance.new("Sound")
  82. Part63 = Instance.new("Part")
  83. Model64 = Instance.new("Model")
  84. Decal65 = Instance.new("Decal")
  85. Decal66 = Instance.new("Decal")
  86. Model67 = Instance.new("Model")
  87. Model68 = Instance.new("Model")
  88. PointLight69 = Instance.new("PointLight")
  89. Decal70 = Instance.new("Decal")
  90. Decal71 = Instance.new("Decal")
  91. Decal72 = Instance.new("Decal")
  92. Decal73 = Instance.new("Decal")
  93. Decal74 = Instance.new("Decal")
  94. Decal75 = Instance.new("Decal")
  95. Model76 = Instance.new("Model")
  96. Model77 = Instance.new("Model")
  97. Part78 = Instance.new("Part")
  98. BodyGyro79 = Instance.new("BodyGyro")
  99. Script80 = Instance.new("Script")
  100. Humanoid81 = Instance.new("Humanoid")
  101. Model82 = Instance.new("Model")
  102. Script83 = Instance.new("Script")
  103. Folder84 = Instance.new("Folder")
  104. LocalScript85 = Instance.new("LocalScript")
  105. Sound86 = Instance.new("Sound")
  106. NumberValue87 = Instance.new("NumberValue")
  107. NumberValue88 = Instance.new("NumberValue")
  108. RemoteEvent89 = Instance.new("RemoteEvent")
  109. Script90 = Instance.new("Script")
  110. Frame91 = Instance.new("Frame")
  111. LocalScript92 = Instance.new("LocalScript")
  112. Frame93 = Instance.new("Frame")
  113. Frame94 = Instance.new("Frame")
  114. Frame95 = Instance.new("Frame")
  115. ImageLabel96 = Instance.new("ImageLabel")
  116. Frame97 = Instance.new("Frame")
  117. Frame98 = Instance.new("Frame")
  118. ImageLabel99 = Instance.new("ImageLabel")
  119. Frame100 = Instance.new("Frame")
  120. Frame101 = Instance.new("Frame")
  121. ImageLabel102 = Instance.new("ImageLabel")
  122. Frame103 = Instance.new("Frame")
  123. Frame104 = Instance.new("Frame")
  124. ImageLabel105 = Instance.new("ImageLabel")
  125. Frame106 = Instance.new("Frame")
  126. Frame107 = Instance.new("Frame")
  127. ImageLabel108 = Instance.new("ImageLabel")
  128. TextLabel109 = Instance.new("TextLabel")
  129. TextLabel110 = Instance.new("TextLabel")
  130. Frame111 = Instance.new("Frame")
  131. LocalScript112 = Instance.new("LocalScript")
  132. Frame113 = Instance.new("Frame")
  133. Frame114 = Instance.new("Frame")
  134. Frame115 = Instance.new("Frame")
  135. Frame116 = Instance.new("Frame")
  136. Frame117 = Instance.new("Frame")
  137. Frame118 = Instance.new("Frame")
  138. Frame119 = Instance.new("Frame")
  139. Frame120 = Instance.new("Frame")
  140. TextLabel121 = Instance.new("TextLabel")
  141. TextLabel122 = Instance.new("TextLabel")
  142. TextLabel123 = Instance.new("TextLabel")
  143. TextLabel124 = Instance.new("TextLabel")
  144. TextLabel125 = Instance.new("TextLabel")
  145. TextLabel126 = Instance.new("TextLabel")
  146. TextLabel127 = Instance.new("TextLabel")
  147. Frame128 = Instance.new("Frame")
  148. TextButton129 = Instance.new("TextButton")
  149. Frame130 = Instance.new("Frame")
  150. Frame131 = Instance.new("Frame")
  151. Frame132 = Instance.new("Frame")
  152. TextButton133 = Instance.new("TextButton")
  153. TextButton134 = Instance.new("TextButton")
  154. TextButton135 = Instance.new("TextButton")
  155. TextLabel136 = Instance.new("TextLabel")
  156. TextLabel137 = Instance.new("TextLabel")
  157. Frame138 = Instance.new("Frame")
  158. TextLabel139 = Instance.new("TextLabel")
  159. TextLabel140 = Instance.new("TextLabel")
  160. TextLabel141 = Instance.new("TextLabel")
  161. TextLabel142 = Instance.new("TextLabel")
  162. TextLabel143 = Instance.new("TextLabel")
  163. TextLabel144 = Instance.new("TextLabel")
  164. TextLabel145 = Instance.new("TextLabel")
  165. TextLabel146 = Instance.new("TextLabel")
  166. TextLabel147 = Instance.new("TextLabel")
  167. TextLabel148 = Instance.new("TextLabel")
  168. TextLabel149 = Instance.new("TextLabel")
  169. TextLabel150 = Instance.new("TextLabel")
  170. TextLabel151 = Instance.new("TextLabel")
  171. TextLabel152 = Instance.new("TextLabel")
  172. TextLabel153 = Instance.new("TextLabel")
  173. TextButton154 = Instance.new("TextButton")
  174. TextButton155 = Instance.new("TextButton")
  175. TextButton156 = Instance.new("TextButton")
  176. TextButton157 = Instance.new("TextButton")
  177. TextButton158 = Instance.new("TextButton")
  178. TextButton159 = Instance.new("TextButton")
  179. TextButton160 = Instance.new("TextButton")
  180. TextButton161 = Instance.new("TextButton")
  181. TextButton162 = Instance.new("TextButton")
  182. TextButton163 = Instance.new("TextButton")
  183. TextButton164 = Instance.new("TextButton")
  184. TextButton165 = Instance.new("TextButton")
  185. TextButton166 = Instance.new("TextButton")
  186. TextButton167 = Instance.new("TextButton")
  187. TextButton168 = Instance.new("TextButton")
  188. TextLabel169 = Instance.new("TextLabel")
  189. TextLabel170 = Instance.new("TextLabel")
  190. TextLabel171 = Instance.new("TextLabel")
  191. TextLabel172 = Instance.new("TextLabel")
  192. TextLabel173 = Instance.new("TextLabel")
  193. TextLabel174 = Instance.new("TextLabel")
  194. TextLabel175 = Instance.new("TextLabel")
  195. TextButton176 = Instance.new("TextButton")
  196. TextButton177 = Instance.new("TextButton")
  197. TextButton178 = Instance.new("TextButton")
  198. TextButton179 = Instance.new("TextButton")
  199. TextButton180 = Instance.new("TextButton")
  200. TextButton181 = Instance.new("TextButton")
  201. TextButton182 = Instance.new("TextButton")
  202. TextLabel183 = Instance.new("TextLabel")
  203. TextLabel184 = Instance.new("TextLabel")
  204. TextLabel185 = Instance.new("TextLabel")
  205. TextLabel186 = Instance.new("TextLabel")
  206. TextLabel187 = Instance.new("TextLabel")
  207. TextLabel188 = Instance.new("TextLabel")
  208. TextLabel189 = Instance.new("TextLabel")
  209. TextLabel190 = Instance.new("TextLabel")
  210. TextLabel191 = Instance.new("TextLabel")
  211. TextButton192 = Instance.new("TextButton")
  212. TextButton193 = Instance.new("TextButton")
  213. TextButton194 = Instance.new("TextButton")
  214. TextButton195 = Instance.new("TextButton")
  215. TextButton196 = Instance.new("TextButton")
  216. TextButton197 = Instance.new("TextButton")
  217. TextButton198 = Instance.new("TextButton")
  218. TextButton199 = Instance.new("TextButton")
  219. TextButton200 = Instance.new("TextButton")
  220. TextLabel201 = Instance.new("TextLabel")
  221. TextLabel202 = Instance.new("TextLabel")
  222. TextLabel203 = Instance.new("TextLabel")
  223. TextLabel204 = Instance.new("TextLabel")
  224. TextLabel205 = Instance.new("TextLabel")
  225. ScrollingFrame206 = Instance.new("ScrollingFrame")
  226. TextLabel207 = Instance.new("TextLabel")
  227. ScrollingFrame208 = Instance.new("ScrollingFrame")
  228. TextLabel209 = Instance.new("TextLabel")
  229. ScrollingFrame210 = Instance.new("ScrollingFrame")
  230. TextLabel211 = Instance.new("TextLabel")
  231. ScrollingFrame212 = Instance.new("ScrollingFrame")
  232. TextLabel213 = Instance.new("TextLabel")
  233. TextLabel214 = Instance.new("TextLabel")
  234. LocalScript215 = Instance.new("LocalScript")
  235. LocalScript216 = Instance.new("LocalScript")
  236. LocalScript217 = Instance.new("LocalScript")
  237. LocalScript218 = Instance.new("LocalScript")
  238. ScreenGui219 = Instance.new("ScreenGui")
  239. ObjectValue220 = Instance.new("ObjectValue")
  240. Folder221 = Instance.new("Folder")
  241. NumberValue222 = Instance.new("NumberValue")
  242. NumberValue223 = Instance.new("NumberValue")
  243. NumberValue224 = Instance.new("NumberValue")
  244. StringValue225 = Instance.new("StringValue")
  245. NumberValue226 = Instance.new("NumberValue")
  246. NumberValue227 = Instance.new("NumberValue")
  247. NumberValue228 = Instance.new("NumberValue")
  248. NumberValue229 = Instance.new("NumberValue")
  249. NumberValue230 = Instance.new("NumberValue")
  250. BoolValue231 = Instance.new("BoolValue")
  251. BoolValue232 = Instance.new("BoolValue")
  252. BoolValue233 = Instance.new("BoolValue")
  253. Vector3Value234 = Instance.new("Vector3Value")
  254. BoolValue235 = Instance.new("BoolValue")
  255. BoolValue236 = Instance.new("BoolValue")
  256. LocalScript237 = Instance.new("LocalScript")
  257. Model238 = Instance.new("Model")
  258. Model239 = Instance.new("Model")
  259. Model240 = Instance.new("Model")
  260. PointLight241 = Instance.new("PointLight")
  261. ParticleEmitter242 = Instance.new("ParticleEmitter")
  262. PointLight243 = Instance.new("PointLight")
  263. ParticleEmitter244 = Instance.new("ParticleEmitter")
  264. Model245 = Instance.new("Model")
  265. SurfaceLight246 = Instance.new("SurfaceLight")
  266. SurfaceLight247 = Instance.new("SurfaceLight")
  267. Model248 = Instance.new("Model")
  268. Model0.Name = "Takumi Ae86"
  269. Model0.Parent = mas
  270. VehicleSeat1.Name = "DriveSeat"
  271. VehicleSeat1.Parent = Model0
  272. VehicleSeat1.Material = Enum.Material.SmoothPlastic
  273. VehicleSeat1.Anchored = true
  274. VehicleSeat1.CanCollide = false
  275. VehicleSeat1.Elasticity = 0
  276. VehicleSeat1.Size = Vector3.new(1.79999995, 1, 1.60000002)
  277. VehicleSeat1.CFrame = CFrame.new(-28.4148674, 5.88858128, 71.8790894, 1, -1.09722859e-19, -2.85508217e-37, -1.09722859e-19, 1, 6.50521303e-18, -2.85508239e-37, 6.50521303e-18, 1)
  278. VehicleSeat1.BackSurface = Enum.SurfaceType.Unjoinable
  279. VehicleSeat1.BottomSurface = Enum.SurfaceType.Unjoinable
  280. VehicleSeat1.FrontSurface = Enum.SurfaceType.Motor
  281. VehicleSeat1.LeftSurface = Enum.SurfaceType.Unjoinable
  282. VehicleSeat1.RightSurface = Enum.SurfaceType.Unjoinable
  283. VehicleSeat1.TopSurface = Enum.SurfaceType.Hinge
  284. VehicleSeat1.MaxSpeed = 0
  285. VehicleSeat1.Torque = 0
  286. VehicleSeat1.TurnSpeed = 0
  287. VehicleSeat1.Position = Vector3.new(-28.4148674, 5.88858128, 71.8790894)
  288. Model2.Name = "Wheels"
  289. Model2.Parent = Model0
  290. Part3.Name = "RL"
  291. Part3.Parent = Model2
  292. Part3.Material = Enum.Material.SmoothPlastic
  293. Part3.BrickColor = BrickColor.new("Institutional white")
  294. Part3.Transparency = 1
  295. Part3.Rotation = Vector3.new(90, 0, 90)
  296. Part3.Anchored = true
  297. Part3.Elasticity = 1
  298. Part3.FormFactor = Enum.FormFactor.Symmetric
  299. Part3.Friction = 1.7999999523163
  300. Part3.Shape = Enum.PartType.Ball
  301. Part3.Size = Vector3.new(2.5999999, 2.5999999, 2.5999999)
  302. Part3.CFrame = CFrame.new(-31.3432465, 5.30216599, 76.7311325, -2.85508217e-37, -1, 1.09722859e-19, 6.50521303e-18, 1.09722859e-19, -1, 1, 2.85508239e-37, -6.50521303e-18)
  303. Part3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  304. Part3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  305. Part3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  306. Part3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  307. Part3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  308. Part3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  309. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  310. Part3.Position = Vector3.new(-31.3432465, 5.30216599, 76.7311325)
  311. Part3.Orientation = Vector3.new(90, -90, 0)
  312. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  313. Model4.Name = "Fixed"
  314. Model4.Parent = Part3
  315. Decal5.Parent = mas
  316. Decal5.Texture = "http://www.roblox.com/asset/?id=187577536"
  317. Decal5.Face = Enum.NormalId.Left
  318. Decal6.Parent = mas
  319. Decal6.Texture = "http://www.roblox.com/asset/?id=187577536"
  320. Decal6.Face = Enum.NormalId.Right
  321. Model7.Name = "Parts"
  322. Model7.Parent = Part3
  323. Model8.Name = "Paint"
  324. Model8.Parent = Model7
  325. PointLight9.Name = "L"
  326. PointLight9.Parent = mas
  327. PointLight9.Color = Color3.new(1, 0.25098, 0)
  328. PointLight9.Range = 0
  329. PointLight9.Color = Color3.new(1, 0.25098, 0)
  330. Decal10.Parent = mas
  331. Decal10.Texture = "http://www.roblox.com/asset/?id=28237403"
  332. Decal10.Face = Enum.NormalId.Back
  333. Decal11.Parent = mas
  334. Decal11.Texture = "http://www.roblox.com/asset/?id=28237403"
  335. Decal11.Face = Enum.NormalId.Top
  336. Decal12.Parent = mas
  337. Decal12.Texture = "http://www.roblox.com/asset/?id=28237403"
  338. Decal12.Face = Enum.NormalId.Left
  339. Decal13.Parent = mas
  340. Decal13.Texture = "http://www.roblox.com/asset/?id=28237403"
  341. Decal14.Parent = mas
  342. Decal14.Texture = "http://www.roblox.com/asset/?id=28237403"
  343. Decal14.Face = Enum.NormalId.Bottom
  344. Decal15.Parent = mas
  345. Decal15.Texture = "http://www.roblox.com/asset/?id=28237403"
  346. Decal15.Face = Enum.NormalId.Right
  347. Model16.Name = "tire3"
  348. Model16.Parent = Model7
  349. Model17.Name = "Parts"
  350. Model17.Parent = Model16
  351. Part18.Name = "Wheel"
  352. Part18.Parent = Model16
  353. Part18.Material = Enum.Material.SmoothPlastic
  354. Part18.Transparency = 1
  355. Part18.Rotation = Vector3.new(180, 0, -90)
  356. Part18.Anchored = true
  357. Part18.FormFactor = Enum.FormFactor.Symmetric
  358. Part18.Friction = 1.2999999523163
  359. Part18.Shape = Enum.PartType.Ball
  360. Part18.Size = Vector3.new(2.37999988, 2.37999988, 2.37999988)
  361. Part18.CFrame = CFrame.new(-31.3432465, 5.30218506, 76.7311325, -1.09722859e-19, 1, 2.85508217e-37, 1, -1.09722859e-19, -6.50521303e-18, 6.50521303e-18, -2.85508239e-37, -1)
  362. Part18.BottomSurface = Enum.SurfaceType.Smooth
  363. Part18.TopSurface = Enum.SurfaceType.Hinge
  364. Part18.Position = Vector3.new(-31.3432465, 5.30218506, 76.7311325)
  365. Part18.Orientation = Vector3.new(0, 180, 90)
  366. BodyGyro19.Parent = Part18
  367. BodyGyro19.maxTorque = Vector3.new(100, 0, 100)
  368. BodyGyro19.P = 3
  369. BodyGyro19.D = 50
  370. BodyGyro19.MaxTorque = Vector3.new(100, 0, 100)
  371. Script20.Name = "Weld"
  372. Script20.Parent = Model16
  373. table.insert(cors,sandbox(Script20,function()
  374. local all,last = {}
  375. function scan(p)
  376. for _,v in pairs(p:GetChildren()) do
  377. if (v:IsA("BasePart")) then
  378. if (last) then
  379. local w = Instance.new("Weld")
  380. w.Part0,w.Part1 = last,v
  381. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  382. w.Parent = last
  383. end
  384. table.insert(all,v)
  385. last = v
  386. end
  387. scan(v)
  388. end
  389. end
  390. scan(script.Parent)
  391. wait(1)
  392. for _,v in pairs(all) do v.Anchored = false end
  393. end))
  394. BodyForce21.Name = "Burnout"
  395. BodyForce21.Parent = Part3
  396. ParticleEmitter22.Name = "Smoke"
  397. ParticleEmitter22.Parent = Part3
  398. ParticleEmitter22.Size = NumberSequence.new(3,7.861111164093,9.3888893127441)
  399. ParticleEmitter22.Color = ColorSequence.new(Color3.new(0.827451, 0.827451, 0.827451),Color3.new(1, 1, 1))
  400. ParticleEmitter22.Texture = "http://www.roblox.com/asset/?id=34098552"
  401. ParticleEmitter22.Acceleration = Vector3.new(0, 1, 0)
  402. ParticleEmitter22.Lifetime = NumberRange.new(3, 3.5)
  403. ParticleEmitter22.Rate = 0
  404. ParticleEmitter22.RotSpeed = NumberRange.new(20, 100)
  405. ParticleEmitter22.Speed = NumberRange.new(-2, 0)
  406. ParticleEmitter22.VelocitySpread = 20
  407. ParticleEmitter22.Color = ColorSequence.new(Color3.new(0.827451, 0.827451, 0.827451),Color3.new(1, 1, 1))
  408. Sound23.Name = "SQ"
  409. Sound23.Parent = Part3
  410. Sound23.SoundId = "rbxassetid://201887209"
  411. Sound23.Volume = 0
  412. Sound23.Looped = true
  413. Part24.Name = "FR"
  414. Part24.Parent = Model2
  415. Part24.Material = Enum.Material.SmoothPlastic
  416. Part24.BrickColor = BrickColor.new("Institutional white")
  417. Part24.Transparency = 1
  418. Part24.Rotation = Vector3.new(90, 0, -90)
  419. Part24.Anchored = true
  420. Part24.Elasticity = 1
  421. Part24.FormFactor = Enum.FormFactor.Symmetric
  422. Part24.Friction = 1.7999999523163
  423. Part24.Shape = Enum.PartType.Ball
  424. Part24.Size = Vector3.new(2.5999999, 2.5999999, 2.5999999)
  425. Part24.CFrame = CFrame.new(-25.7171593, 5.30217409, 67.5475693, 2.85508217e-37, 1, 1.09722859e-19, -6.50521303e-18, -1.09722859e-19, -1, -1, -2.85508239e-37, -6.50521303e-18)
  426. Part24.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  427. Part24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  428. Part24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  429. Part24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  430. Part24.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  431. Part24.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  432. Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
  433. Part24.Position = Vector3.new(-25.7171593, 5.30217409, 67.5475693)
  434. Part24.Orientation = Vector3.new(90, 90, 0)
  435. Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
  436. Model25.Name = "Fixed"
  437. Model25.Parent = Part24
  438. Decal26.Parent = mas
  439. Decal26.Texture = "http://www.roblox.com/asset/?id=187577536"
  440. Decal26.Face = Enum.NormalId.Left
  441. Decal27.Parent = mas
  442. Decal27.Texture = "http://www.roblox.com/asset/?id=187577536"
  443. Decal27.Face = Enum.NormalId.Right
  444. Model28.Name = "Parts"
  445. Model28.Parent = Part24
  446. Model29.Name = "Paint"
  447. Model29.Parent = Model28
  448. PointLight30.Name = "L"
  449. PointLight30.Parent = mas
  450. PointLight30.Color = Color3.new(1, 0.25098, 0)
  451. PointLight30.Range = 0
  452. PointLight30.Color = Color3.new(1, 0.25098, 0)
  453. Decal31.Parent = mas
  454. Decal31.Texture = "http://www.roblox.com/asset/?id=28237403"
  455. Decal31.Face = Enum.NormalId.Back
  456. Decal32.Parent = mas
  457. Decal32.Texture = "http://www.roblox.com/asset/?id=28237403"
  458. Decal32.Face = Enum.NormalId.Top
  459. Decal33.Parent = mas
  460. Decal33.Texture = "http://www.roblox.com/asset/?id=28237403"
  461. Decal33.Face = Enum.NormalId.Left
  462. Decal34.Parent = mas
  463. Decal34.Texture = "http://www.roblox.com/asset/?id=28237403"
  464. Decal35.Parent = mas
  465. Decal35.Texture = "http://www.roblox.com/asset/?id=28237403"
  466. Decal35.Face = Enum.NormalId.Bottom
  467. Decal36.Parent = mas
  468. Decal36.Texture = "http://www.roblox.com/asset/?id=28237403"
  469. Decal36.Face = Enum.NormalId.Right
  470. Model37.Name = "tire2"
  471. Model37.Parent = Model28
  472. Model38.Name = "Parts"
  473. Model38.Parent = Model37
  474. Part39.Name = "Wheel"
  475. Part39.Parent = Model37
  476. Part39.Material = Enum.Material.SmoothPlastic
  477. Part39.Transparency = 1
  478. Part39.Rotation = Vector3.new(0, 0, 90)
  479. Part39.Anchored = true
  480. Part39.FormFactor = Enum.FormFactor.Symmetric
  481. Part39.Friction = 1.2999999523163
  482. Part39.Shape = Enum.PartType.Ball
  483. Part39.Size = Vector3.new(2.37999988, 2.37999988, 2.37999988)
  484. Part39.CFrame = CFrame.new(-25.7171593, 5.30219316, 67.5475693, -1.09722859e-19, -1, -2.85508217e-37, 1, 1.09722859e-19, 6.50521303e-18, 6.50521303e-18, 2.85508239e-37, 1)
  485. Part39.BottomSurface = Enum.SurfaceType.Smooth
  486. Part39.TopSurface = Enum.SurfaceType.Hinge
  487. Part39.Position = Vector3.new(-25.7171593, 5.30219316, 67.5475693)
  488. Part39.Orientation = Vector3.new(0, 0, 90)
  489. BodyGyro40.Parent = Part39
  490. BodyGyro40.maxTorque = Vector3.new(100, 0, 100)
  491. BodyGyro40.P = 3
  492. BodyGyro40.D = 50
  493. BodyGyro40.MaxTorque = Vector3.new(100, 0, 100)
  494. Script41.Name = "Weld"
  495. Script41.Parent = Model37
  496. table.insert(cors,sandbox(Script41,function()
  497. local all,last = {}
  498. function scan(p)
  499. for _,v in pairs(p:GetChildren()) do
  500. if (v:IsA("BasePart")) then
  501. if (last) then
  502. local w = Instance.new("Weld")
  503. w.Part0,w.Part1 = last,v
  504. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  505. w.Parent = last
  506. end
  507. table.insert(all,v)
  508. last = v
  509. end
  510. scan(v)
  511. end
  512. end
  513. scan(script.Parent)
  514. wait(1)
  515. for _,v in pairs(all) do v.Anchored = false end
  516. end))
  517. Part42.Name = "RR"
  518. Part42.Parent = Model2
  519. Part42.Material = Enum.Material.SmoothPlastic
  520. Part42.BrickColor = BrickColor.new("Institutional white")
  521. Part42.Transparency = 1
  522. Part42.Rotation = Vector3.new(90, 0, -90)
  523. Part42.Anchored = true
  524. Part42.Elasticity = 1
  525. Part42.FormFactor = Enum.FormFactor.Symmetric
  526. Part42.Friction = 1.7999999523163
  527. Part42.Shape = Enum.PartType.Ball
  528. Part42.Size = Vector3.new(2.5999999, 2.5999999, 2.5999999)
  529. Part42.CFrame = CFrame.new(-25.7471428, 5.30218124, 76.7311554, 2.85508217e-37, 1, 1.09722859e-19, -6.50521303e-18, -1.09722859e-19, -1, -1, -2.85508239e-37, -6.50521303e-18)
  530. Part42.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  531. Part42.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  532. Part42.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  533. Part42.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  534. Part42.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  535. Part42.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  536. Part42.Color = Color3.new(0.972549, 0.972549, 0.972549)
  537. Part42.Position = Vector3.new(-25.7471428, 5.30218124, 76.7311554)
  538. Part42.Orientation = Vector3.new(90, 90, 0)
  539. Part42.Color = Color3.new(0.972549, 0.972549, 0.972549)
  540. Model43.Name = "Parts"
  541. Model43.Parent = Part42
  542. Decal44.Parent = mas
  543. Decal44.Texture = "http://www.roblox.com/asset/?id=28237403"
  544. Decal44.Face = Enum.NormalId.Back
  545. Decal45.Parent = mas
  546. Decal45.Texture = "http://www.roblox.com/asset/?id=28237403"
  547. Decal45.Face = Enum.NormalId.Top
  548. Decal46.Parent = mas
  549. Decal46.Texture = "http://www.roblox.com/asset/?id=28237403"
  550. Decal46.Face = Enum.NormalId.Left
  551. Decal47.Parent = mas
  552. Decal47.Texture = "http://www.roblox.com/asset/?id=28237403"
  553. Decal48.Parent = mas
  554. Decal48.Texture = "http://www.roblox.com/asset/?id=28237403"
  555. Decal48.Face = Enum.NormalId.Bottom
  556. Decal49.Parent = mas
  557. Decal49.Texture = "http://www.roblox.com/asset/?id=28237403"
  558. Decal49.Face = Enum.NormalId.Right
  559. PointLight50.Name = "L"
  560. PointLight50.Parent = mas
  561. PointLight50.Color = Color3.new(1, 0.25098, 0)
  562. PointLight50.Range = 0
  563. PointLight50.Color = Color3.new(1, 0.25098, 0)
  564. Model51.Name = "Paint"
  565. Model51.Parent = Model43
  566. Model52.Name = "tire4"
  567. Model52.Parent = Model43
  568. Model53.Name = "Parts"
  569. Model53.Parent = Model52
  570. Part54.Name = "Wheel"
  571. Part54.Parent = Model52
  572. Part54.Material = Enum.Material.SmoothPlastic
  573. Part54.Transparency = 1
  574. Part54.Rotation = Vector3.new(0, 0, 90)
  575. Part54.Anchored = true
  576. Part54.FormFactor = Enum.FormFactor.Symmetric
  577. Part54.Friction = 1.2999999523163
  578. Part54.Shape = Enum.PartType.Ball
  579. Part54.Size = Vector3.new(2.37999988, 2.37999988, 2.37999988)
  580. Part54.CFrame = CFrame.new(-25.7471428, 5.30219316, 76.7311554, -1.09722859e-19, -1, -2.85508217e-37, 1, 1.09722859e-19, 6.50521303e-18, 6.50521303e-18, 2.85508239e-37, 1)
  581. Part54.BottomSurface = Enum.SurfaceType.Smooth
  582. Part54.TopSurface = Enum.SurfaceType.Hinge
  583. Part54.Position = Vector3.new(-25.7471428, 5.30219316, 76.7311554)
  584. Part54.Orientation = Vector3.new(0, 0, 90)
  585. BodyGyro55.Parent = Part54
  586. BodyGyro55.maxTorque = Vector3.new(100, 0, 100)
  587. BodyGyro55.P = 3
  588. BodyGyro55.D = 50
  589. BodyGyro55.MaxTorque = Vector3.new(100, 0, 100)
  590. Script56.Name = "Weld"
  591. Script56.Parent = Model52
  592. table.insert(cors,sandbox(Script56,function()
  593. local all,last = {}
  594. function scan(p)
  595. for _,v in pairs(p:GetChildren()) do
  596. if (v:IsA("BasePart")) then
  597. if (last) then
  598. local w = Instance.new("Weld")
  599. w.Part0,w.Part1 = last,v
  600. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  601. w.Parent = last
  602. end
  603. table.insert(all,v)
  604. last = v
  605. end
  606. scan(v)
  607. end
  608. end
  609. scan(script.Parent)
  610. wait(1)
  611. for _,v in pairs(all) do v.Anchored = false end
  612. end))
  613. Model57.Name = "Fixed"
  614. Model57.Parent = Part42
  615. Decal58.Parent = mas
  616. Decal58.Texture = "http://www.roblox.com/asset/?id=187577536"
  617. Decal58.Face = Enum.NormalId.Left
  618. Decal59.Parent = mas
  619. Decal59.Texture = "http://www.roblox.com/asset/?id=187577536"
  620. Decal59.Face = Enum.NormalId.Right
  621. BodyForce60.Name = "Burnout"
  622. BodyForce60.Parent = Part42
  623. ParticleEmitter61.Name = "Smoke"
  624. ParticleEmitter61.Parent = Part42
  625. ParticleEmitter61.Size = NumberSequence.new(3,7.861111164093,9.3888893127441)
  626. ParticleEmitter61.Color = ColorSequence.new(Color3.new(0.827451, 0.827451, 0.827451),Color3.new(1, 1, 1))
  627. ParticleEmitter61.Texture = "http://www.roblox.com/asset/?id=34098552"
  628. ParticleEmitter61.Acceleration = Vector3.new(0, 1, 0)
  629. ParticleEmitter61.Lifetime = NumberRange.new(3, 3.5)
  630. ParticleEmitter61.Rate = 0
  631. ParticleEmitter61.RotSpeed = NumberRange.new(20, 100)
  632. ParticleEmitter61.Speed = NumberRange.new(-2, 0)
  633. ParticleEmitter61.VelocitySpread = 20
  634. ParticleEmitter61.Color = ColorSequence.new(Color3.new(0.827451, 0.827451, 0.827451),Color3.new(1, 1, 1))
  635. Sound62.Name = "SQ"
  636. Sound62.Parent = Part42
  637. Sound62.SoundId = "rbxassetid://201887209"
  638. Sound62.Volume = 0
  639. Sound62.Looped = true
  640. Part63.Name = "FL"
  641. Part63.Parent = Model2
  642. Part63.Material = Enum.Material.SmoothPlastic
  643. Part63.BrickColor = BrickColor.new("Institutional white")
  644. Part63.Transparency = 1
  645. Part63.Rotation = Vector3.new(90, 0, 90)
  646. Part63.Anchored = true
  647. Part63.Elasticity = 1
  648. Part63.FormFactor = Enum.FormFactor.Symmetric
  649. Part63.Friction = 1.7999999523163
  650. Part63.Shape = Enum.PartType.Ball
  651. Part63.Size = Vector3.new(2.5999999, 2.5999999, 2.5999999)
  652. Part63.CFrame = CFrame.new(-31.3732605, 5.30217409, 67.5475311, -2.85508217e-37, -1, 1.09722859e-19, 6.50521303e-18, 1.09722859e-19, -1, 1, 2.85508239e-37, -6.50521303e-18)
  653. Part63.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  654. Part63.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  655. Part63.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  656. Part63.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  657. Part63.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  658. Part63.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  659. Part63.Color = Color3.new(0.972549, 0.972549, 0.972549)
  660. Part63.Position = Vector3.new(-31.3732605, 5.30217409, 67.5475311)
  661. Part63.Orientation = Vector3.new(90, -90, 0)
  662. Part63.Color = Color3.new(0.972549, 0.972549, 0.972549)
  663. Model64.Name = "Fixed"
  664. Model64.Parent = Part63
  665. Decal65.Parent = mas
  666. Decal65.Texture = "http://www.roblox.com/asset/?id=187577536"
  667. Decal65.Face = Enum.NormalId.Left
  668. Decal66.Parent = mas
  669. Decal66.Texture = "http://www.roblox.com/asset/?id=187577536"
  670. Decal66.Face = Enum.NormalId.Right
  671. Model67.Name = "Parts"
  672. Model67.Parent = Part63
  673. Model68.Name = "Paint"
  674. Model68.Parent = Model67
  675. PointLight69.Name = "L"
  676. PointLight69.Parent = mas
  677. PointLight69.Color = Color3.new(1, 0.25098, 0)
  678. PointLight69.Range = 0
  679. PointLight69.Color = Color3.new(1, 0.25098, 0)
  680. Decal70.Parent = mas
  681. Decal70.Texture = "http://www.roblox.com/asset/?id=28237403"
  682. Decal70.Face = Enum.NormalId.Back
  683. Decal71.Parent = mas
  684. Decal71.Texture = "http://www.roblox.com/asset/?id=28237403"
  685. Decal71.Face = Enum.NormalId.Top
  686. Decal72.Parent = mas
  687. Decal72.Texture = "http://www.roblox.com/asset/?id=28237403"
  688. Decal72.Face = Enum.NormalId.Left
  689. Decal73.Parent = mas
  690. Decal73.Texture = "http://www.roblox.com/asset/?id=28237403"
  691. Decal74.Parent = mas
  692. Decal74.Texture = "http://www.roblox.com/asset/?id=28237403"
  693. Decal74.Face = Enum.NormalId.Bottom
  694. Decal75.Parent = mas
  695. Decal75.Texture = "http://www.roblox.com/asset/?id=28237403"
  696. Decal75.Face = Enum.NormalId.Right
  697. Model76.Name = "tire1"
  698. Model76.Parent = Model67
  699. Model77.Name = "Parts"
  700. Model77.Parent = Model76
  701. Part78.Name = "Wheel"
  702. Part78.Parent = Model76
  703. Part78.Material = Enum.Material.SmoothPlastic
  704. Part78.Transparency = 1
  705. Part78.Rotation = Vector3.new(180, 0, -90)
  706. Part78.Anchored = true
  707. Part78.FormFactor = Enum.FormFactor.Symmetric
  708. Part78.Friction = 1.2999999523163
  709. Part78.Shape = Enum.PartType.Ball
  710. Part78.Size = Vector3.new(2.37999988, 2.37999988, 2.37999988)
  711. Part78.CFrame = CFrame.new(-31.3732605, 5.30218506, 67.5475311, -1.09722859e-19, 1, 2.85508217e-37, 1, -1.09722859e-19, -6.50521303e-18, 6.50521303e-18, -2.85508239e-37, -1)
  712. Part78.BottomSurface = Enum.SurfaceType.Smooth
  713. Part78.TopSurface = Enum.SurfaceType.Hinge
  714. Part78.Position = Vector3.new(-31.3732605, 5.30218506, 67.5475311)
  715. Part78.Orientation = Vector3.new(0, 180, 90)
  716. BodyGyro79.Parent = Part78
  717. BodyGyro79.maxTorque = Vector3.new(100, 0, 100)
  718. BodyGyro79.P = 3
  719. BodyGyro79.D = 50
  720. BodyGyro79.MaxTorque = Vector3.new(100, 0, 100)
  721. Script80.Name = "Weld"
  722. Script80.Parent = Model76
  723. table.insert(cors,sandbox(Script80,function()
  724. local all,last = {}
  725. function scan(p)
  726. for _,v in pairs(p:GetChildren()) do
  727. if (v:IsA("BasePart")) then
  728. if (last) then
  729. local w = Instance.new("Weld")
  730. w.Part0,w.Part1 = last,v
  731. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  732. w.Parent = last
  733. end
  734. table.insert(all,v)
  735. last = v
  736. end
  737. scan(v)
  738. end
  739. end
  740. scan(script.Parent)
  741. wait(1)
  742. for _,v in pairs(all) do v.Anchored = false end
  743. end))
  744. Humanoid81.Parent = Model0
  745. Model82.Name = "Misc"
  746. Model82.Parent = Model0
  747. Script83.Name = " Initialize"
  748. Script83.Parent = mas
  749. table.insert(cors,sandbox(Script83,function()
  750. --BasedWeld2.0
  751. local JS = game:GetService("JointsService")
  752. function MakeWeld(x,y,type,s)
  753. if type==nil then type="Weld" end
  754. local W=Instance.new(type,JS)
  755. W.Part0=x W.Part1=y
  756. W.C0=x.CFrame:inverse()*x.CFrame
  757. W.C1=y.CFrame:inverse()*x.CFrame
  758. if type=="Motor" and s~=nil then
  759. W.MaxVelocity=s
  760. end
  761. return W
  762. end
  763.  
  764. function ModelWeld(a,b)
  765. if a:IsA("BasePart") then
  766. MakeWeld(b,a,"Weld")
  767. elseif a:IsA("Model") then
  768. for i,v in pairs(a:GetChildren()) do
  769. ModelWeld(v,b)
  770. end
  771. end
  772. end
  773.  
  774. function UnAnchor(a)
  775. if a:IsA("BasePart") then a.Anchored=false end for i,v in pairs(a:GetChildren()) do UnAnchor(v) end
  776. end
  777. --
  778. script.Parent:WaitForChild("A-Chassis Interface")
  779. script.Parent:WaitForChild("Plugins")
  780. script.Parent:WaitForChild("README")
  781.  
  782. local car=script.Parent.Parent
  783. local _Tune=require(script.Parent)
  784.  
  785. local Drive=car.Wheels:GetChildren()
  786.  
  787. function getParts(model,t,a)
  788. for i,v in pairs(model:GetChildren()) do
  789. if v:IsA("BasePart") then table.insert(t,{v,a.CFrame:toObjectSpace(v.CFrame)})
  790. elseif v:IsA("Model") then getParts(v,t,a)
  791. end
  792. end
  793. end
  794.  
  795. for _,v in pairs(Drive) do
  796.  
  797. for _,a in pairs({"Top","Bottom","Left","Right","Front","Back"}) do
  798. v[a.."Surface"]=Enum.SurfaceType.SmoothNoOutlines
  799. end
  800.  
  801. local WParts = {}
  802.  
  803. local tPos = v.Position-car.DriveSeat.Position
  804. if v.Name=="FL" or v.Name=="RL" then
  805. v.CFrame = car.DriveSeat.CFrame*CFrame.Angles(math.rad(90),0,math.rad(90))
  806. else
  807. v.CFrame = car.DriveSeat.CFrame*CFrame.Angles(math.rad(90),0,math.rad(-90))
  808. end
  809. v.CFrame = v.CFrame+tPos
  810.  
  811. if v:FindFirstChild("Parts")~=nil then
  812. getParts(v.Parts,WParts,v)
  813. end
  814. if v:FindFirstChild("Fixed")~=nil then
  815. getParts(v.Fixed,WParts,v)
  816. end
  817.  
  818. if v.Name=="FL" or v.Name=="FR" then
  819. v.CFrame = v.CFrame*CFrame.Angles(math.rad(_Tune.FCamber),0,0)
  820. if v.Name=="FL" then
  821. v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(_Tune.FToe))
  822. else
  823. v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(-_Tune.FToe))
  824. end
  825. elseif v.Name=="RL" or v.Name=="RR" then
  826. v.CFrame = v.CFrame*CFrame.Angles(math.rad(_Tune.RCamber),0,0)
  827. if v.Name=="RL" then
  828. v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(_Tune.RToe))
  829. else
  830. v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(-_Tune.RToe))
  831. end
  832. end
  833.  
  834. for _,a in pairs(WParts) do
  835. a[1].CFrame=v.CFrame:toWorldSpace(a[2])
  836. end
  837.  
  838. if v.Name=="FL" then
  839. v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(-_Tune.FCaster),0)
  840. elseif v.Name=="FR" or v.Name=="F" then
  841. v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(_Tune.FCaster),0)
  842. elseif v.Name=="RL" then
  843. v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(-_Tune.RCaster),0)
  844. elseif v.Name=="RR" or v.Name=="R" then
  845. v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(_Tune.RCaster),0)
  846. end
  847.  
  848. local arm=Instance.new("Part",v)
  849. arm.Name="Arm"
  850. arm.Anchored=true
  851. arm.CanCollide=false
  852. arm.FormFactor=Enum.FormFactor.Custom
  853. arm.Size=Vector3.new(1,1,1)
  854. arm.CFrame=(v.CFrame*CFrame.new(0,_Tune.StAxisOffset,0))*CFrame.Angles(-math.pi/2,-math.pi/2,0)
  855. arm.TopSurface=Enum.SurfaceType.Smooth
  856. arm.BottomSurface=Enum.SurfaceType.Smooth
  857. arm.Transparency=1
  858.  
  859. local base=arm:Clone()
  860. base.Parent=v
  861. base.Name="Base"
  862. base.CFrame=base.CFrame*CFrame.new(0,1,0)
  863. base.BottomSurface=Enum.SurfaceType.Hinge
  864.  
  865. local axle=arm:Clone()
  866. axle.Parent=v
  867. axle.Name="Axle"
  868. axle.CFrame=CFrame.new(v.Position-((v.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector*((v.Size.x/2)+(axle.Size.x/2))),v.Position)*CFrame.Angles(0,math.pi,0)
  869. axle.BackSurface=Enum.SurfaceType.Hinge
  870.  
  871. if v.Name=="F" or v.Name=="R" then
  872. local axle2=arm:Clone()
  873. axle2.Parent=v
  874. axle2.Name="Axle"
  875. axle2.CFrame=CFrame.new(v.Position+((v.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector*((v.Size.x/2)+(axle2.Size.x/2))),v.Position)*CFrame.Angles(0,math.pi,0)
  876. axle2.BackSurface=Enum.SurfaceType.Hinge
  877. MakeWeld(arm,axle2)
  878. end
  879.  
  880. MakeWeld(car.DriveSeat,base)
  881. if v.Parent.Name == "RL" or v.Parent.Name == "RR" or v.Name=="R" then
  882. MakeWeld(car.DriveSeat,arm)
  883. end
  884.  
  885. MakeWeld(arm,axle)
  886.  
  887. arm:MakeJoints()
  888. axle:MakeJoints()
  889.  
  890.  
  891. if v:FindFirstChild("Fixed")~=nil then
  892. ModelWeld(v.Fixed,axle)
  893. end
  894.  
  895. if v:FindFirstChild("Parts")~=nil then
  896. ModelWeld(v.Parts,v)
  897. end
  898.  
  899. if v:FindFirstChild("Steer") then
  900. v:FindFirstChild("Steer"):Destroy()
  901. end
  902.  
  903. local gyro=Instance.new("BodyGyro",v)
  904. gyro.Name="Stabilizer"
  905. if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
  906. gyro.D=_Tune.FGyroD
  907. gyro.MaxTorque=_Tune.FGyroMaxTorque
  908. gyro.P=_Tune.FGyroP
  909. else
  910. gyro.D=_Tune.RGyroD
  911. gyro.MaxTorque=_Tune.RGyroMaxTorque
  912. gyro.P=_Tune.RGyroP
  913. end
  914.  
  915. if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
  916. local steer=Instance.new("BodyGyro",arm)
  917. steer.Name="Steer"
  918. steer.P=_Tune.SteerP
  919. steer.D=_Tune.SteerD
  920. steer.MaxTorque=Vector3.new(0,_Tune.SteerMaxTorque,0)
  921. steer.cframe=base.CFrame
  922. else
  923. MakeWeld(base,axle,"Weld")
  924. end
  925.  
  926. local AV=Instance.new("BodyAngularVelocity",v)
  927. AV.Name="#AV"
  928. AV.angularvelocity=Vector3.new(0,0,0)
  929. AV.maxTorque=Vector3.new(_Tune.PBrakeForce,0,_Tune.PBrakeForce)
  930. AV.P=1e9
  931. end
  932.  
  933. for i,v in pairs(script:GetChildren()) do
  934. if v:IsA("ModuleScript") then
  935. require(v)
  936. end
  937. end
  938.  
  939. wait()
  940. ModelWeld(car.Body,car.DriveSeat)
  941.  
  942. local flipG = Instance.new("BodyGyro",car.DriveSeat)
  943. flipG.Name = "Flip"
  944. flipG.D = 0
  945. flipG.MaxTorque = Vector3.new(0,0,0)
  946. flipG.P = 0
  947.  
  948. wait()
  949.  
  950. UnAnchor(car)
  951.  
  952. script.Parent["A-Chassis Interface"].Car.Value=car
  953. for i,v in pairs(script.Parent.Plugins:GetChildren()) do
  954. for _,a in pairs(v:GetChildren()) do
  955. if a:IsA("RemoteEvent") or v:IsA("RemoteFunction") then
  956. a.Parent=car
  957. for _,b in pairs(a:GetChildren()) do
  958. if b:IsA("Script") then b.Disabled=false end
  959. end
  960. end
  961. end
  962. v.Parent = script.Parent["A-Chassis Interface"]
  963. end
  964. script.Parent.Plugins:Destroy()
  965.  
  966. car.DriveSeat.ChildAdded:connect(function(child)
  967. if child.Name=="SeatWeld" and child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
  968. local p=game.Players:GetPlayerFromCharacter(child.Part1.Parent)
  969. car.DriveSeat:SetNetworkOwner(p)
  970. local g=script.Parent["A-Chassis Interface"]:Clone()
  971. g.Parent=p.PlayerGui
  972. end
  973. end)
  974. car.DriveSeat.ChildRemoved:connect(function(child)
  975. if child.Name=="SeatWeld" and child:IsA("Weld") then
  976. for i,v in pairs(car.DriveSeat:GetChildren()) do
  977. if v:IsA("Sound") then v:Stop() end
  978. end
  979. if car.DriveSeat:FindFirstChild("Flip")~=nil then
  980. car.DriveSeat.Flip.MaxTorque = Vector3.new()
  981. end
  982. for i,v in pairs(car.Wheels:GetChildren()) do
  983. if v:FindFirstChild("#AV")~=nil then
  984. if v["#AV"].AngularVelocity.Magnitude>0 then
  985. v["#AV"].AngularVelocity = Vector3.new()
  986. v["#AV"].MaxTorque = Vector3.new()
  987. end
  988. end
  989. end
  990. end
  991. end)
  992.  
  993. ver = require(script.Parent.README)
  994. end))
  995. Folder84.Name = "Plugins"
  996. Folder84.Parent = mas
  997. LocalScript85.Name = "AC6_Stock_Sound"
  998. LocalScript85.Parent = Folder84
  999. table.insert(cors,sandbox(LocalScript85,function()
  1000. --[[
  1001. ___ _______ _
  1002. / _ |____/ ___/ / ___ ____ ___ (_)__
  1003. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
  1004. /_/ |_| \___/_//_/\_,_/___/___/_/___/
  1005. SecondLogic @ Inspare
  1006. ]]
  1007. local FE = workspace.FilteringEnabled
  1008. local car = script.Parent.Car.Value
  1009. local _Tune = require(car["A-Chassis Tune"])
  1010. local on = 0
  1011.  
  1012. script:WaitForChild("Rev")
  1013.  
  1014. if not FE then
  1015. for i,v in pairs(car.DriveSeat:GetChildren()) do
  1016. for _,a in pairs(script:GetChildren()) do
  1017. if v.Name==a.Name then v:Stop() wait() v:Destroy() end
  1018. end
  1019. end
  1020. for i,v in pairs(script:GetChildren()) do
  1021. v.Parent=car.DriveSeat
  1022. end
  1023.  
  1024. car.DriveSeat.Rev:Play()
  1025.  
  1026. while wait() do
  1027. local _RPM = script.Parent.Values.RPM.Value
  1028.  
  1029. if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
  1030. car.DriveSeat.Rev.Pitch = (car.DriveSeat.Rev.SetPitch.Value + car.DriveSeat.Rev.SetRev.Value*_RPM/_Tune.Redline)*on^2
  1031. end
  1032. else
  1033. local handler = car.AC6_FE_Sounds
  1034. handler:FireServer("newSound","Rev",car.DriveSeat,script.Rev.SoundId,0,script.Rev.Volume,true)
  1035. handler:FireServer("playSound","Rev")
  1036. local pitch=0
  1037. while wait() do
  1038. local _RPM = script.Parent.Values.RPM.Value
  1039.  
  1040. if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
  1041. pitch = (script.Rev.SetPitch.Value + script.Rev.SetRev.Value*_RPM/_Tune.Redline)*on^2
  1042. handler:FireServer("updateSound","Rev",script.Rev.SoundId,pitch,script.Rev.Volume)
  1043. end
  1044. end
  1045.  
  1046. end))
  1047. Sound86.Name = "Rev"
  1048. Sound86.Parent = LocalScript85
  1049. Sound86.Pitch = 0
  1050. Sound86.SoundId = "rbxassetid://281069183"
  1051. Sound86.Volume = 1
  1052. Sound86.Looped = true
  1053. NumberValue87.Name = "SetRev"
  1054. NumberValue87.Parent = Sound86
  1055. NumberValue87.Value = 1.4
  1056. NumberValue88.Name = "SetPitch"
  1057. NumberValue88.Parent = Sound86
  1058. NumberValue88.Value = -0.1
  1059. RemoteEvent89.Name = "AC6_FE_Sounds"
  1060. RemoteEvent89.Parent = LocalScript85
  1061. Script90.Name = "Handler"
  1062. Script90.Parent = RemoteEvent89
  1063. Script90.Disabled = true
  1064. table.insert(cors,sandbox(Script90,function()
  1065. local Sounds = {}
  1066. local F = {}
  1067.  
  1068. F.newSound = function(name,par,id,pitch,volume,loop)
  1069. for i,v in pairs(Sounds) do
  1070. if i==name then
  1071. v:Stop()
  1072. v:Destroy()
  1073. end
  1074. end
  1075. local sn = Instance.new("Sound",par)
  1076. sn.Name = name
  1077. sn.SoundId = id
  1078. sn.Pitch = pitch
  1079. sn.Volume = volume
  1080. sn.Looped = loop
  1081. sn.AncestryChanged:connect(function(child,parent) print(parent) end)
  1082. Sounds[name]=sn
  1083. end
  1084.  
  1085. F.updateSound = function(sound,id,pit,vol)
  1086. local sn = Sounds[sound]
  1087. if id~=sn.SoundId then sn.SoundId = id end
  1088. if pit~=sn.Pitch then sn.Pitch = pit end
  1089. if vol~=sn.Volume then sn.Volume = vol end
  1090. end
  1091.  
  1092. F.playSound = function(sound)
  1093. Sounds[sound]:Play()
  1094. end
  1095.  
  1096. F.pauseSound = function(sound)
  1097. Sounds[sound]:Pause()
  1098. end
  1099.  
  1100. F.stopSound = function(sound)
  1101. Sounds[sound]:Stop()
  1102. end
  1103.  
  1104. F.removeSound = function(sound)
  1105. Sounds[sound]:Stop()
  1106. Sounds[sound]:Destroy()
  1107. Sounds[sound]=nil
  1108. end
  1109.  
  1110. script.Parent.OnServerEvent:connect(function(pl,Fnc,...)
  1111. F[Fnc](...)
  1112. end)
  1113. end))
  1114. Frame91.Name = "Inspare_Splash"
  1115. Frame91.Parent = Folder84
  1116. Frame91.Transparency = 1
  1117. Frame91.Size = UDim2.new(1, 0, 1, 0)
  1118. Frame91.BackgroundColor3 = Color3.new(1, 1, 1)
  1119. Frame91.BackgroundTransparency = 1
  1120. Frame91.BorderSizePixel = 0
  1121. LocalScript92.Name = "Inspare_Splash"
  1122. LocalScript92.Parent = Frame91
  1123. table.insert(cors,sandbox(LocalScript92,function()
  1124. --SecondLogic @ INSPARE
  1125. wait(.2)
  1126. local out=false
  1127. coroutine.resume(coroutine.create(function()
  1128. local fr = 0
  1129. local trs=1
  1130. while wait(.05) do
  1131. fr = fr+1
  1132. if fr>=10 then fr=0 end
  1133. if not out then
  1134. trs=math.max(0,trs-.05)
  1135. else
  1136. trs=math.min(1,trs+.05)
  1137. end
  1138. for i,v in pairs(script.Parent.Frame:GetChildren()) do
  1139. v.Frame.ImageLabel.ImageTransparency = trs
  1140. v.Frame.ImageLabel.Position=UDim2.new(-(fr%3),0,-math.floor(fr/3),0)
  1141. if out then
  1142. v.BackgroundTransparency=.5+(.5*trs)
  1143. v.Frame.ImageLabel.BackgroundTransparency=trs
  1144. end
  1145. end
  1146. if out then
  1147. script.Parent.IN.TextTransparency=trs
  1148. script.Parent.SPARE.TextTransparency=trs
  1149. end
  1150. if out and trs==1 then
  1151. break
  1152. end
  1153. end
  1154. script.Parent:Destroy()
  1155. end))
  1156.  
  1157. game:GetService("RunService").RenderStepped:connect(function()
  1158. for i,v in pairs(script.Parent.Frame:GetChildren()) do
  1159. v.Frame.Position = UDim2.new(0,-250-v.Position.X.Offset-script.Parent.Frame.Position.X.Offset,0,-136-v.Position.Y.Offset)
  1160. end
  1161. end)
  1162.  
  1163. script.Parent.Frame:TweenPosition(UDim2.new(0,-100,0,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,10)
  1164. script.Parent.IN:TweenPosition(UDim2.new(0.5,-74,0.5,100),Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,10)
  1165. script.Parent.SPARE:TweenPosition(UDim2.new(0.5,6,0.5,100),Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,10)
  1166.  
  1167. script.Parent.Frame.B:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
  1168. script.Parent.Frame.C:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
  1169. script.Parent.Frame.D:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
  1170. script.Parent.Frame.E:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
  1171. wait(.35)
  1172. script.Parent.Frame.C:TweenPosition(UDim2.new(0.5, -44,0.5, -44),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
  1173. script.Parent.Frame.D:TweenPosition(UDim2.new(0.5, -44,0.5, 46),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
  1174. script.Parent.Frame.E:TweenPosition(UDim2.new(0.5, -44,0.5, 46),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
  1175. wait(.35)
  1176. script.Parent.Frame.E:TweenPosition(UDim2.new(0.5, -134,0.5, 46),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
  1177. wait(1)
  1178. for i=1,30 do
  1179. for _,v in pairs(script.Parent.Frame:GetChildren()) do
  1180. v.BackgroundTransparency=1-(i/60)
  1181. end
  1182. script.Parent.IN.TextTransparency=1-(i/30)
  1183. script.Parent.SPARE.TextTransparency=1-(i/30)
  1184. wait(.01)
  1185. end
  1186. wait(1.5)
  1187. out=true
  1188. end))
  1189. Frame93.Parent = Frame91
  1190. Frame93.Transparency = 1
  1191. Frame93.Size = UDim2.new(1, 0, 1, 0)
  1192. Frame93.Position = UDim2.new(0, 50, 0, 0)
  1193. Frame93.BackgroundColor3 = Color3.new(1, 1, 1)
  1194. Frame93.BackgroundTransparency = 1
  1195. Frame93.BorderSizePixel = 0
  1196. Frame94.Name = "C"
  1197. Frame94.Parent = Frame93
  1198. Frame94.Transparency = 1
  1199. Frame94.Size = UDim2.new(0, 88, 0, 88)
  1200. Frame94.Position = UDim2.new(0.5, 46, 0.5, -134)
  1201. Frame94.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  1202. Frame94.BackgroundTransparency = 1
  1203. Frame94.BorderSizePixel = 0
  1204. Frame94.ZIndex = 3
  1205. Frame94.ClipsDescendants = true
  1206. Frame95.Parent = Frame94
  1207. Frame95.Transparency = 1
  1208. Frame95.Size = UDim2.new(0, 500, 0, 272)
  1209. Frame95.Position = UDim2.new(0, -250, 0, -136)
  1210. Frame95.BackgroundColor3 = Color3.new(1, 1, 1)
  1211. Frame95.BackgroundTransparency = 1
  1212. Frame95.BorderSizePixel = 0
  1213. Frame95.ClipsDescendants = true
  1214. ImageLabel96.Parent = Frame95
  1215. ImageLabel96.Size = UDim2.new(0, 1500, 0, 1088)
  1216. ImageLabel96.BackgroundColor3 = Color3.new(1, 1, 1)
  1217. ImageLabel96.ZIndex = 2
  1218. ImageLabel96.Image = "rbxassetid://423455664"
  1219. ImageLabel96.ImageTransparency = 1
  1220. Frame97.Name = "B"
  1221. Frame97.Parent = Frame93
  1222. Frame97.Transparency = 1
  1223. Frame97.Size = UDim2.new(0, 88, 0, 88)
  1224. Frame97.Position = UDim2.new(0.5, 46, 0.5, -134)
  1225. Frame97.BackgroundColor3 = Color3.new(1, 1, 1)
  1226. Frame97.BackgroundTransparency = 1
  1227. Frame97.BorderSizePixel = 0
  1228. Frame97.ZIndex = 3
  1229. Frame97.ClipsDescendants = true
  1230. Frame98.Parent = Frame97
  1231. Frame98.Transparency = 1
  1232. Frame98.Size = UDim2.new(0, 500, 0, 272)
  1233. Frame98.Position = UDim2.new(0, -250, 0, -136)
  1234. Frame98.BackgroundColor3 = Color3.new(1, 1, 1)
  1235. Frame98.BackgroundTransparency = 1
  1236. Frame98.BorderSizePixel = 0
  1237. Frame98.ClipsDescendants = true
  1238. ImageLabel99.Parent = Frame98
  1239. ImageLabel99.Size = UDim2.new(0, 1500, 0, 1088)
  1240. ImageLabel99.BackgroundColor3 = Color3.new(1, 1, 1)
  1241. ImageLabel99.ZIndex = 2
  1242. ImageLabel99.Image = "rbxassetid://423455664"
  1243. ImageLabel99.ImageTransparency = 1
  1244. Frame100.Name = "D"
  1245. Frame100.Parent = Frame93
  1246. Frame100.Transparency = 1
  1247. Frame100.Size = UDim2.new(0, 88, 0, 88)
  1248. Frame100.Position = UDim2.new(0.5, 46, 0.5, -134)
  1249. Frame100.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  1250. Frame100.BackgroundTransparency = 1
  1251. Frame100.BorderSizePixel = 0
  1252. Frame100.ZIndex = 3
  1253. Frame100.ClipsDescendants = true
  1254. Frame101.Parent = Frame100
  1255. Frame101.Transparency = 1
  1256. Frame101.Size = UDim2.new(0, 500, 0, 272)
  1257. Frame101.Position = UDim2.new(0, -250, 0, -136)
  1258. Frame101.BackgroundColor3 = Color3.new(1, 1, 1)
  1259. Frame101.BackgroundTransparency = 1
  1260. Frame101.BorderSizePixel = 0
  1261. Frame101.ClipsDescendants = true
  1262. ImageLabel102.Parent = Frame101
  1263. ImageLabel102.Size = UDim2.new(0, 1500, 0, 1088)
  1264. ImageLabel102.BackgroundColor3 = Color3.new(1, 1, 1)
  1265. ImageLabel102.ZIndex = 2
  1266. ImageLabel102.Image = "rbxassetid://423455664"
  1267. ImageLabel102.ImageTransparency = 1
  1268. Frame103.Name = "E"
  1269. Frame103.Parent = Frame93
  1270. Frame103.Transparency = 1
  1271. Frame103.Size = UDim2.new(0, 88, 0, 88)
  1272. Frame103.Position = UDim2.new(0.5, 46, 0.5, -134)
  1273. Frame103.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  1274. Frame103.BackgroundTransparency = 1
  1275. Frame103.BorderSizePixel = 0
  1276. Frame103.ZIndex = 3
  1277. Frame103.ClipsDescendants = true
  1278. Frame104.Parent = Frame103
  1279. Frame104.Transparency = 1
  1280. Frame104.Size = UDim2.new(0, 500, 0, 272)
  1281. Frame104.Position = UDim2.new(0, -250, 0, -136)
  1282. Frame104.BackgroundColor3 = Color3.new(1, 1, 1)
  1283. Frame104.BackgroundTransparency = 1
  1284. Frame104.BorderSizePixel = 0
  1285. Frame104.ClipsDescendants = true
  1286. ImageLabel105.Parent = Frame104
  1287. ImageLabel105.Size = UDim2.new(0, 1500, 0, 1088)
  1288. ImageLabel105.BackgroundColor3 = Color3.new(1, 1, 1)
  1289. ImageLabel105.ZIndex = 2
  1290. ImageLabel105.Image = "rbxassetid://423455664"
  1291. ImageLabel105.ImageTransparency = 1
  1292. Frame106.Name = "A"
  1293. Frame106.Parent = Frame93
  1294. Frame106.Transparency = 1
  1295. Frame106.Size = UDim2.new(0, 88, 0, 88)
  1296. Frame106.Position = UDim2.new(0.5, 46, 0.5, -134)
  1297. Frame106.BackgroundColor3 = Color3.new(1, 1, 1)
  1298. Frame106.BackgroundTransparency = 1
  1299. Frame106.BorderSizePixel = 0
  1300. Frame106.ZIndex = 3
  1301. Frame106.ClipsDescendants = true
  1302. Frame107.Parent = Frame106
  1303. Frame107.Transparency = 1
  1304. Frame107.Size = UDim2.new(0, 500, 0, 272)
  1305. Frame107.Position = UDim2.new(0, -250, 0, -136)
  1306. Frame107.BackgroundColor3 = Color3.new(1, 1, 1)
  1307. Frame107.BackgroundTransparency = 1
  1308. Frame107.BorderSizePixel = 0
  1309. Frame107.ClipsDescendants = true
  1310. ImageLabel108.Parent = Frame107
  1311. ImageLabel108.Size = UDim2.new(0, 1500, 0, 1088)
  1312. ImageLabel108.BackgroundColor3 = Color3.new(1, 1, 1)
  1313. ImageLabel108.ZIndex = 2
  1314. ImageLabel108.Image = "rbxassetid://423455664"
  1315. ImageLabel108.ImageTransparency = 1
  1316. TextLabel109.Name = "IN"
  1317. TextLabel109.Parent = Frame91
  1318. TextLabel109.Transparency = 1
  1319. TextLabel109.Text = "IN"
  1320. TextLabel109.Position = UDim2.new(0.5, 76, 0.5, 100)
  1321. TextLabel109.BackgroundColor3 = Color3.new(1, 1, 1)
  1322. TextLabel109.BackgroundTransparency = 1
  1323. TextLabel109.BorderSizePixel = 0
  1324. TextLabel109.ZIndex = 5
  1325. TextLabel109.Font = Enum.Font.Arial
  1326. TextLabel109.FontSize = Enum.FontSize.Size48
  1327. TextLabel109.TextColor3 = Color3.new(1, 1, 1)
  1328. TextLabel109.TextTransparency = 1
  1329. TextLabel110.Name = "SPARE"
  1330. TextLabel110.Parent = Frame91
  1331. TextLabel110.Transparency = 1
  1332. TextLabel110.Text = "SPARE"
  1333. TextLabel110.Position = UDim2.new(0.5, 156, 0.5, 100)
  1334. TextLabel110.BackgroundColor3 = Color3.new(1, 1, 1)
  1335. TextLabel110.BackgroundTransparency = 1
  1336. TextLabel110.BorderSizePixel = 0
  1337. TextLabel110.ZIndex = 5
  1338. TextLabel110.Font = Enum.Font.Arial
  1339. TextLabel110.FontSize = Enum.FontSize.Size48
  1340. TextLabel110.TextColor3 = Color3.new(1, 0.666667, 0)
  1341. TextLabel110.TextTransparency = 1
  1342. Frame111.Name = "AC6_Stock_Gauges"
  1343. Frame111.Parent = Folder84
  1344. Frame111.Transparency = 1
  1345. Frame111.Size = UDim2.new(1, 0, 1, 0)
  1346. Frame111.Position = UDim2.new(0, 0, 0, 300)
  1347. Frame111.BackgroundColor3 = Color3.new(1, 1, 1)
  1348. Frame111.BackgroundTransparency = 1
  1349. Frame111.BorderSizePixel = 0
  1350. LocalScript112.Name = "Gauges_AC6"
  1351. LocalScript112.Parent = Frame111
  1352. table.insert(cors,sandbox(LocalScript112,function()
  1353. --[[
  1354. ___ _______ _
  1355. / _ |____/ ___/ / ___ ____ ___ (_)__
  1356. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
  1357. /_/ |_| \___/_//_/\_,_/___/___/_/___/
  1358. SecondLogic @ Inspare
  1359. ]]
  1360.  
  1361. script.Parent:WaitForChild("Speedo")
  1362. script.Parent:WaitForChild("Tach")
  1363. script.Parent:WaitForChild("ln")
  1364. script.Parent:WaitForChild("Gear")
  1365. script.Parent:WaitForChild("Speed")
  1366.  
  1367.  
  1368. local car = script.Parent.Parent.Car.Value
  1369. car.DriveSeat.HeadsUpDisplay = false
  1370.  
  1371. local _Tune = require(car["A-Chassis Tune"])
  1372.  
  1373. local _pRPM = _Tune.PeakRPM
  1374. local _lRPM = _Tune.Redline
  1375.  
  1376. local revEnd = math.ceil(_lRPM/1000)
  1377.  
  1378. local Drive={}
  1379. if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
  1380. if car.Wheels:FindFirstChild("FL")~= nil then
  1381. table.insert(Drive,car.Wheels.FL)
  1382. end
  1383. if car.Wheels:FindFirstChild("FR")~= nil then
  1384. table.insert(Drive,car.Wheels.FR)
  1385. end
  1386. if car.Wheels:FindFirstChild("F")~= nil then
  1387. table.insert(Drive,car.Wheels.F)
  1388. end
  1389. end
  1390. if _Tune.Config == "RWD" or _Tune.Config == "AWD" then
  1391. if car.Wheels:FindFirstChild("RL")~= nil then
  1392. table.insert(Drive,car.Wheels.RL)
  1393. end
  1394. if car.Wheels:FindFirstChild("RR")~= nil then
  1395. table.insert(Drive,car.Wheels.RR)
  1396. end
  1397. if car.Wheels:FindFirstChild("R")~= nil then
  1398. table.insert(Drive,car.Wheels.R)
  1399. end
  1400. end
  1401.  
  1402. local wDia = 0
  1403. for i,v in pairs(Drive) do
  1404. if v.Size.x>wDia then wDia = v.Size.x end
  1405. end
  1406. Drive = nil
  1407. local maxSpeed = math.ceil(wDia*math.pi*_lRPM/60/_Tune.Ratios[#_Tune.Ratios]/_Tune.FinalDrive)
  1408. local spInc = math.max(math.ceil(maxSpeed/200)*20,20)
  1409.  
  1410.  
  1411. for i=0,revEnd*2 do
  1412. local ln = script.Parent.ln:clone()
  1413. ln.Parent = script.Parent.Tach
  1414. ln.Rotation = 45 + i * 225 / (revEnd*2)
  1415. ln.Num.Text = i/2
  1416. ln.Num.Rotation = -ln.Rotation
  1417. if i*500>=math.floor(_pRPM/500)*500 then
  1418. ln.Frame.BackgroundColor3 = Color3.new(1,0,0)
  1419. if i<revEnd*2 then
  1420. ln2 = ln:clone()
  1421. ln2.Parent = script.Parent.Tach
  1422. ln2.Rotation = 45 + (i+.5) * 225 / (revEnd*2)
  1423. ln2.Num:Destroy()
  1424. ln2.Visible=true
  1425. end
  1426. end
  1427. if i%2==0 then
  1428. ln.Frame.Size = UDim2.new(0,3,0,10)
  1429. ln.Frame.Position = UDim2.new(0,-1,0,100)
  1430. ln.Num.Visible = true
  1431. else
  1432. ln.Num:Destroy()
  1433. end
  1434. ln.Visible=true
  1435. end
  1436.  
  1437. for i=1,90 do
  1438. local ln = script.Parent.ln:clone()
  1439. ln.Parent = script.Parent.Speedo
  1440. ln.Rotation = 45 + 225*(i/90)
  1441. if i%2==0 then
  1442. ln.Frame.Size = UDim2.new(0,2,0,10)
  1443. ln.Frame.Position = UDim2.new(0,-1,0,100)
  1444. else
  1445. ln.Frame.Size = UDim2.new(0,3,0,5)
  1446. end
  1447. ln.Num:Destroy()
  1448. ln.Visible=true
  1449. end
  1450. for i=0,maxSpeed,spInc do
  1451. local ln = script.Parent.ln:clone()
  1452. ln.Parent = script.Parent.Speedo
  1453. ln.Rotation = 45 + 225*(i/maxSpeed)
  1454. ln.Num.Text = i
  1455. ln.Num.Rotation = -ln.Rotation
  1456. ln.Frame:Destroy()
  1457. ln.Num.Visible=true
  1458. ln.Visible=true
  1459. end
  1460.  
  1461. if script.Parent.Parent.IsOn.Value then
  1462. script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
  1463. end
  1464.  
  1465. script.Parent.Parent.IsOn.Changed:connect(function()
  1466. if script.Parent.Parent.IsOn.Value then
  1467. script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
  1468. end
  1469. end)
  1470.  
  1471. script.Parent.Parent.Values.RPM.Changed:connect(function()
  1472. script.Parent.Tach.Needle.Rotation = 45 + 225 * math.min(1,script.Parent.Parent.Values.RPM.Value / (revEnd*1000))
  1473. end)
  1474.  
  1475. script.Parent.Parent.Values.Gear.Changed:connect(function()
  1476. local gearText = script.Parent.Parent.Values.Gear.Value
  1477. if gearText == 0 then gearText = "N"
  1478. elseif gearText == -1 then gearText = "R"
  1479. end
  1480. script.Parent.Gear.Text = gearText
  1481. end)
  1482.  
  1483. script.Parent.Parent.Values.TCS.Changed:connect(function()
  1484. if script.Parent.Parent.Values.TCS.Value then
  1485. script.Parent.TCS.TextColor3 = Color3.new(1,170/255,0)
  1486. script.Parent.TCS.TextStrokeColor3 = Color3.new(1,170/255,0)
  1487. if script.Parent.Parent.Values.TCSActive.Value then
  1488. wait()
  1489. script.Parent.TCS.Visible = not script.Parent.TCS.Visible
  1490. else
  1491. wait()
  1492. script.Parent.TCS.Visible = false
  1493. end
  1494. else
  1495. script.Parent.TCS.Visible = true
  1496. script.Parent.TCS.TextColor3 = Color3.new(1,0,0)
  1497. script.Parent.TCS.TextStrokeColor3 = Color3.new(1,0,0)
  1498. end
  1499. end)
  1500.  
  1501. script.Parent.Parent.Values.TCSActive.Changed:connect(function()
  1502. if script.Parent.Parent.Values.TCSActive.Value and script.Parent.Parent.Values.TCS.Value then
  1503. wait()
  1504. script.Parent.TCS.Visible = not script.Parent.TCS.Visible
  1505. elseif not script.Parent.Parent.Values.TCS.Value then
  1506. wait()
  1507. script.Parent.TCS.Visible = true
  1508. else
  1509. wait()
  1510. script.Parent.TCS.Visible = false
  1511. end
  1512. end)
  1513.  
  1514. script.Parent.TCS.Changed:connect(function()
  1515. if script.Parent.Parent.Values.TCSActive.Value and script.Parent.Parent.Values.TCS.Value then
  1516. wait()
  1517. script.Parent.TCS.Visible = not script.Parent.TCS.Visible
  1518. elseif not script.Parent.Parent.Values.TCS.Value then
  1519. wait()
  1520. script.Parent.TCS.Visible = true
  1521. end
  1522. end)
  1523.  
  1524. script.Parent.Parent.Values.PBrake.Changed:connect(function()
  1525. script.Parent.PBrake.Visible = script.Parent.Parent.Values.PBrake.Value
  1526. end)
  1527.  
  1528. script.Parent.Parent.Values.TransmissionMode.Changed:connect(function()
  1529. if script.Parent.Parent.Values.TransmissionMode.Value == "Auto" then
  1530. script.Parent.TMode.Text = "A/T"
  1531. script.Parent.TMode.BackgroundColor3 = Color3.new(1,170/255,0)
  1532. else
  1533. script.Parent.TMode.Text = "M/T"
  1534. script.Parent.TMode.BackgroundColor3 = Color3.new(1,85/255,.5)
  1535. end
  1536. end)
  1537.  
  1538. script.Parent.Parent.Values.Velocity.Changed:connect(function(property)
  1539. script.Parent.Speedo.Needle.Rotation =45 + 225 * math.min(1,script.Parent.Parent.Values.Velocity.Value.Magnitude/maxSpeed)
  1540. script.Parent.Speed.Text = math.floor(script.Parent.Parent.Values.Velocity.Value.Magnitude) .. " SPS"
  1541. end)
  1542.  
  1543. end))
  1544. Frame113.Name = "Tach"
  1545. Frame113.Parent = Frame111
  1546. Frame113.Position = UDim2.new(0.5, -150, 1, -100)
  1547. Frame113.BackgroundColor3 = Color3.new(1, 1, 1)
  1548. Frame113.BorderSizePixel = 0
  1549. Frame114.Name = "Needle"
  1550. Frame114.Parent = Frame113
  1551. Frame114.Rotation = 45
  1552. Frame114.BackgroundColor3 = Color3.new(1, 1, 1)
  1553. Frame114.BorderSizePixel = 0
  1554. Frame115.Parent = Frame114
  1555. Frame115.Transparency = 0.10000000149012
  1556. Frame115.Size = UDim2.new(0, 4, 0, 110)
  1557. Frame115.Position = UDim2.new(0, -2, 0, -10)
  1558. Frame115.BackgroundColor3 = Color3.new(1, 0, 0)
  1559. Frame115.BackgroundTransparency = 0.10000000149012
  1560. Frame115.BorderSizePixel = 0
  1561. Frame115.ZIndex = 2
  1562. Frame116.Name = "Speedo"
  1563. Frame116.Parent = Frame111
  1564. Frame116.Position = UDim2.new(0.5, 150, 1, -100)
  1565. Frame116.BackgroundColor3 = Color3.new(1, 1, 1)
  1566. Frame116.BorderSizePixel = 0
  1567. Frame117.Name = "Needle"
  1568. Frame117.Parent = Frame116
  1569. Frame117.Rotation = 45
  1570. Frame117.BackgroundColor3 = Color3.new(1, 1, 1)
  1571. Frame117.BorderSizePixel = 0
  1572. Frame118.Parent = Frame117
  1573. Frame118.Transparency = 0.10000000149012
  1574. Frame118.Size = UDim2.new(0, 4, 0, 110)
  1575. Frame118.Position = UDim2.new(0, -2, 0, -10)
  1576. Frame118.BackgroundColor3 = Color3.new(1, 0, 0)
  1577. Frame118.BackgroundTransparency = 0.10000000149012
  1578. Frame118.BorderSizePixel = 0
  1579. Frame118.ZIndex = 2
  1580. Frame119.Name = "ln"
  1581. Frame119.Parent = Frame111
  1582. Frame119.Rotation = 45
  1583. Frame119.Visible = false
  1584. Frame119.BackgroundColor3 = Color3.new(1, 1, 1)
  1585. Frame119.BorderSizePixel = 0
  1586. Frame120.Parent = Frame119
  1587. Frame120.Transparency = 0.10000000149012
  1588. Frame120.Size = UDim2.new(0, 3, 0, 5)
  1589. Frame120.Position = UDim2.new(0, -2, 0, 105)
  1590. Frame120.BackgroundColor3 = Color3.new(1, 1, 1)
  1591. Frame120.BackgroundTransparency = 0.10000000149012
  1592. Frame120.BorderSizePixel = 0
  1593. TextLabel121.Name = "Num"
  1594. TextLabel121.Parent = Frame119
  1595. TextLabel121.Transparency = 1
  1596. TextLabel121.Rotation = -45
  1597. TextLabel121.Text = "0"
  1598. TextLabel121.Position = UDim2.new(0, 0, 0, 88)
  1599. TextLabel121.Visible = false
  1600. TextLabel121.BackgroundColor3 = Color3.new(1, 1, 1)
  1601. TextLabel121.BackgroundTransparency = 1
  1602. TextLabel121.BorderSizePixel = 0
  1603. TextLabel121.Font = Enum.Font.ArialBold
  1604. TextLabel121.FontSize = Enum.FontSize.Size18
  1605. TextLabel121.TextColor3 = Color3.new(1, 1, 1)
  1606. TextLabel121.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
  1607. TextLabel121.TextStrokeTransparency = 0.89999997615814
  1608. TextLabel121.TextTransparency = 0.10000000149012
  1609. TextLabel122.Name = "Gear"
  1610. TextLabel122.Parent = Frame111
  1611. TextLabel122.Transparency = 1
  1612. TextLabel122.Text = "N"
  1613. TextLabel122.Position = UDim2.new(0.5, -120, 1, -70)
  1614. TextLabel122.BackgroundColor3 = Color3.new(1, 1, 1)
  1615. TextLabel122.BackgroundTransparency = 1
  1616. TextLabel122.BorderSizePixel = 0
  1617. TextLabel122.Font = Enum.Font.ArialBold
  1618. TextLabel122.FontSize = Enum.FontSize.Size48
  1619. TextLabel122.TextColor3 = Color3.new(1, 1, 1)
  1620. TextLabel122.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
  1621. TextLabel122.TextStrokeTransparency = 0.89999997615814
  1622. TextLabel122.TextTransparency = 0.10000000149012
  1623. TextLabel123.Name = "Speed"
  1624. TextLabel123.Parent = Frame111
  1625. TextLabel123.Transparency = 1
  1626. TextLabel123.Text = "0 SPS"
  1627. TextLabel123.Position = UDim2.new(0.5, 250, 1, -70)
  1628. TextLabel123.BackgroundColor3 = Color3.new(1, 1, 1)
  1629. TextLabel123.BackgroundTransparency = 1
  1630. TextLabel123.BorderSizePixel = 0
  1631. TextLabel123.Font = Enum.Font.ArialBold
  1632. TextLabel123.FontSize = Enum.FontSize.Size24
  1633. TextLabel123.TextColor3 = Color3.new(1, 1, 1)
  1634. TextLabel123.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
  1635. TextLabel123.TextStrokeTransparency = 0.89999997615814
  1636. TextLabel123.TextTransparency = 0.10000000149012
  1637. TextLabel123.TextXAlignment = Enum.TextXAlignment.Right
  1638. TextLabel124.Name = "ABS"
  1639. TextLabel124.Parent = Frame111
  1640. TextLabel124.Transparency = 1
  1641. TextLabel124.Text = "ABS"
  1642. TextLabel124.Position = UDim2.new(0.5, 130, 1, -100)
  1643. TextLabel124.Visible = false
  1644. TextLabel124.BackgroundColor3 = Color3.new(1, 1, 1)
  1645. TextLabel124.BackgroundTransparency = 1
  1646. TextLabel124.BorderSizePixel = 0
  1647. TextLabel124.Font = Enum.Font.ArialBold
  1648. TextLabel124.FontSize = Enum.FontSize.Size18
  1649. TextLabel124.TextColor3 = Color3.new(1, 0.666667, 0)
  1650. TextLabel124.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
  1651. TextLabel124.TextStrokeTransparency = 0.89999997615814
  1652. TextLabel124.TextTransparency = 0.10000000149012
  1653. TextLabel124.TextXAlignment = Enum.TextXAlignment.Right
  1654. TextLabel125.Name = "PBrake"
  1655. TextLabel125.Parent = Frame111
  1656. TextLabel125.Transparency = 1
  1657. TextLabel125.Text = "P"
  1658. TextLabel125.Position = UDim2.new(0.5, 200, 1, -120)
  1659. TextLabel125.Visible = false
  1660. TextLabel125.BackgroundColor3 = Color3.new(1, 1, 1)
  1661. TextLabel125.BackgroundTransparency = 1
  1662. TextLabel125.BorderSizePixel = 0
  1663. TextLabel125.Font = Enum.Font.ArialBold
  1664. TextLabel125.FontSize = Enum.FontSize.Size24
  1665. TextLabel125.TextColor3 = Color3.new(1, 0.333333, 0.498039)
  1666. TextLabel125.TextStrokeColor3 = Color3.new(1, 0.333333, 0.498039)
  1667. TextLabel125.TextStrokeTransparency = 0.89999997615814
  1668. TextLabel125.TextTransparency = 0.10000000149012
  1669. TextLabel125.TextXAlignment = Enum.TextXAlignment.Right
  1670. TextLabel126.Name = "TCS"
  1671. TextLabel126.Parent = Frame111
  1672. TextLabel126.Transparency = 1
  1673. TextLabel126.Text = "TCS"
  1674. TextLabel126.Position = UDim2.new(0.5, 130, 1, -120)
  1675. TextLabel126.Visible = false
  1676. TextLabel126.BackgroundColor3 = Color3.new(1, 1, 1)
  1677. TextLabel126.BackgroundTransparency = 1
  1678. TextLabel126.BorderSizePixel = 0
  1679. TextLabel126.Font = Enum.Font.ArialBold
  1680. TextLabel126.FontSize = Enum.FontSize.Size18
  1681. TextLabel126.TextColor3 = Color3.new(1, 0.666667, 0)
  1682. TextLabel126.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
  1683. TextLabel126.TextStrokeTransparency = 0.89999997615814
  1684. TextLabel126.TextTransparency = 0.10000000149012
  1685. TextLabel126.TextXAlignment = Enum.TextXAlignment.Right
  1686. TextLabel127.Name = "TMode"
  1687. TextLabel127.Parent = Frame111
  1688. TextLabel127.Transparency = 0.5
  1689. TextLabel127.Size = UDim2.new(0, 40, 0, 20)
  1690. TextLabel127.Text = "A/T"
  1691. TextLabel127.Position = UDim2.new(0.5, -165, 1, -40)
  1692. TextLabel127.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  1693. TextLabel127.BackgroundTransparency = 0.5
  1694. TextLabel127.BorderSizePixel = 0
  1695. TextLabel127.Font = Enum.Font.ArialBold
  1696. TextLabel127.FontSize = Enum.FontSize.Size18
  1697. TextLabel127.TextColor3 = Color3.new(1, 1, 1)
  1698. TextLabel127.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
  1699. TextLabel127.TextStrokeTransparency = 0.89999997615814
  1700. TextLabel127.TextTransparency = 0.10000000149012
  1701. Frame128.Name = "AC6_Controls_Module"
  1702. Frame128.Parent = Folder84
  1703. Frame128.Transparency = 1
  1704. Frame128.Size = UDim2.new(1, 0, 1, 0)
  1705. Frame128.BackgroundColor3 = Color3.new(1, 1, 1)
  1706. Frame128.BackgroundTransparency = 1
  1707. Frame128.BorderSizePixel = 0
  1708. TextButton129.Name = "Toggle"
  1709. TextButton129.Parent = Frame128
  1710. TextButton129.Transparency = 0.5
  1711. TextButton129.Size = UDim2.new(0, 120, 0, 27)
  1712. TextButton129.Text = "Controls"
  1713. TextButton129.Position = UDim2.new(0, 50, 1, -30)
  1714. TextButton129.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  1715. TextButton129.BackgroundTransparency = 0.5
  1716. TextButton129.BorderColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  1717. TextButton129.BorderSizePixel = 0
  1718. TextButton129.Font = Enum.Font.Arial
  1719. TextButton129.FontSize = Enum.FontSize.Size24
  1720. TextButton129.TextColor3 = Color3.new(1, 1, 1)
  1721. TextButton129.TextStrokeColor3 = Color3.new(0.415686, 0.415686, 0.415686)
  1722. TextButton129.TextStrokeTransparency = 0.5
  1723. Frame130.Name = "Window"
  1724. Frame130.Parent = Frame128
  1725. Frame130.Transparency = 0.5
  1726. Frame130.Size = UDim2.new(0, 500, 0, 400)
  1727. Frame130.Position = UDim2.new(0.5, -250, 0, -500)
  1728. Frame130.BackgroundColor3 = Color3.new(0, 0, 0)
  1729. Frame130.BackgroundTransparency = 0.5
  1730. Frame130.BorderSizePixel = 0
  1731. Frame130.ClipsDescendants = true
  1732. Frame131.Name = "Tabs"
  1733. Frame131.Parent = Frame130
  1734. Frame131.Transparency = 1
  1735. Frame131.Size = UDim2.new(0, 490, 0, 20)
  1736. Frame131.Position = UDim2.new(0, 5, 0, 40)
  1737. Frame131.BackgroundColor3 = Color3.new(1, 1, 1)
  1738. Frame131.BackgroundTransparency = 1
  1739. Frame131.BorderSizePixel = 0
  1740. Frame131.ClipsDescendants = true
  1741. Frame132.Name = "Line"
  1742. Frame132.Parent = Frame131
  1743. Frame132.Size = UDim2.new(1, 0, 0, 2)
  1744. Frame132.BackgroundColor3 = Color3.new(1, 1, 1)
  1745. Frame132.BorderSizePixel = 0
  1746. TextButton133.Name = "Keyboard"
  1747. TextButton133.Parent = Frame131
  1748. TextButton133.Size = UDim2.new(0, 100, 0, 20)
  1749. TextButton133.Text = "Keyboard"
  1750. TextButton133.Position = UDim2.new(0, 5, 0, 0)
  1751. TextButton133.BackgroundColor3 = Color3.new(1, 1, 1)
  1752. TextButton133.BorderSizePixel = 0
  1753. TextButton133.Font = Enum.Font.SourceSans
  1754. TextButton133.FontSize = Enum.FontSize.Size14
  1755. TextButton133.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1756. TextButton133.TextStrokeTransparency = 0.94999998807907
  1757. TextButton133.TextYAlignment = Enum.TextYAlignment.Bottom
  1758. TextButton134.Name = "Mouse"
  1759. TextButton134.Parent = Frame131
  1760. TextButton134.Size = UDim2.new(0, 100, 0, 20)
  1761. TextButton134.Text = "Mouse"
  1762. TextButton134.Position = UDim2.new(0, 120, 0, -5)
  1763. TextButton134.BackgroundColor3 = Color3.new(1, 1, 1)
  1764. TextButton134.BorderSizePixel = 0
  1765. TextButton134.Font = Enum.Font.SourceSans
  1766. TextButton134.FontSize = Enum.FontSize.Size14
  1767. TextButton134.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1768. TextButton134.TextStrokeTransparency = 0.94999998807907
  1769. TextButton134.TextYAlignment = Enum.TextYAlignment.Bottom
  1770. TextButton135.Name = "Controller"
  1771. TextButton135.Parent = Frame131
  1772. TextButton135.Size = UDim2.new(0, 100, 0, 20)
  1773. TextButton135.Text = "Controller"
  1774. TextButton135.Position = UDim2.new(0, 235, 0, -5)
  1775. TextButton135.BackgroundColor3 = Color3.new(1, 1, 1)
  1776. TextButton135.BorderSizePixel = 0
  1777. TextButton135.Font = Enum.Font.SourceSans
  1778. TextButton135.FontSize = Enum.FontSize.Size14
  1779. TextButton135.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1780. TextButton135.TextStrokeTransparency = 0.94999998807907
  1781. TextButton135.TextYAlignment = Enum.TextYAlignment.Bottom
  1782. TextLabel136.Name = "Header"
  1783. TextLabel136.Parent = Frame130
  1784. TextLabel136.Transparency = 1
  1785. TextLabel136.Text = "Controls"
  1786. TextLabel136.Position = UDim2.new(0, 10, 0, 20)
  1787. TextLabel136.BackgroundColor3 = Color3.new(1, 1, 1)
  1788. TextLabel136.BackgroundTransparency = 1
  1789. TextLabel136.BorderSizePixel = 0
  1790. TextLabel136.Font = Enum.Font.SourceSansLight
  1791. TextLabel136.FontSize = Enum.FontSize.Size32
  1792. TextLabel136.TextColor3 = Color3.new(1, 1, 1)
  1793. TextLabel136.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1794. TextLabel136.TextStrokeTransparency = 0.94999998807907
  1795. TextLabel136.TextXAlignment = Enum.TextXAlignment.Left
  1796. TextLabel137.Name = "//INSPARE"
  1797. TextLabel137.Parent = Frame130
  1798. TextLabel137.Transparency = 1
  1799. TextLabel137.Text = "A-Chassis 6 by //INSPARE"
  1800. TextLabel137.Position = UDim2.new(1, -20, 0, 20)
  1801. TextLabel137.BackgroundColor3 = Color3.new(1, 1, 1)
  1802. TextLabel137.BackgroundTransparency = 1
  1803. TextLabel137.BorderSizePixel = 0
  1804. TextLabel137.Font = Enum.Font.SourceSansLight
  1805. TextLabel137.FontSize = Enum.FontSize.Size14
  1806. TextLabel137.TextColor3 = Color3.new(1, 1, 1)
  1807. TextLabel137.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1808. TextLabel137.TextStrokeTransparency = 0.94999998807907
  1809. TextLabel137.TextXAlignment = Enum.TextXAlignment.Right
  1810. Frame138.Name = "Content"
  1811. Frame138.Parent = Frame130
  1812. Frame138.Transparency = 1
  1813. Frame138.Size = UDim2.new(1, 0, 1, -60)
  1814. Frame138.Position = UDim2.new(0, 0, 0, 60)
  1815. Frame138.BackgroundColor3 = Color3.new(1, 1, 1)
  1816. Frame138.BackgroundTransparency = 1
  1817. Frame138.BorderSizePixel = 0
  1818. TextLabel139.Name = "T"
  1819. TextLabel139.Parent = Frame138
  1820. TextLabel139.Transparency = 1
  1821. TextLabel139.Text = "Throttle"
  1822. TextLabel139.Position = UDim2.new(0, 150, 0, 20)
  1823. TextLabel139.BackgroundColor3 = Color3.new(1, 1, 1)
  1824. TextLabel139.BackgroundTransparency = 1
  1825. TextLabel139.BorderSizePixel = 0
  1826. TextLabel139.Font = Enum.Font.SourceSansItalic
  1827. TextLabel139.FontSize = Enum.FontSize.Size18
  1828. TextLabel139.TextColor3 = Color3.new(1, 1, 1)
  1829. TextLabel139.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1830. TextLabel139.TextStrokeTransparency = 0.94999998807907
  1831. TextLabel139.TextXAlignment = Enum.TextXAlignment.Right
  1832. TextLabel140.Name = "T"
  1833. TextLabel140.Parent = Frame138
  1834. TextLabel140.Transparency = 1
  1835. TextLabel140.Text = "Brakes"
  1836. TextLabel140.Position = UDim2.new(0, 150, 0, 40)
  1837. TextLabel140.BackgroundColor3 = Color3.new(1, 1, 1)
  1838. TextLabel140.BackgroundTransparency = 1
  1839. TextLabel140.BorderSizePixel = 0
  1840. TextLabel140.Font = Enum.Font.SourceSansItalic
  1841. TextLabel140.FontSize = Enum.FontSize.Size18
  1842. TextLabel140.TextColor3 = Color3.new(1, 1, 1)
  1843. TextLabel140.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1844. TextLabel140.TextStrokeTransparency = 0.94999998807907
  1845. TextLabel140.TextXAlignment = Enum.TextXAlignment.Right
  1846. TextLabel141.Name = "T"
  1847. TextLabel141.Parent = Frame138
  1848. TextLabel141.Transparency = 1
  1849. TextLabel141.Text = "Steer Left"
  1850. TextLabel141.Position = UDim2.new(0, 150, 0, 60)
  1851. TextLabel141.BackgroundColor3 = Color3.new(1, 1, 1)
  1852. TextLabel141.BackgroundTransparency = 1
  1853. TextLabel141.BorderSizePixel = 0
  1854. TextLabel141.Font = Enum.Font.SourceSansItalic
  1855. TextLabel141.FontSize = Enum.FontSize.Size18
  1856. TextLabel141.TextColor3 = Color3.new(1, 1, 1)
  1857. TextLabel141.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1858. TextLabel141.TextStrokeTransparency = 0.94999998807907
  1859. TextLabel141.TextXAlignment = Enum.TextXAlignment.Right
  1860. TextLabel142.Name = "T"
  1861. TextLabel142.Parent = Frame138
  1862. TextLabel142.Transparency = 1
  1863. TextLabel142.Text = "Steer Right"
  1864. TextLabel142.Position = UDim2.new(0, 150, 0, 80)
  1865. TextLabel142.BackgroundColor3 = Color3.new(1, 1, 1)
  1866. TextLabel142.BackgroundTransparency = 1
  1867. TextLabel142.BorderSizePixel = 0
  1868. TextLabel142.Font = Enum.Font.SourceSansItalic
  1869. TextLabel142.FontSize = Enum.FontSize.Size18
  1870. TextLabel142.TextColor3 = Color3.new(1, 1, 1)
  1871. TextLabel142.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1872. TextLabel142.TextStrokeTransparency = 0.94999998807907
  1873. TextLabel142.TextXAlignment = Enum.TextXAlignment.Right
  1874. TextLabel143.Name = "T"
  1875. TextLabel143.Parent = Frame138
  1876. TextLabel143.Transparency = 1
  1877. TextLabel143.Text = "[Secondary] Throttle"
  1878. TextLabel143.Position = UDim2.new(0, 150, 0, 100)
  1879. TextLabel143.BackgroundColor3 = Color3.new(1, 1, 1)
  1880. TextLabel143.BackgroundTransparency = 1
  1881. TextLabel143.BorderSizePixel = 0
  1882. TextLabel143.Font = Enum.Font.SourceSansItalic
  1883. TextLabel143.FontSize = Enum.FontSize.Size18
  1884. TextLabel143.TextColor3 = Color3.new(1, 1, 1)
  1885. TextLabel143.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1886. TextLabel143.TextStrokeTransparency = 0.94999998807907
  1887. TextLabel143.TextXAlignment = Enum.TextXAlignment.Right
  1888. TextLabel144.Name = "T"
  1889. TextLabel144.Parent = Frame138
  1890. TextLabel144.Transparency = 1
  1891. TextLabel144.Text = "[Secondary] Brakes"
  1892. TextLabel144.Position = UDim2.new(0, 150, 0, 120)
  1893. TextLabel144.BackgroundColor3 = Color3.new(1, 1, 1)
  1894. TextLabel144.BackgroundTransparency = 1
  1895. TextLabel144.BorderSizePixel = 0
  1896. TextLabel144.Font = Enum.Font.SourceSansItalic
  1897. TextLabel144.FontSize = Enum.FontSize.Size18
  1898. TextLabel144.TextColor3 = Color3.new(1, 1, 1)
  1899. TextLabel144.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1900. TextLabel144.TextStrokeTransparency = 0.94999998807907
  1901. TextLabel144.TextXAlignment = Enum.TextXAlignment.Right
  1902. TextLabel145.Name = "T"
  1903. TextLabel145.Parent = Frame138
  1904. TextLabel145.Transparency = 1
  1905. TextLabel145.Text = "[Secondary] Steer Left"
  1906. TextLabel145.Position = UDim2.new(0, 150, 0, 140)
  1907. TextLabel145.BackgroundColor3 = Color3.new(1, 1, 1)
  1908. TextLabel145.BackgroundTransparency = 1
  1909. TextLabel145.BorderSizePixel = 0
  1910. TextLabel145.Font = Enum.Font.SourceSansItalic
  1911. TextLabel145.FontSize = Enum.FontSize.Size18
  1912. TextLabel145.TextColor3 = Color3.new(1, 1, 1)
  1913. TextLabel145.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1914. TextLabel145.TextStrokeTransparency = 0.94999998807907
  1915. TextLabel145.TextXAlignment = Enum.TextXAlignment.Right
  1916. TextLabel146.Name = "T"
  1917. TextLabel146.Parent = Frame138
  1918. TextLabel146.Transparency = 1
  1919. TextLabel146.Text = "[Secondary] SteerRight"
  1920. TextLabel146.Position = UDim2.new(0, 150, 0, 160)
  1921. TextLabel146.BackgroundColor3 = Color3.new(1, 1, 1)
  1922. TextLabel146.BackgroundTransparency = 1
  1923. TextLabel146.BorderSizePixel = 0
  1924. TextLabel146.Font = Enum.Font.SourceSansItalic
  1925. TextLabel146.FontSize = Enum.FontSize.Size18
  1926. TextLabel146.TextColor3 = Color3.new(1, 1, 1)
  1927. TextLabel146.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1928. TextLabel146.TextStrokeTransparency = 0.94999998807907
  1929. TextLabel146.TextXAlignment = Enum.TextXAlignment.Right
  1930. TextLabel147.Name = "T"
  1931. TextLabel147.Parent = Frame138
  1932. TextLabel147.Transparency = 1
  1933. TextLabel147.Text = "Shift Up"
  1934. TextLabel147.Position = UDim2.new(0, 150, 0, 180)
  1935. TextLabel147.BackgroundColor3 = Color3.new(1, 1, 1)
  1936. TextLabel147.BackgroundTransparency = 1
  1937. TextLabel147.BorderSizePixel = 0
  1938. TextLabel147.Font = Enum.Font.SourceSansItalic
  1939. TextLabel147.FontSize = Enum.FontSize.Size18
  1940. TextLabel147.TextColor3 = Color3.new(1, 1, 1)
  1941. TextLabel147.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1942. TextLabel147.TextStrokeTransparency = 0.94999998807907
  1943. TextLabel147.TextXAlignment = Enum.TextXAlignment.Right
  1944. TextLabel148.Name = "T"
  1945. TextLabel148.Parent = Frame138
  1946. TextLabel148.Transparency = 1
  1947. TextLabel148.Text = "Shift Down"
  1948. TextLabel148.Position = UDim2.new(0, 150, 0, 200)
  1949. TextLabel148.BackgroundColor3 = Color3.new(1, 1, 1)
  1950. TextLabel148.BackgroundTransparency = 1
  1951. TextLabel148.BorderSizePixel = 0
  1952. TextLabel148.Font = Enum.Font.SourceSansItalic
  1953. TextLabel148.FontSize = Enum.FontSize.Size18
  1954. TextLabel148.TextColor3 = Color3.new(1, 1, 1)
  1955. TextLabel148.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1956. TextLabel148.TextStrokeTransparency = 0.94999998807907
  1957. TextLabel148.TextXAlignment = Enum.TextXAlignment.Right
  1958. TextLabel149.Name = "T"
  1959. TextLabel149.Parent = Frame138
  1960. TextLabel149.Transparency = 1
  1961. TextLabel149.Text = "Clutch"
  1962. TextLabel149.Position = UDim2.new(0, 150, 0, 220)
  1963. TextLabel149.BackgroundColor3 = Color3.new(1, 1, 1)
  1964. TextLabel149.BackgroundTransparency = 1
  1965. TextLabel149.BorderSizePixel = 0
  1966. TextLabel149.Font = Enum.Font.SourceSansItalic
  1967. TextLabel149.FontSize = Enum.FontSize.Size18
  1968. TextLabel149.TextColor3 = Color3.new(1, 1, 1)
  1969. TextLabel149.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1970. TextLabel149.TextStrokeTransparency = 0.94999998807907
  1971. TextLabel149.TextXAlignment = Enum.TextXAlignment.Right
  1972. TextLabel150.Name = "T"
  1973. TextLabel150.Parent = Frame138
  1974. TextLabel150.Transparency = 1
  1975. TextLabel150.Text = "Handbrake"
  1976. TextLabel150.Position = UDim2.new(0, 150, 0, 240)
  1977. TextLabel150.BackgroundColor3 = Color3.new(1, 1, 1)
  1978. TextLabel150.BackgroundTransparency = 1
  1979. TextLabel150.BorderSizePixel = 0
  1980. TextLabel150.Font = Enum.Font.SourceSansItalic
  1981. TextLabel150.FontSize = Enum.FontSize.Size18
  1982. TextLabel150.TextColor3 = Color3.new(1, 1, 1)
  1983. TextLabel150.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1984. TextLabel150.TextStrokeTransparency = 0.94999998807907
  1985. TextLabel150.TextXAlignment = Enum.TextXAlignment.Right
  1986. TextLabel151.Name = "T"
  1987. TextLabel151.Parent = Frame138
  1988. TextLabel151.Transparency = 1
  1989. TextLabel151.Text = " Transmission Mode"
  1990. TextLabel151.Position = UDim2.new(0, 150, 0, 260)
  1991. TextLabel151.BackgroundColor3 = Color3.new(1, 1, 1)
  1992. TextLabel151.BackgroundTransparency = 1
  1993. TextLabel151.BorderSizePixel = 0
  1994. TextLabel151.Font = Enum.Font.SourceSansItalic
  1995. TextLabel151.FontSize = Enum.FontSize.Size18
  1996. TextLabel151.TextColor3 = Color3.new(1, 1, 1)
  1997. TextLabel151.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  1998. TextLabel151.TextStrokeTransparency = 0.94999998807907
  1999. TextLabel151.TextXAlignment = Enum.TextXAlignment.Right
  2000. TextLabel152.Name = "T"
  2001. TextLabel152.Parent = Frame138
  2002. TextLabel152.Transparency = 1
  2003. TextLabel152.Text = "Toggle TCS"
  2004. TextLabel152.Position = UDim2.new(0, 150, 0, 280)
  2005. TextLabel152.BackgroundColor3 = Color3.new(1, 1, 1)
  2006. TextLabel152.BackgroundTransparency = 1
  2007. TextLabel152.BorderSizePixel = 0
  2008. TextLabel152.Font = Enum.Font.SourceSansItalic
  2009. TextLabel152.FontSize = Enum.FontSize.Size18
  2010. TextLabel152.TextColor3 = Color3.new(1, 1, 1)
  2011. TextLabel152.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2012. TextLabel152.TextStrokeTransparency = 0.94999998807907
  2013. TextLabel152.TextXAlignment = Enum.TextXAlignment.Right
  2014. TextLabel153.Name = "T"
  2015. TextLabel153.Parent = Frame138
  2016. TextLabel153.Transparency = 1
  2017. TextLabel153.Text = "Switch Mouse Control"
  2018. TextLabel153.Position = UDim2.new(0, 150, 0, 300)
  2019. TextLabel153.BackgroundColor3 = Color3.new(1, 1, 1)
  2020. TextLabel153.BackgroundTransparency = 1
  2021. TextLabel153.BorderSizePixel = 0
  2022. TextLabel153.Font = Enum.Font.SourceSansItalic
  2023. TextLabel153.FontSize = Enum.FontSize.Size18
  2024. TextLabel153.TextColor3 = Color3.new(1, 1, 1)
  2025. TextLabel153.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2026. TextLabel153.TextStrokeTransparency = 0.94999998807907
  2027. TextLabel153.TextXAlignment = Enum.TextXAlignment.Right
  2028. TextButton154.Name = "Throttle"
  2029. TextButton154.Parent = Frame138
  2030. TextButton154.Transparency = 0.5
  2031. TextButton154.Size = UDim2.new(0, 300, 0, 15)
  2032. TextButton154.Position = UDim2.new(0, 170, 0, 13)
  2033. TextButton154.BackgroundColor3 = Color3.new(0, 0, 0)
  2034. TextButton154.BackgroundTransparency = 0.5
  2035. TextButton154.BorderSizePixel = 0
  2036. TextButton154.Font = Enum.Font.SourceSans
  2037. TextButton154.FontSize = Enum.FontSize.Size14
  2038. TextButton154.TextColor3 = Color3.new(1, 1, 1)
  2039. TextButton155.Name = "Brake"
  2040. TextButton155.Parent = Frame138
  2041. TextButton155.Transparency = 0.5
  2042. TextButton155.Size = UDim2.new(0, 300, 0, 15)
  2043. TextButton155.Position = UDim2.new(0, 170, 0, 33)
  2044. TextButton155.BackgroundColor3 = Color3.new(0, 0, 0)
  2045. TextButton155.BackgroundTransparency = 0.5
  2046. TextButton155.BorderSizePixel = 0
  2047. TextButton155.Font = Enum.Font.SourceSans
  2048. TextButton155.FontSize = Enum.FontSize.Size14
  2049. TextButton155.TextColor3 = Color3.new(1, 1, 1)
  2050. TextButton156.Name = "SteerLeft"
  2051. TextButton156.Parent = Frame138
  2052. TextButton156.Transparency = 0.5
  2053. TextButton156.Size = UDim2.new(0, 300, 0, 15)
  2054. TextButton156.Position = UDim2.new(0, 170, 0, 53)
  2055. TextButton156.BackgroundColor3 = Color3.new(0, 0, 0)
  2056. TextButton156.BackgroundTransparency = 0.5
  2057. TextButton156.BorderSizePixel = 0
  2058. TextButton156.Font = Enum.Font.SourceSans
  2059. TextButton156.FontSize = Enum.FontSize.Size14
  2060. TextButton156.TextColor3 = Color3.new(1, 1, 1)
  2061. TextButton157.Name = "SteerRight"
  2062. TextButton157.Parent = Frame138
  2063. TextButton157.Transparency = 0.5
  2064. TextButton157.Size = UDim2.new(0, 300, 0, 15)
  2065. TextButton157.Position = UDim2.new(0, 170, 0, 73)
  2066. TextButton157.BackgroundColor3 = Color3.new(0, 0, 0)
  2067. TextButton157.BackgroundTransparency = 0.5
  2068. TextButton157.BorderSizePixel = 0
  2069. TextButton157.Font = Enum.Font.SourceSans
  2070. TextButton157.FontSize = Enum.FontSize.Size14
  2071. TextButton157.TextColor3 = Color3.new(1, 1, 1)
  2072. TextButton158.Name = "Throttle2"
  2073. TextButton158.Parent = Frame138
  2074. TextButton158.Transparency = 0.5
  2075. TextButton158.Size = UDim2.new(0, 300, 0, 15)
  2076. TextButton158.Position = UDim2.new(0, 170, 0, 93)
  2077. TextButton158.BackgroundColor3 = Color3.new(0, 0, 0)
  2078. TextButton158.BackgroundTransparency = 0.5
  2079. TextButton158.BorderSizePixel = 0
  2080. TextButton158.Font = Enum.Font.SourceSans
  2081. TextButton158.FontSize = Enum.FontSize.Size14
  2082. TextButton158.TextColor3 = Color3.new(1, 1, 1)
  2083. TextButton159.Name = "Brake2"
  2084. TextButton159.Parent = Frame138
  2085. TextButton159.Transparency = 0.5
  2086. TextButton159.Size = UDim2.new(0, 300, 0, 15)
  2087. TextButton159.Position = UDim2.new(0, 170, 0, 113)
  2088. TextButton159.BackgroundColor3 = Color3.new(0, 0, 0)
  2089. TextButton159.BackgroundTransparency = 0.5
  2090. TextButton159.BorderSizePixel = 0
  2091. TextButton159.Font = Enum.Font.SourceSans
  2092. TextButton159.FontSize = Enum.FontSize.Size14
  2093. TextButton159.TextColor3 = Color3.new(1, 1, 1)
  2094. TextButton160.Name = "SteerLeft2"
  2095. TextButton160.Parent = Frame138
  2096. TextButton160.Transparency = 0.5
  2097. TextButton160.Size = UDim2.new(0, 300, 0, 15)
  2098. TextButton160.Position = UDim2.new(0, 170, 0, 133)
  2099. TextButton160.BackgroundColor3 = Color3.new(0, 0, 0)
  2100. TextButton160.BackgroundTransparency = 0.5
  2101. TextButton160.BorderSizePixel = 0
  2102. TextButton160.Font = Enum.Font.SourceSans
  2103. TextButton160.FontSize = Enum.FontSize.Size14
  2104. TextButton160.TextColor3 = Color3.new(1, 1, 1)
  2105. TextButton161.Name = "SteerRight2"
  2106. TextButton161.Parent = Frame138
  2107. TextButton161.Transparency = 0.5
  2108. TextButton161.Size = UDim2.new(0, 300, 0, 15)
  2109. TextButton161.Position = UDim2.new(0, 170, 0, 153)
  2110. TextButton161.BackgroundColor3 = Color3.new(0, 0, 0)
  2111. TextButton161.BackgroundTransparency = 0.5
  2112. TextButton161.BorderSizePixel = 0
  2113. TextButton161.Font = Enum.Font.SourceSans
  2114. TextButton161.FontSize = Enum.FontSize.Size14
  2115. TextButton161.TextColor3 = Color3.new(1, 1, 1)
  2116. TextButton162.Name = "ShiftUp"
  2117. TextButton162.Parent = Frame138
  2118. TextButton162.Transparency = 0.5
  2119. TextButton162.Size = UDim2.new(0, 300, 0, 15)
  2120. TextButton162.Position = UDim2.new(0, 170, 0, 173)
  2121. TextButton162.BackgroundColor3 = Color3.new(0, 0, 0)
  2122. TextButton162.BackgroundTransparency = 0.5
  2123. TextButton162.BorderSizePixel = 0
  2124. TextButton162.Font = Enum.Font.SourceSans
  2125. TextButton162.FontSize = Enum.FontSize.Size14
  2126. TextButton162.TextColor3 = Color3.new(1, 1, 1)
  2127. TextButton163.Name = "ShiftDown"
  2128. TextButton163.Parent = Frame138
  2129. TextButton163.Transparency = 0.5
  2130. TextButton163.Size = UDim2.new(0, 300, 0, 15)
  2131. TextButton163.Position = UDim2.new(0, 170, 0, 193)
  2132. TextButton163.BackgroundColor3 = Color3.new(0, 0, 0)
  2133. TextButton163.BackgroundTransparency = 0.5
  2134. TextButton163.BorderSizePixel = 0
  2135. TextButton163.Font = Enum.Font.SourceSans
  2136. TextButton163.FontSize = Enum.FontSize.Size14
  2137. TextButton163.TextColor3 = Color3.new(1, 1, 1)
  2138. TextButton164.Name = "Clutch"
  2139. TextButton164.Parent = Frame138
  2140. TextButton164.Transparency = 0.5
  2141. TextButton164.Size = UDim2.new(0, 300, 0, 15)
  2142. TextButton164.Position = UDim2.new(0, 170, 0, 213)
  2143. TextButton164.BackgroundColor3 = Color3.new(0, 0, 0)
  2144. TextButton164.BackgroundTransparency = 0.5
  2145. TextButton164.BorderSizePixel = 0
  2146. TextButton164.Font = Enum.Font.SourceSans
  2147. TextButton164.FontSize = Enum.FontSize.Size14
  2148. TextButton164.TextColor3 = Color3.new(1, 1, 1)
  2149. TextButton165.Name = "PBrake"
  2150. TextButton165.Parent = Frame138
  2151. TextButton165.Transparency = 0.5
  2152. TextButton165.Size = UDim2.new(0, 300, 0, 15)
  2153. TextButton165.Position = UDim2.new(0, 170, 0, 233)
  2154. TextButton165.BackgroundColor3 = Color3.new(0, 0, 0)
  2155. TextButton165.BackgroundTransparency = 0.5
  2156. TextButton165.BorderSizePixel = 0
  2157. TextButton165.Font = Enum.Font.SourceSans
  2158. TextButton165.FontSize = Enum.FontSize.Size14
  2159. TextButton165.TextColor3 = Color3.new(1, 1, 1)
  2160. TextButton166.Name = "ToggleTransMode"
  2161. TextButton166.Parent = Frame138
  2162. TextButton166.Transparency = 0.5
  2163. TextButton166.Size = UDim2.new(0, 300, 0, 15)
  2164. TextButton166.Position = UDim2.new(0, 170, 0, 253)
  2165. TextButton166.BackgroundColor3 = Color3.new(0, 0, 0)
  2166. TextButton166.BackgroundTransparency = 0.5
  2167. TextButton166.BorderSizePixel = 0
  2168. TextButton166.Font = Enum.Font.SourceSans
  2169. TextButton166.FontSize = Enum.FontSize.Size14
  2170. TextButton166.TextColor3 = Color3.new(1, 1, 1)
  2171. TextButton167.Name = "ToggleTCS"
  2172. TextButton167.Parent = Frame138
  2173. TextButton167.Transparency = 0.5
  2174. TextButton167.Size = UDim2.new(0, 300, 0, 15)
  2175. TextButton167.Position = UDim2.new(0, 170, 0, 273)
  2176. TextButton167.BackgroundColor3 = Color3.new(0, 0, 0)
  2177. TextButton167.BackgroundTransparency = 0.5
  2178. TextButton167.BorderSizePixel = 0
  2179. TextButton167.Font = Enum.Font.SourceSans
  2180. TextButton167.FontSize = Enum.FontSize.Size14
  2181. TextButton167.TextColor3 = Color3.new(1, 1, 1)
  2182. TextButton168.Name = "ToggleMouseDrive"
  2183. TextButton168.Parent = Frame138
  2184. TextButton168.Transparency = 0.5
  2185. TextButton168.Size = UDim2.new(0, 300, 0, 15)
  2186. TextButton168.Position = UDim2.new(0, 170, 0, 293)
  2187. TextButton168.BackgroundColor3 = Color3.new(0, 0, 0)
  2188. TextButton168.BackgroundTransparency = 0.5
  2189. TextButton168.BorderSizePixel = 0
  2190. TextButton168.Font = Enum.Font.SourceSans
  2191. TextButton168.FontSize = Enum.FontSize.Size14
  2192. TextButton168.TextColor3 = Color3.new(1, 1, 1)
  2193. TextLabel169.Name = "T"
  2194. TextLabel169.Parent = Frame138
  2195. TextLabel169.Transparency = 1
  2196. TextLabel169.Text = "Throttle"
  2197. TextLabel169.Position = UDim2.new(1, 150, 0, 20)
  2198. TextLabel169.BackgroundColor3 = Color3.new(1, 1, 1)
  2199. TextLabel169.BackgroundTransparency = 1
  2200. TextLabel169.BorderSizePixel = 0
  2201. TextLabel169.Font = Enum.Font.SourceSansItalic
  2202. TextLabel169.FontSize = Enum.FontSize.Size18
  2203. TextLabel169.TextColor3 = Color3.new(1, 1, 1)
  2204. TextLabel169.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2205. TextLabel169.TextStrokeTransparency = 0.94999998807907
  2206. TextLabel169.TextXAlignment = Enum.TextXAlignment.Right
  2207. TextLabel170.Name = "T"
  2208. TextLabel170.Parent = Frame138
  2209. TextLabel170.Transparency = 1
  2210. TextLabel170.Text = "Brakes"
  2211. TextLabel170.Position = UDim2.new(1, 150, 0, 40)
  2212. TextLabel170.BackgroundColor3 = Color3.new(1, 1, 1)
  2213. TextLabel170.BackgroundTransparency = 1
  2214. TextLabel170.BorderSizePixel = 0
  2215. TextLabel170.Font = Enum.Font.SourceSansItalic
  2216. TextLabel170.FontSize = Enum.FontSize.Size18
  2217. TextLabel170.TextColor3 = Color3.new(1, 1, 1)
  2218. TextLabel170.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2219. TextLabel170.TextStrokeTransparency = 0.94999998807907
  2220. TextLabel170.TextXAlignment = Enum.TextXAlignment.Right
  2221. TextLabel171.Name = "T"
  2222. TextLabel171.Parent = Frame138
  2223. TextLabel171.Transparency = 1
  2224. TextLabel171.Text = "Steer"
  2225. TextLabel171.Position = UDim2.new(1, 150, 0, 60)
  2226. TextLabel171.BackgroundColor3 = Color3.new(1, 1, 1)
  2227. TextLabel171.BackgroundTransparency = 1
  2228. TextLabel171.BorderSizePixel = 0
  2229. TextLabel171.Font = Enum.Font.SourceSansItalic
  2230. TextLabel171.FontSize = Enum.FontSize.Size18
  2231. TextLabel171.TextColor3 = Color3.new(1, 1, 1)
  2232. TextLabel171.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2233. TextLabel171.TextStrokeTransparency = 0.94999998807907
  2234. TextLabel171.TextXAlignment = Enum.TextXAlignment.Right
  2235. TextLabel172.Name = "T"
  2236. TextLabel172.Parent = Frame138
  2237. TextLabel172.Transparency = 1
  2238. TextLabel172.Text = "Shift Up"
  2239. TextLabel172.Position = UDim2.new(1, 150, 0, 80)
  2240. TextLabel172.BackgroundColor3 = Color3.new(1, 1, 1)
  2241. TextLabel172.BackgroundTransparency = 1
  2242. TextLabel172.BorderSizePixel = 0
  2243. TextLabel172.Font = Enum.Font.SourceSansItalic
  2244. TextLabel172.FontSize = Enum.FontSize.Size18
  2245. TextLabel172.TextColor3 = Color3.new(1, 1, 1)
  2246. TextLabel172.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2247. TextLabel172.TextStrokeTransparency = 0.94999998807907
  2248. TextLabel172.TextXAlignment = Enum.TextXAlignment.Right
  2249. TextLabel173.Name = "T"
  2250. TextLabel173.Parent = Frame138
  2251. TextLabel173.Transparency = 1
  2252. TextLabel173.Text = "Shift Down"
  2253. TextLabel173.Position = UDim2.new(1, 150, 0, 100)
  2254. TextLabel173.BackgroundColor3 = Color3.new(1, 1, 1)
  2255. TextLabel173.BackgroundTransparency = 1
  2256. TextLabel173.BorderSizePixel = 0
  2257. TextLabel173.Font = Enum.Font.SourceSansItalic
  2258. TextLabel173.FontSize = Enum.FontSize.Size18
  2259. TextLabel173.TextColor3 = Color3.new(1, 1, 1)
  2260. TextLabel173.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2261. TextLabel173.TextStrokeTransparency = 0.94999998807907
  2262. TextLabel173.TextXAlignment = Enum.TextXAlignment.Right
  2263. TextLabel174.Name = "T"
  2264. TextLabel174.Parent = Frame138
  2265. TextLabel174.Transparency = 1
  2266. TextLabel174.Text = "Clutch"
  2267. TextLabel174.Position = UDim2.new(1, 150, 0, 120)
  2268. TextLabel174.BackgroundColor3 = Color3.new(1, 1, 1)
  2269. TextLabel174.BackgroundTransparency = 1
  2270. TextLabel174.BorderSizePixel = 0
  2271. TextLabel174.Font = Enum.Font.SourceSansItalic
  2272. TextLabel174.FontSize = Enum.FontSize.Size18
  2273. TextLabel174.TextColor3 = Color3.new(1, 1, 1)
  2274. TextLabel174.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2275. TextLabel174.TextStrokeTransparency = 0.94999998807907
  2276. TextLabel174.TextXAlignment = Enum.TextXAlignment.Right
  2277. TextLabel175.Name = "T"
  2278. TextLabel175.Parent = Frame138
  2279. TextLabel175.Transparency = 1
  2280. TextLabel175.Text = "Handbrake"
  2281. TextLabel175.Position = UDim2.new(1, 150, 0, 140)
  2282. TextLabel175.BackgroundColor3 = Color3.new(1, 1, 1)
  2283. TextLabel175.BackgroundTransparency = 1
  2284. TextLabel175.BorderSizePixel = 0
  2285. TextLabel175.Font = Enum.Font.SourceSansItalic
  2286. TextLabel175.FontSize = Enum.FontSize.Size18
  2287. TextLabel175.TextColor3 = Color3.new(1, 1, 1)
  2288. TextLabel175.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2289. TextLabel175.TextStrokeTransparency = 0.94999998807907
  2290. TextLabel175.TextXAlignment = Enum.TextXAlignment.Right
  2291. TextButton176.Name = "MouseThrottle"
  2292. TextButton176.Parent = Frame138
  2293. TextButton176.Transparency = 0.5
  2294. TextButton176.Size = UDim2.new(0, 300, 0, 15)
  2295. TextButton176.Position = UDim2.new(1, 170, 0, 13)
  2296. TextButton176.BackgroundColor3 = Color3.new(0, 0, 0)
  2297. TextButton176.BackgroundTransparency = 0.5
  2298. TextButton176.BorderSizePixel = 0
  2299. TextButton176.Font = Enum.Font.SourceSans
  2300. TextButton176.FontSize = Enum.FontSize.Size14
  2301. TextButton176.TextColor3 = Color3.new(1, 1, 1)
  2302. TextButton177.Name = "MouseBrake"
  2303. TextButton177.Parent = Frame138
  2304. TextButton177.Transparency = 0.5
  2305. TextButton177.Size = UDim2.new(0, 300, 0, 15)
  2306. TextButton177.Position = UDim2.new(1, 170, 0, 33)
  2307. TextButton177.BackgroundColor3 = Color3.new(0, 0, 0)
  2308. TextButton177.BackgroundTransparency = 0.5
  2309. TextButton177.BorderSizePixel = 0
  2310. TextButton177.Font = Enum.Font.SourceSans
  2311. TextButton177.FontSize = Enum.FontSize.Size14
  2312. TextButton177.TextColor3 = Color3.new(1, 1, 1)
  2313. TextButton178.Name = "MouseSteer"
  2314. TextButton178.Parent = Frame138
  2315. TextButton178.Transparency = 0.5
  2316. TextButton178.Size = UDim2.new(0, 300, 0, 15)
  2317. TextButton178.Text = "MouseMove"
  2318. TextButton178.Position = UDim2.new(1, 170, 0, 53)
  2319. TextButton178.Active = false
  2320. TextButton178.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  2321. TextButton178.BackgroundTransparency = 0.5
  2322. TextButton178.BorderSizePixel = 0
  2323. TextButton178.Font = Enum.Font.SourceSans
  2324. TextButton178.FontSize = Enum.FontSize.Size14
  2325. TextButton178.TextColor3 = Color3.new(0.690196, 0.690196, 0.690196)
  2326. TextButton179.Name = "MouseShiftUp"
  2327. TextButton179.Parent = Frame138
  2328. TextButton179.Transparency = 0.5
  2329. TextButton179.Size = UDim2.new(0, 300, 0, 15)
  2330. TextButton179.Position = UDim2.new(1, 170, 0, 73)
  2331. TextButton179.Active = false
  2332. TextButton179.BackgroundColor3 = Color3.new(0, 0, 0)
  2333. TextButton179.BackgroundTransparency = 0.5
  2334. TextButton179.BorderSizePixel = 0
  2335. TextButton179.Font = Enum.Font.SourceSans
  2336. TextButton179.FontSize = Enum.FontSize.Size14
  2337. TextButton179.TextColor3 = Color3.new(1, 1, 1)
  2338. TextButton180.Name = "MouseShiftDown"
  2339. TextButton180.Parent = Frame138
  2340. TextButton180.Transparency = 0.5
  2341. TextButton180.Size = UDim2.new(0, 300, 0, 15)
  2342. TextButton180.Position = UDim2.new(1, 170, 0, 93)
  2343. TextButton180.Active = false
  2344. TextButton180.BackgroundColor3 = Color3.new(0, 0, 0)
  2345. TextButton180.BackgroundTransparency = 0.5
  2346. TextButton180.BorderSizePixel = 0
  2347. TextButton180.Font = Enum.Font.SourceSans
  2348. TextButton180.FontSize = Enum.FontSize.Size14
  2349. TextButton180.TextColor3 = Color3.new(1, 1, 1)
  2350. TextButton181.Name = "MouseClutch"
  2351. TextButton181.Parent = Frame138
  2352. TextButton181.Transparency = 0.5
  2353. TextButton181.Size = UDim2.new(0, 300, 0, 15)
  2354. TextButton181.Position = UDim2.new(1, 170, 0, 113)
  2355. TextButton181.Active = false
  2356. TextButton181.BackgroundColor3 = Color3.new(0, 0, 0)
  2357. TextButton181.BackgroundTransparency = 0.5
  2358. TextButton181.BorderSizePixel = 0
  2359. TextButton181.Font = Enum.Font.SourceSans
  2360. TextButton181.FontSize = Enum.FontSize.Size14
  2361. TextButton181.TextColor3 = Color3.new(1, 1, 1)
  2362. TextButton182.Name = "MousePBrake"
  2363. TextButton182.Parent = Frame138
  2364. TextButton182.Transparency = 0.5
  2365. TextButton182.Size = UDim2.new(0, 300, 0, 15)
  2366. TextButton182.Position = UDim2.new(1, 170, 0, 133)
  2367. TextButton182.Active = false
  2368. TextButton182.BackgroundColor3 = Color3.new(0, 0, 0)
  2369. TextButton182.BackgroundTransparency = 0.5
  2370. TextButton182.BorderSizePixel = 0
  2371. TextButton182.Font = Enum.Font.SourceSans
  2372. TextButton182.FontSize = Enum.FontSize.Size14
  2373. TextButton182.TextColor3 = Color3.new(1, 1, 1)
  2374. TextLabel183.Name = "T"
  2375. TextLabel183.Parent = Frame138
  2376. TextLabel183.Transparency = 1
  2377. TextLabel183.Text = "Throttle"
  2378. TextLabel183.Position = UDim2.new(2, 150, 0, 20)
  2379. TextLabel183.BackgroundColor3 = Color3.new(1, 1, 1)
  2380. TextLabel183.BackgroundTransparency = 1
  2381. TextLabel183.BorderSizePixel = 0
  2382. TextLabel183.Font = Enum.Font.SourceSansItalic
  2383. TextLabel183.FontSize = Enum.FontSize.Size18
  2384. TextLabel183.TextColor3 = Color3.new(1, 1, 1)
  2385. TextLabel183.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2386. TextLabel183.TextStrokeTransparency = 0.94999998807907
  2387. TextLabel183.TextXAlignment = Enum.TextXAlignment.Right
  2388. TextLabel184.Name = "T"
  2389. TextLabel184.Parent = Frame138
  2390. TextLabel184.Transparency = 1
  2391. TextLabel184.Text = "Brakes"
  2392. TextLabel184.Position = UDim2.new(2, 150, 0, 40)
  2393. TextLabel184.BackgroundColor3 = Color3.new(1, 1, 1)
  2394. TextLabel184.BackgroundTransparency = 1
  2395. TextLabel184.BorderSizePixel = 0
  2396. TextLabel184.Font = Enum.Font.SourceSansItalic
  2397. TextLabel184.FontSize = Enum.FontSize.Size18
  2398. TextLabel184.TextColor3 = Color3.new(1, 1, 1)
  2399. TextLabel184.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2400. TextLabel184.TextStrokeTransparency = 0.94999998807907
  2401. TextLabel184.TextXAlignment = Enum.TextXAlignment.Right
  2402. TextLabel185.Name = "T"
  2403. TextLabel185.Parent = Frame138
  2404. TextLabel185.Transparency = 1
  2405. TextLabel185.Text = "Steer"
  2406. TextLabel185.Position = UDim2.new(2, 150, 0, 60)
  2407. TextLabel185.BackgroundColor3 = Color3.new(1, 1, 1)
  2408. TextLabel185.BackgroundTransparency = 1
  2409. TextLabel185.BorderSizePixel = 0
  2410. TextLabel185.Font = Enum.Font.SourceSansItalic
  2411. TextLabel185.FontSize = Enum.FontSize.Size18
  2412. TextLabel185.TextColor3 = Color3.new(1, 1, 1)
  2413. TextLabel185.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2414. TextLabel185.TextStrokeTransparency = 0.94999998807907
  2415. TextLabel185.TextXAlignment = Enum.TextXAlignment.Right
  2416. TextLabel186.Name = "T"
  2417. TextLabel186.Parent = Frame138
  2418. TextLabel186.Transparency = 1
  2419. TextLabel186.Text = "Shift Up"
  2420. TextLabel186.Position = UDim2.new(2, 150, 0, 80)
  2421. TextLabel186.BackgroundColor3 = Color3.new(1, 1, 1)
  2422. TextLabel186.BackgroundTransparency = 1
  2423. TextLabel186.BorderSizePixel = 0
  2424. TextLabel186.Font = Enum.Font.SourceSansItalic
  2425. TextLabel186.FontSize = Enum.FontSize.Size18
  2426. TextLabel186.TextColor3 = Color3.new(1, 1, 1)
  2427. TextLabel186.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2428. TextLabel186.TextStrokeTransparency = 0.94999998807907
  2429. TextLabel186.TextXAlignment = Enum.TextXAlignment.Right
  2430. TextLabel187.Name = "T"
  2431. TextLabel187.Parent = Frame138
  2432. TextLabel187.Transparency = 1
  2433. TextLabel187.Text = "Shift Down"
  2434. TextLabel187.Position = UDim2.new(2, 150, 0, 100)
  2435. TextLabel187.BackgroundColor3 = Color3.new(1, 1, 1)
  2436. TextLabel187.BackgroundTransparency = 1
  2437. TextLabel187.BorderSizePixel = 0
  2438. TextLabel187.Font = Enum.Font.SourceSansItalic
  2439. TextLabel187.FontSize = Enum.FontSize.Size18
  2440. TextLabel187.TextColor3 = Color3.new(1, 1, 1)
  2441. TextLabel187.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2442. TextLabel187.TextStrokeTransparency = 0.94999998807907
  2443. TextLabel187.TextXAlignment = Enum.TextXAlignment.Right
  2444. TextLabel188.Name = "T"
  2445. TextLabel188.Parent = Frame138
  2446. TextLabel188.Transparency = 1
  2447. TextLabel188.Text = "Clutch"
  2448. TextLabel188.Position = UDim2.new(2, 150, 0, 120)
  2449. TextLabel188.BackgroundColor3 = Color3.new(1, 1, 1)
  2450. TextLabel188.BackgroundTransparency = 1
  2451. TextLabel188.BorderSizePixel = 0
  2452. TextLabel188.Font = Enum.Font.SourceSansItalic
  2453. TextLabel188.FontSize = Enum.FontSize.Size18
  2454. TextLabel188.TextColor3 = Color3.new(1, 1, 1)
  2455. TextLabel188.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2456. TextLabel188.TextStrokeTransparency = 0.94999998807907
  2457. TextLabel188.TextXAlignment = Enum.TextXAlignment.Right
  2458. TextLabel189.Name = "T"
  2459. TextLabel189.Parent = Frame138
  2460. TextLabel189.Transparency = 1
  2461. TextLabel189.Text = "Handbrake"
  2462. TextLabel189.Position = UDim2.new(2, 150, 0, 140)
  2463. TextLabel189.BackgroundColor3 = Color3.new(1, 1, 1)
  2464. TextLabel189.BackgroundTransparency = 1
  2465. TextLabel189.BorderSizePixel = 0
  2466. TextLabel189.Font = Enum.Font.SourceSansItalic
  2467. TextLabel189.FontSize = Enum.FontSize.Size18
  2468. TextLabel189.TextColor3 = Color3.new(1, 1, 1)
  2469. TextLabel189.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2470. TextLabel189.TextStrokeTransparency = 0.94999998807907
  2471. TextLabel189.TextXAlignment = Enum.TextXAlignment.Right
  2472. TextLabel190.Name = "T"
  2473. TextLabel190.Parent = Frame138
  2474. TextLabel190.Transparency = 1
  2475. TextLabel190.Text = "Toggle TCS"
  2476. TextLabel190.Position = UDim2.new(2, 150, 0, 180)
  2477. TextLabel190.BackgroundColor3 = Color3.new(1, 1, 1)
  2478. TextLabel190.BackgroundTransparency = 1
  2479. TextLabel190.BorderSizePixel = 0
  2480. TextLabel190.Font = Enum.Font.SourceSansItalic
  2481. TextLabel190.FontSize = Enum.FontSize.Size18
  2482. TextLabel190.TextColor3 = Color3.new(1, 1, 1)
  2483. TextLabel190.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2484. TextLabel190.TextStrokeTransparency = 0.94999998807907
  2485. TextLabel190.TextXAlignment = Enum.TextXAlignment.Right
  2486. TextLabel191.Name = "T"
  2487. TextLabel191.Parent = Frame138
  2488. TextLabel191.Transparency = 1
  2489. TextLabel191.Text = "Transmission Mode"
  2490. TextLabel191.Position = UDim2.new(2, 150, 0, 160)
  2491. TextLabel191.BackgroundColor3 = Color3.new(1, 1, 1)
  2492. TextLabel191.BackgroundTransparency = 1
  2493. TextLabel191.BorderSizePixel = 0
  2494. TextLabel191.Font = Enum.Font.SourceSansItalic
  2495. TextLabel191.FontSize = Enum.FontSize.Size18
  2496. TextLabel191.TextColor3 = Color3.new(1, 1, 1)
  2497. TextLabel191.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2498. TextLabel191.TextStrokeTransparency = 0.94999998807907
  2499. TextLabel191.TextXAlignment = Enum.TextXAlignment.Right
  2500. TextButton192.Name = "ContlrThrottle"
  2501. TextButton192.Parent = Frame138
  2502. TextButton192.Transparency = 0.5
  2503. TextButton192.Size = UDim2.new(0, 300, 0, 15)
  2504. TextButton192.Position = UDim2.new(2, 170, 0, 13)
  2505. TextButton192.BackgroundColor3 = Color3.new(0, 0, 0)
  2506. TextButton192.BackgroundTransparency = 0.5
  2507. TextButton192.BorderSizePixel = 0
  2508. TextButton192.Font = Enum.Font.SourceSans
  2509. TextButton192.FontSize = Enum.FontSize.Size14
  2510. TextButton192.TextColor3 = Color3.new(1, 1, 1)
  2511. TextButton193.Name = "ContlrBrake"
  2512. TextButton193.Parent = Frame138
  2513. TextButton193.Transparency = 0.5
  2514. TextButton193.Size = UDim2.new(0, 300, 0, 15)
  2515. TextButton193.Position = UDim2.new(2, 170, 0, 33)
  2516. TextButton193.BackgroundColor3 = Color3.new(0, 0, 0)
  2517. TextButton193.BackgroundTransparency = 0.5
  2518. TextButton193.BorderSizePixel = 0
  2519. TextButton193.Font = Enum.Font.SourceSans
  2520. TextButton193.FontSize = Enum.FontSize.Size14
  2521. TextButton193.TextColor3 = Color3.new(1, 1, 1)
  2522. TextButton194.Name = "ContlrSteer"
  2523. TextButton194.Parent = Frame138
  2524. TextButton194.Transparency = 0.5
  2525. TextButton194.Size = UDim2.new(0, 300, 0, 15)
  2526. TextButton194.Position = UDim2.new(2, 170, 0, 53)
  2527. TextButton194.BackgroundColor3 = Color3.new(0, 0, 0)
  2528. TextButton194.BackgroundTransparency = 0.5
  2529. TextButton194.BorderSizePixel = 0
  2530. TextButton194.Font = Enum.Font.SourceSans
  2531. TextButton194.FontSize = Enum.FontSize.Size14
  2532. TextButton194.TextColor3 = Color3.new(1, 1, 1)
  2533. TextButton195.Name = "ContlrShiftUp"
  2534. TextButton195.Parent = Frame138
  2535. TextButton195.Transparency = 0.5
  2536. TextButton195.Size = UDim2.new(0, 300, 0, 15)
  2537. TextButton195.Position = UDim2.new(2, 170, 0, 73)
  2538. TextButton195.BackgroundColor3 = Color3.new(0, 0, 0)
  2539. TextButton195.BackgroundTransparency = 0.5
  2540. TextButton195.BorderSizePixel = 0
  2541. TextButton195.Font = Enum.Font.SourceSans
  2542. TextButton195.FontSize = Enum.FontSize.Size14
  2543. TextButton195.TextColor3 = Color3.new(1, 1, 1)
  2544. TextButton196.Name = "ContlrShiftDown"
  2545. TextButton196.Parent = Frame138
  2546. TextButton196.Transparency = 0.5
  2547. TextButton196.Size = UDim2.new(0, 300, 0, 15)
  2548. TextButton196.Position = UDim2.new(2, 170, 0, 93)
  2549. TextButton196.BackgroundColor3 = Color3.new(0, 0, 0)
  2550. TextButton196.BackgroundTransparency = 0.5
  2551. TextButton196.BorderSizePixel = 0
  2552. TextButton196.Font = Enum.Font.SourceSans
  2553. TextButton196.FontSize = Enum.FontSize.Size14
  2554. TextButton196.TextColor3 = Color3.new(1, 1, 1)
  2555. TextButton197.Name = "ContlrClutch"
  2556. TextButton197.Parent = Frame138
  2557. TextButton197.Transparency = 0.5
  2558. TextButton197.Size = UDim2.new(0, 300, 0, 15)
  2559. TextButton197.Position = UDim2.new(2, 170, 0, 113)
  2560. TextButton197.BackgroundColor3 = Color3.new(0, 0, 0)
  2561. TextButton197.BackgroundTransparency = 0.5
  2562. TextButton197.BorderSizePixel = 0
  2563. TextButton197.Font = Enum.Font.SourceSans
  2564. TextButton197.FontSize = Enum.FontSize.Size14
  2565. TextButton197.TextColor3 = Color3.new(1, 1, 1)
  2566. TextButton198.Name = "ContlrPBrake"
  2567. TextButton198.Parent = Frame138
  2568. TextButton198.Transparency = 0.5
  2569. TextButton198.Size = UDim2.new(0, 300, 0, 15)
  2570. TextButton198.Position = UDim2.new(2, 170, 0, 133)
  2571. TextButton198.BackgroundColor3 = Color3.new(0, 0, 0)
  2572. TextButton198.BackgroundTransparency = 0.5
  2573. TextButton198.BorderSizePixel = 0
  2574. TextButton198.Font = Enum.Font.SourceSans
  2575. TextButton198.FontSize = Enum.FontSize.Size14
  2576. TextButton198.TextColor3 = Color3.new(1, 1, 1)
  2577. TextButton199.Name = "ContlrToggleTMode"
  2578. TextButton199.Parent = Frame138
  2579. TextButton199.Transparency = 0.5
  2580. TextButton199.Size = UDim2.new(0, 300, 0, 15)
  2581. TextButton199.Position = UDim2.new(2, 170, 0, 153)
  2582. TextButton199.BackgroundColor3 = Color3.new(0, 0, 0)
  2583. TextButton199.BackgroundTransparency = 0.5
  2584. TextButton199.BorderSizePixel = 0
  2585. TextButton199.Font = Enum.Font.SourceSans
  2586. TextButton199.FontSize = Enum.FontSize.Size14
  2587. TextButton199.TextColor3 = Color3.new(1, 1, 1)
  2588. TextButton200.Name = "ContlrToggleTCS"
  2589. TextButton200.Parent = Frame138
  2590. TextButton200.Transparency = 0.5
  2591. TextButton200.Size = UDim2.new(0, 300, 0, 15)
  2592. TextButton200.Position = UDim2.new(2, 170, 0, 173)
  2593. TextButton200.BackgroundColor3 = Color3.new(0, 0, 0)
  2594. TextButton200.BackgroundTransparency = 0.5
  2595. TextButton200.BorderSizePixel = 0
  2596. TextButton200.Font = Enum.Font.SourceSans
  2597. TextButton200.FontSize = Enum.FontSize.Size14
  2598. TextButton200.TextColor3 = Color3.new(1, 1, 1)
  2599. TextLabel201.Name = "T"
  2600. TextLabel201.Parent = Frame138
  2601. TextLabel201.Transparency = 1
  2602. TextLabel201.Text = "Deadzone"
  2603. TextLabel201.Position = UDim2.new(1, 150, 0, 160)
  2604. TextLabel201.BackgroundColor3 = Color3.new(1, 1, 1)
  2605. TextLabel201.BackgroundTransparency = 1
  2606. TextLabel201.BorderSizePixel = 0
  2607. TextLabel201.Font = Enum.Font.SourceSansItalic
  2608. TextLabel201.FontSize = Enum.FontSize.Size18
  2609. TextLabel201.TextColor3 = Color3.new(1, 1, 1)
  2610. TextLabel201.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2611. TextLabel201.TextStrokeTransparency = 0.94999998807907
  2612. TextLabel201.TextXAlignment = Enum.TextXAlignment.Right
  2613. TextLabel202.Name = "T"
  2614. TextLabel202.Parent = Frame138
  2615. TextLabel202.Transparency = 1
  2616. TextLabel202.Text = "Control Width"
  2617. TextLabel202.Position = UDim2.new(1, 150, 0, 180)
  2618. TextLabel202.BackgroundColor3 = Color3.new(1, 1, 1)
  2619. TextLabel202.BackgroundTransparency = 1
  2620. TextLabel202.BorderSizePixel = 0
  2621. TextLabel202.Font = Enum.Font.SourceSansItalic
  2622. TextLabel202.FontSize = Enum.FontSize.Size18
  2623. TextLabel202.TextColor3 = Color3.new(1, 1, 1)
  2624. TextLabel202.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2625. TextLabel202.TextStrokeTransparency = 0.94999998807907
  2626. TextLabel202.TextXAlignment = Enum.TextXAlignment.Right
  2627. TextLabel203.Name = "T"
  2628. TextLabel203.Parent = Frame138
  2629. TextLabel203.Transparency = 1
  2630. TextLabel203.Text = "Left Deadzone"
  2631. TextLabel203.Position = UDim2.new(2, 150, 0, 200)
  2632. TextLabel203.BackgroundColor3 = Color3.new(1, 1, 1)
  2633. TextLabel203.BackgroundTransparency = 1
  2634. TextLabel203.BorderSizePixel = 0
  2635. TextLabel203.Font = Enum.Font.SourceSansItalic
  2636. TextLabel203.FontSize = Enum.FontSize.Size18
  2637. TextLabel203.TextColor3 = Color3.new(1, 1, 1)
  2638. TextLabel203.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2639. TextLabel203.TextStrokeTransparency = 0.94999998807907
  2640. TextLabel203.TextXAlignment = Enum.TextXAlignment.Right
  2641. TextLabel204.Name = "T"
  2642. TextLabel204.Parent = Frame138
  2643. TextLabel204.Transparency = 1
  2644. TextLabel204.Text = "Right Deadzone"
  2645. TextLabel204.Position = UDim2.new(2, 150, 0, 220)
  2646. TextLabel204.BackgroundColor3 = Color3.new(1, 1, 1)
  2647. TextLabel204.BackgroundTransparency = 1
  2648. TextLabel204.BorderSizePixel = 0
  2649. TextLabel204.Font = Enum.Font.SourceSansItalic
  2650. TextLabel204.FontSize = Enum.FontSize.Size18
  2651. TextLabel204.TextColor3 = Color3.new(1, 1, 1)
  2652. TextLabel204.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2653. TextLabel204.TextStrokeTransparency = 0.94999998807907
  2654. TextLabel204.TextXAlignment = Enum.TextXAlignment.Right
  2655. TextLabel205.Name = "MSteerDZone"
  2656. TextLabel205.Parent = Frame138
  2657. TextLabel205.Transparency = 1
  2658. TextLabel205.Text = "100%"
  2659. TextLabel205.Position = UDim2.new(1, 200, 0, 160)
  2660. TextLabel205.BackgroundColor3 = Color3.new(1, 1, 1)
  2661. TextLabel205.BackgroundTransparency = 1
  2662. TextLabel205.BorderSizePixel = 0
  2663. TextLabel205.Font = Enum.Font.SourceSansItalic
  2664. TextLabel205.FontSize = Enum.FontSize.Size18
  2665. TextLabel205.TextColor3 = Color3.new(1, 1, 1)
  2666. TextLabel205.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2667. TextLabel205.TextStrokeTransparency = 0.94999998807907
  2668. TextLabel205.TextXAlignment = Enum.TextXAlignment.Right
  2669. ScrollingFrame206.Name = "S"
  2670. ScrollingFrame206.Parent = TextLabel205
  2671. ScrollingFrame206.Transparency = 0.5
  2672. ScrollingFrame206.Size = UDim2.new(0, 260, 0, 3)
  2673. ScrollingFrame206.Position = UDim2.new(0, 10, 0, 2)
  2674. ScrollingFrame206.CanvasSize = UDim2.new(0, 5200, 0, 0)
  2675. ScrollingFrame206.BackgroundColor3 = Color3.new(0, 0, 0)
  2676. ScrollingFrame206.BackgroundTransparency = 0.5
  2677. ScrollingFrame206.BorderSizePixel = 0
  2678. ScrollingFrame206.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  2679. ScrollingFrame206.ScrollBarThickness = 8
  2680. ScrollingFrame206.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  2681. TextLabel207.Name = "MSteerWidth"
  2682. TextLabel207.Parent = Frame138
  2683. TextLabel207.Transparency = 1
  2684. TextLabel207.Text = "100%"
  2685. TextLabel207.Position = UDim2.new(1, 200, 0, 180)
  2686. TextLabel207.BackgroundColor3 = Color3.new(1, 1, 1)
  2687. TextLabel207.BackgroundTransparency = 1
  2688. TextLabel207.BorderSizePixel = 0
  2689. TextLabel207.Font = Enum.Font.SourceSansItalic
  2690. TextLabel207.FontSize = Enum.FontSize.Size18
  2691. TextLabel207.TextColor3 = Color3.new(1, 1, 1)
  2692. TextLabel207.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2693. TextLabel207.TextStrokeTransparency = 0.94999998807907
  2694. TextLabel207.TextXAlignment = Enum.TextXAlignment.Right
  2695. ScrollingFrame208.Name = "S"
  2696. ScrollingFrame208.Parent = TextLabel207
  2697. ScrollingFrame208.Transparency = 0.5
  2698. ScrollingFrame208.Size = UDim2.new(0, 260, 0, 3)
  2699. ScrollingFrame208.Position = UDim2.new(0, 10, 0, 2)
  2700. ScrollingFrame208.CanvasSize = UDim2.new(0, 5200, 0, 0)
  2701. ScrollingFrame208.BackgroundColor3 = Color3.new(0, 0, 0)
  2702. ScrollingFrame208.BackgroundTransparency = 0.5
  2703. ScrollingFrame208.BorderSizePixel = 0
  2704. ScrollingFrame208.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  2705. ScrollingFrame208.ScrollBarThickness = 8
  2706. ScrollingFrame208.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  2707. TextLabel209.Name = "ControlLDZone"
  2708. TextLabel209.Parent = Frame138
  2709. TextLabel209.Transparency = 1
  2710. TextLabel209.Text = "100%"
  2711. TextLabel209.Position = UDim2.new(2, 200, 0, 200)
  2712. TextLabel209.BackgroundColor3 = Color3.new(1, 1, 1)
  2713. TextLabel209.BackgroundTransparency = 1
  2714. TextLabel209.BorderSizePixel = 0
  2715. TextLabel209.Font = Enum.Font.SourceSansItalic
  2716. TextLabel209.FontSize = Enum.FontSize.Size18
  2717. TextLabel209.TextColor3 = Color3.new(1, 1, 1)
  2718. TextLabel209.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2719. TextLabel209.TextStrokeTransparency = 0.94999998807907
  2720. TextLabel209.TextXAlignment = Enum.TextXAlignment.Right
  2721. ScrollingFrame210.Name = "S"
  2722. ScrollingFrame210.Parent = TextLabel209
  2723. ScrollingFrame210.Transparency = 0.5
  2724. ScrollingFrame210.Size = UDim2.new(0, 260, 0, 3)
  2725. ScrollingFrame210.Position = UDim2.new(0, 10, 0, 2)
  2726. ScrollingFrame210.CanvasSize = UDim2.new(0, 5200, 0, 0)
  2727. ScrollingFrame210.BackgroundColor3 = Color3.new(0, 0, 0)
  2728. ScrollingFrame210.BackgroundTransparency = 0.5
  2729. ScrollingFrame210.BorderSizePixel = 0
  2730. ScrollingFrame210.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  2731. ScrollingFrame210.ScrollBarThickness = 8
  2732. ScrollingFrame210.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  2733. TextLabel211.Name = "ControlRDZone"
  2734. TextLabel211.Parent = Frame138
  2735. TextLabel211.Transparency = 1
  2736. TextLabel211.Text = "100%"
  2737. TextLabel211.Position = UDim2.new(2, 200, 0, 220)
  2738. TextLabel211.BackgroundColor3 = Color3.new(1, 1, 1)
  2739. TextLabel211.BackgroundTransparency = 1
  2740. TextLabel211.BorderSizePixel = 0
  2741. TextLabel211.Font = Enum.Font.SourceSansItalic
  2742. TextLabel211.FontSize = Enum.FontSize.Size18
  2743. TextLabel211.TextColor3 = Color3.new(1, 1, 1)
  2744. TextLabel211.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2745. TextLabel211.TextStrokeTransparency = 0.94999998807907
  2746. TextLabel211.TextXAlignment = Enum.TextXAlignment.Right
  2747. ScrollingFrame212.Name = "S"
  2748. ScrollingFrame212.Parent = TextLabel211
  2749. ScrollingFrame212.Transparency = 0.5
  2750. ScrollingFrame212.Size = UDim2.new(0, 260, 0, 3)
  2751. ScrollingFrame212.Position = UDim2.new(0, 10, 0, 2)
  2752. ScrollingFrame212.CanvasSize = UDim2.new(0, 5200, 0, 0)
  2753. ScrollingFrame212.BackgroundColor3 = Color3.new(0, 0, 0)
  2754. ScrollingFrame212.BackgroundTransparency = 0.5
  2755. ScrollingFrame212.BorderSizePixel = 0
  2756. ScrollingFrame212.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  2757. ScrollingFrame212.ScrollBarThickness = 8
  2758. ScrollingFrame212.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  2759. TextLabel213.Name = "Error"
  2760. TextLabel213.Parent = Frame130
  2761. TextLabel213.Transparency = 1
  2762. TextLabel213.Text = "Invalid Input"
  2763. TextLabel213.Position = UDim2.new(0.5, 0, 0, 20)
  2764. TextLabel213.Visible = false
  2765. TextLabel213.BackgroundColor3 = Color3.new(1, 1, 1)
  2766. TextLabel213.BackgroundTransparency = 1
  2767. TextLabel213.BorderSizePixel = 0
  2768. TextLabel213.Font = Enum.Font.SourceSansItalic
  2769. TextLabel213.FontSize = Enum.FontSize.Size18
  2770. TextLabel213.TextColor3 = Color3.new(1, 0, 0)
  2771. TextLabel213.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  2772. TextLabel213.TextStrokeTransparency = 0.94999998807907
  2773. TextLabel214.Name = "Overlay"
  2774. TextLabel214.Parent = Frame130
  2775. TextLabel214.Transparency = 0.5
  2776. TextLabel214.Size = UDim2.new(1, 0, 1, 0)
  2777. TextLabel214.Text = "[Press a key to assign or Enter to cancel]"
  2778. TextLabel214.Visible = false
  2779. TextLabel214.BackgroundColor3 = Color3.new(1, 1, 1)
  2780. TextLabel214.BackgroundTransparency = 0.5
  2781. TextLabel214.BorderSizePixel = 0
  2782. TextLabel214.ZIndex = 2
  2783. TextLabel214.Font = Enum.Font.SourceSansItalic
  2784. TextLabel214.FontSize = Enum.FontSize.Size28
  2785. TextLabel214.TextColor3 = Color3.new(1, 1, 1)
  2786. TextLabel214.TextStrokeColor3 = Color3.new(0.184314, 0.184314, 0.184314)
  2787. TextLabel214.TextStrokeTransparency = 0
  2788. LocalScript215.Name = "Controls_AC6"
  2789. LocalScript215.Parent = Frame128
  2790. table.insert(cors,sandbox(LocalScript215,function()
  2791. --[[
  2792. ___ _______ _
  2793. / _ |____/ ___/ / ___ ____ ___ (_)__
  2794. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
  2795. /_/ |_| \___/_//_/\_,_/___/___/_/___/
  2796. SecondLogic @ Inspare
  2797. ]]
  2798.  
  2799.  
  2800. ---Controls UI
  2801. script.Parent.Parent:WaitForChild("Controls")
  2802. script.Parent.Parent:WaitForChild("ControlsOpen")
  2803. script.Parent:WaitForChild("Window")
  2804. script.Parent:WaitForChild("Toggle")
  2805.  
  2806. local car = script.Parent.Parent.Car.Value
  2807. local _Tune = require(car["A-Chassis Tune"])
  2808. local UserInputService = game:GetService("UserInputService")
  2809. local cPanel = script.Parent
  2810. local Controls = script.Parent.Parent.Controls
  2811.  
  2812. local ver = require(car["A-Chassis Tune"].README)
  2813. cPanel.Window["//INSPARE"].Text = "A-Chassis "..ver.." by //INSPARE"
  2814.  
  2815. local controlsOpen = false
  2816. local cInputB = nil
  2817. local cInputT = nil
  2818. local cInput = false
  2819.  
  2820. for i,v in pairs(_Tune.Peripherals) do
  2821. script.Parent.Parent.Controls:WaitForChild(i)
  2822. local slider = cPanel.Window.Content[i]
  2823. slider.Text = v.."%"
  2824. slider.S.CanvasPosition=Vector2.new(v*(slider.S.CanvasSize.X.Offset-slider.S.Size.X.Offset)/100,0)
  2825. slider.S.Changed:connect(function(property)
  2826. if property=="CanvasPosition" then
  2827. Controls[i].Value = math.floor(100*slider.S.CanvasPosition.x/(slider.S.CanvasSize.X.Offset-slider.S.Size.X.Offset))
  2828. slider.Text = Controls[i].Value.."%"
  2829. end
  2830. end)
  2831. end
  2832.  
  2833. for i,v in pairs(_Tune.Controls) do
  2834. script.Parent.Parent.Controls:WaitForChild(i)
  2835. local button = cPanel.Window.Content[i]
  2836. button.Text = v.Name
  2837. button.MouseButton1Click:connect(function()
  2838. script.Parent.Parent.ControlsOpen.Value = true
  2839. cPanel.Window.Overlay.Visible = true
  2840. cInput = true
  2841. repeat wait() until cInputB~=nil
  2842. if cInputB == Enum.KeyCode.Return or cInputB == Enum.KeyCode.KeypadEnter then
  2843. --do nothing
  2844. elseif string.find(i,"Contlr")~=nil then
  2845. if cInputT.Name:find("Gamepad") then
  2846. Controls[i].Value = cInputB.Name
  2847. button.Text = cInputB.Name
  2848. else
  2849. cPanel.Window.Error.Visible = true
  2850. end
  2851. elseif i=="MouseThrottle" or i=="MouseBrake" then
  2852. if cInputT == Enum.UserInputType.MouseButton1 or cInputT == Enum.UserInputType.MouseButton2 then
  2853. Controls[i].Value = cInputT.Name
  2854. button.Text = cInputT.Name
  2855. else
  2856. cPanel.Window.Error.Visible = true
  2857. end
  2858. else
  2859. if cInputT == Enum.UserInputType.Keyboard then
  2860. Controls[i].Value = cInputB.Name
  2861. button.Text = cInputB.Name
  2862. else
  2863. cPanel.Window.Error.Visible = true
  2864. end
  2865. end
  2866. cInputB = nil
  2867. cInputT = nil
  2868. cInput = false
  2869. wait(.2)
  2870. cPanel.Window.Overlay.Visible = false
  2871. script.Parent.Parent.ControlsOpen.Value = false
  2872. end)
  2873. end
  2874.  
  2875. cPanel.Window.Error.Changed:connect(function(property)
  2876. if property == "Visible" then
  2877. wait(3)
  2878. cPanel.Window.Error.Visible = false
  2879. end
  2880. end)
  2881.  
  2882. UserInputService.InputBegan:connect(function(input) if cInput then cInputB = input.KeyCode cInputT = input.UserInputType end end)
  2883. UserInputService.InputChanged:connect(function(input) if cInput and (input.KeyCode==Enum.KeyCode.Thumbstick1 or input.KeyCode==Enum.KeyCode.Thumbstick2) then cInputB = input.KeyCode cInputT = input.UserInputType end end)
  2884.  
  2885.  
  2886. cPanel.Toggle.MouseButton1Click:connect(function()
  2887. controlsOpen = not controlsOpen
  2888. if controlsOpen then
  2889. cPanel.Toggle.BackgroundColor3 = Color3.new(1,85/255,.5)
  2890. cPanel.Window:TweenPosition(UDim2.new(0.5, -250,0.5, -250),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.7,true)
  2891. else
  2892. cPanel.Toggle.BackgroundColor3 = Color3.new(1,170/255,0)
  2893. cPanel.Window:TweenPosition(UDim2.new(0.5, -250,0, -500),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.7,true)
  2894. end
  2895. end)
  2896.  
  2897. cPanel.Window.Tabs.Keyboard.MouseButton1Click:connect(function()
  2898. cPanel.Window.Content:TweenPosition(UDim2.new(0, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  2899. cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  2900. cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  2901. cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  2902. end)
  2903.  
  2904. cPanel.Window.Tabs.Mouse.MouseButton1Click:connect(function()
  2905. cPanel.Window.Content:TweenPosition(UDim2.new(-1, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  2906. cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  2907. cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  2908. cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  2909. end)
  2910.  
  2911. cPanel.Window.Tabs.Controller.MouseButton1Click:connect(function()
  2912. cPanel.Window.Content:TweenPosition(UDim2.new(-2, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  2913. cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  2914. cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  2915. cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  2916. end)
  2917.  
  2918. wait(.5)
  2919. cPanel.Toggle:TweenPosition(UDim2.new(0, 50, 1, -30),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,false)
  2920. for i=1,6 do
  2921. cPanel.Toggle.BackgroundColor3 = Color3.new(100/255,100/255,100/255)
  2922. wait(.2)
  2923. if controlsOpen then
  2924. cPanel.Toggle.BackgroundColor3 = Color3.new(1,85/255,.5)
  2925. else
  2926. cPanel.Toggle.BackgroundColor3 = Color3.new(1,170/255,0)
  2927. end
  2928. wait(.2)
  2929. end
  2930. end))
  2931. LocalScript216.Name = "Backfire"
  2932. LocalScript216.Parent = Folder84
  2933. table.insert(cors,sandbox(LocalScript216,function()
  2934. local car = script.Parent.Car.Value
  2935. local _Tune = require(car["A-Chassis Tune"])
  2936. local rate=0
  2937. local prate=rate
  2938.  
  2939.  
  2940.  
  2941. car.DriveSeat.ChildRemoved:connect(function(child)
  2942. if child.Name=="SeatWeld" then
  2943. car.Body.Exhaust.E1.Afterburn.Rate=0
  2944. car.Body.Exhaust.E1.L.Range = 0
  2945. end
  2946. end)
  2947.  
  2948. function backfire()
  2949. if script.Parent.IsOn.Value and script.Parent.Values.Throttle.Value <= _Tune.IdleThrottle and script.Parent.Values.RPM.Value>_Tune.PeakRPM and script.Parent.Values.Gear.Value~=-1 then
  2950. rate = 100
  2951. elseif rate>0 then
  2952. rate = math.max(rate-25,0)
  2953. end
  2954. if prate~=rate then
  2955. car.Body.Exhaust.E1.Afterburn.Rate = rate
  2956. car.Body.Exhaust.E1.L.Range = (7+(math.random(-10,10)/10))*rate/100
  2957. end
  2958. prate=rate
  2959. if car.DriveSeat:FindFirstChild("Rev")~=nil then
  2960. local on=1
  2961. if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
  2962. end
  2963. end
  2964.  
  2965. while wait(.1) do
  2966. backfire()
  2967. end
  2968.  
  2969. script.Parent.Values.Throttle.Changed:connect(backfire())
  2970. end))
  2971. LocalScript217.Name = "Smoke"
  2972. LocalScript217.Parent = Folder84
  2973. table.insert(cors,sandbox(LocalScript217,function()
  2974. local car = script.Parent.Car.Value
  2975. car.Wheels.RL.SQ:Play()
  2976. car.Wheels.RR.SQ:Play()
  2977.  
  2978. car.DriveSeat.ChildRemoved:connect(function(child)
  2979. if child.Name=="SeatWeld" then
  2980. car.Wheels.RL.SQ:Stop()
  2981. car.Wheels.RR.SQ:Stop()
  2982. car.Wheels.RL.Smoke.Rate=0
  2983. car.Wheels.RR.Smoke.Rate=0
  2984. end
  2985. end)
  2986.  
  2987. while wait(.2) do
  2988. local r1 = Ray.new(car.Wheels.RL.Position,(car.Wheels.RL.Arm.CFrame*CFrame.Angles(-math.pi/2,0,0)).lookVector*(car.Wheels.RL.Size.x/2))
  2989. local r1hit = 0
  2990. if workspace:FindPartOnRay(r1,car)~=nil then r1hit=1 end
  2991.  
  2992. local r2 = Ray.new(car.Wheels.RL.Position,(car.Wheels.RR.Arm.CFrame*CFrame.Angles(-math.pi/2,0,0)).lookVector*(car.Wheels.RR.Size.x/2))
  2993. local r2hit = 0
  2994. if workspace:FindPartOnRay(r2,car)~=nil then r2hit=1 end
  2995.  
  2996. local rl = math.min((math.max(math.abs((car.Wheels.RL.RotVelocity.Magnitude*car.Wheels.RL.Size.x/2) - (car.Wheels.RL.Velocity.Magnitude))-20,0)),50)*r1hit
  2997. local rr = math.min((math.max(math.abs((car.Wheels.RR.RotVelocity.Magnitude*car.Wheels.RR.Size.x/2) - (car.Wheels.RR.Velocity.Magnitude))-20,0)),50)*r2hit
  2998. car.Wheels.RL.Smoke.Rate = rl
  2999. car.Wheels.RR.Smoke.Rate = rr
  3000. car.Wheels.RL.SQ.Volume = rl/50
  3001. car.Wheels.RR.SQ.Volume = rr/50
  3002. end
  3003.  
  3004. end))
  3005. LocalScript218.Name = "Burnout"
  3006. LocalScript218.Parent = Folder84
  3007. table.insert(cors,sandbox(LocalScript218,function()
  3008. local car = script.Parent.Car.Value
  3009. local slip = 0
  3010. local pslip = slip
  3011.  
  3012. car.DriveSeat.ChildRemoved:connect(function(child)
  3013. if child.Name=="SeatWeld" then
  3014. car.Wheels.RL.Burnout.Force = Vector3.new(0,0,0)
  3015. car.Wheels.RR.Burnout.Force = Vector3.new(0,0,0)
  3016. end
  3017. end)
  3018.  
  3019. while wait(.2) do
  3020. if script.Parent.Values.PBrake.Value and not script.Parent.Values.TCS.Value and car.DriveSeat.Velocity.Magnitude < 5 and script.Parent.Values.RPM.Value > 4000 then
  3021. slip = math.min(15000,slip+3000)
  3022. else
  3023. slip = math.max(0,slip-1000)
  3024. end
  3025. if pslip~=slip then
  3026. car.Wheels.RL.Burnout.Force = Vector3.new(0,slip,0)
  3027. car.Wheels.RR.Burnout.Force = Vector3.new(0,slip,0)
  3028. end
  3029. pslip=slip
  3030. end
  3031.  
  3032. end))
  3033. ScreenGui219.Name = "A-Chassis Interface"
  3034. ScreenGui219.Parent = mas
  3035. ObjectValue220.Name = "Car"
  3036. ObjectValue220.Parent = ScreenGui219
  3037. Folder221.Name = "Values"
  3038. Folder221.Parent = ScreenGui219
  3039. NumberValue222.Name = "RPM"
  3040. NumberValue222.Parent = Folder221
  3041. NumberValue223.Name = "Horsepower"
  3042. NumberValue223.Parent = Folder221
  3043. NumberValue224.Name = "Torque"
  3044. NumberValue224.Parent = Folder221
  3045. StringValue225.Name = "TransmissionMode"
  3046. StringValue225.Parent = Folder221
  3047. NumberValue226.Name = "Gear"
  3048. NumberValue226.Parent = Folder221
  3049. NumberValue227.Name = "Throttle"
  3050. NumberValue227.Parent = Folder221
  3051. NumberValue228.Name = "SteerC"
  3052. NumberValue228.Parent = Folder221
  3053. NumberValue229.Name = "SteerT"
  3054. NumberValue229.Parent = Folder221
  3055. NumberValue230.Name = "Brake"
  3056. NumberValue230.Parent = Folder221
  3057. BoolValue231.Name = "TCS"
  3058. BoolValue231.Parent = Folder221
  3059. BoolValue232.Name = "PBrake"
  3060. BoolValue232.Parent = Folder221
  3061. BoolValue233.Name = "TCSActive"
  3062. BoolValue233.Parent = Folder221
  3063. Vector3Value234.Name = "Velocity"
  3064. Vector3Value234.Parent = Folder221
  3065. BoolValue235.Name = "IsOn"
  3066. BoolValue235.Parent = ScreenGui219
  3067. BoolValue236.Name = "ControlsOpen"
  3068. BoolValue236.Parent = ScreenGui219
  3069. LocalScript237.Name = "Drive"
  3070. LocalScript237.Parent = ScreenGui219
  3071. table.insert(cors,sandbox(LocalScript237,function()
  3072. --[[
  3073. ___ _______ _
  3074. / _ |____/ ___/ / ___ ____ ___ (_)__
  3075. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
  3076. /_/ |_| \___/_//_/\_,_/___/___/_/___/
  3077. SecondLogic @ Inspare
  3078.  
  3079.  
  3080. *I assume you know what you're doing if you're gonna change something here.* ]]--
  3081.  
  3082.  
  3083. script.Parent:WaitForChild("Car")
  3084. script.Parent:WaitForChild("IsOn")
  3085. script.Parent:WaitForChild("ControlsOpen")
  3086. script.Parent:WaitForChild("Values")
  3087.  
  3088. --Vars
  3089. local player = game.Players.LocalPlayer
  3090. local mouse = player:GetMouse()
  3091. local UserInputService = game:GetService("UserInputService")
  3092. local cam = workspace.CurrentCamera
  3093.  
  3094. local car = script.Parent.Car.Value
  3095. local _Tune = require(car["A-Chassis Tune"])
  3096. local _IsOn = _Tune.AutoStart
  3097. if _Tune.AutoStart then script.Parent.IsOn.Value=true end
  3098.  
  3099. local _GSteerT=0
  3100. local _GSteerC=0
  3101. local _GThrot=0
  3102. local _GBrake=0
  3103.  
  3104. local _ClutchOn = true
  3105. local _ClPressing = false
  3106. local _RPM = 0
  3107. local _HP = 0
  3108. local _OutTorque = 0
  3109. local _CGear = 0
  3110. local _PGear = _CGear
  3111.  
  3112. local _TMode = _Tune.TransModes[1]
  3113.  
  3114. local _MSteer = false
  3115. local _SteerL = false
  3116. local _SteerR = false
  3117. local _PBrake = false
  3118. local _TCS = true
  3119. local _TCSActive = false
  3120.  
  3121. local FlipWait=tick()
  3122. local FlipDB=false
  3123.  
  3124. local _InControls = false
  3125.  
  3126. --Shutdown
  3127. car.DriveSeat.ChildRemoved:connect(function(child)
  3128. if child.Name=="SeatWeld" and child:IsA("Weld") then
  3129. script.Parent:Destroy()
  3130. end
  3131. end)
  3132.  
  3133. --Controls
  3134. local _CTRL = _Tune.Controls
  3135. local Controls = Instance.new("Folder",script.Parent)
  3136. Controls.Name = "Controls"
  3137. for i,v in pairs(_CTRL) do
  3138. local a=Instance.new("StringValue",Controls)
  3139. a.Name=i
  3140. a.Value=v.Name
  3141. a.Changed:connect(function()
  3142. if i=="MouseThrottle" or i=="MouseBrake" then
  3143. _CTRL[i]=Enum.UserInputType[a.Value]
  3144. else
  3145. _CTRL[i]=Enum.KeyCode[a.Value]
  3146. end
  3147. end)
  3148. end
  3149.  
  3150. local _PPH = _Tune.Peripherals
  3151. for i,v in pairs(_PPH) do
  3152. local a = Instance.new("IntValue",Controls)
  3153. a.Name = i
  3154. a.Value = v
  3155. a.Changed:connect(function()
  3156. a.Value=math.min(100,math.max(0,a.Value))
  3157. _PPH[i] = a.Value
  3158. end)
  3159. end
  3160.  
  3161. function DealWithInput(input,IsRobloxFunction)
  3162. if (UserInputService:GetFocusedTextBox()==nil) and not _InControls then --No texting while driving
  3163. if _IsOn and (input.KeyCode ==_CTRL["ContlrShiftDown"] or (_MSteer and input.KeyCode==_CTRL["MouseShiftDown"]) or ((not _MSteer) and input.KeyCode==_CTRL["ShiftDown"])) and _TMode=="Manual" and (not _ClutchOn) and input.UserInputState == Enum.UserInputState.Begin then
  3164. if _CGear == 0 and (_TMode=="Auto" or not _ClPressing) then _ClutchOn = true end
  3165. _CGear = math.max(_CGear-1,-1)
  3166. elseif _IsOn and (input.KeyCode ==_CTRL["ContlrShiftUp"] or (_MSteer and input.KeyCode==_CTRL["MouseShiftUp"]) or ((not _MSteer) and input.KeyCode==_CTRL["ShiftUp"])) and _TMode=="Manual" and (not _ClutchOn) and input.UserInputState == Enum.UserInputState.Begin then
  3167. if _CGear == 0 and (_TMode=="Auto" or not _ClPressing) then _ClutchOn = true end
  3168. _CGear = math.min(_CGear+1,#_Tune.Ratios-2)
  3169. elseif _IsOn and (input.KeyCode ==_CTRL["ContlrClutch"] or (_MSteer and input.KeyCode==_CTRL["MouseClutch"]) or ((not _MSteer) and input.KeyCode==_CTRL["Clutch"])) and _TMode=="Manual" then
  3170. if input.UserInputState == Enum.UserInputState.Begin then
  3171. _ClutchOn = false
  3172. _ClPressing = true
  3173. elseif input.UserInputState == Enum.UserInputState.End then
  3174. _ClutchOn = true
  3175. _ClPressing = false
  3176. end
  3177. elseif _IsOn and input.KeyCode ==_CTRL["ContlrPBrake"] or (_MSteer and input.KeyCode==_CTRL["MousePBrake"]) or ((not _MSteer) and input.KeyCode==_CTRL["PBrake"]) then
  3178. if input.UserInputState == Enum.UserInputState.Begin then
  3179. _PBrake = not _PBrake
  3180. elseif input.UserInputState == Enum.UserInputState.End then
  3181. if car.DriveSeat.Velocity.Magnitude>5 then
  3182. _PBrake = false
  3183. end
  3184. end
  3185. elseif (input.KeyCode == _CTRL["ContlrToggleTMode"] or input.KeyCode==_CTRL["ToggleTransMode"]) and input.UserInputState == Enum.UserInputState.Begin then
  3186. local n=1
  3187. for i,v in pairs(_Tune.TransModes) do
  3188. if v==_TMode then n=i break end
  3189. end
  3190. n=n+1
  3191. if n>#_Tune.TransModes then n=1 end
  3192. _TMode = _Tune.TransModes[n]
  3193. elseif _IsOn and ((not _MSteer) and (input.KeyCode==_CTRL["Throttle"] or input.KeyCode == _CTRL["Throttle2"])) or (input.UserInputType == _CTRL["MouseThrottle"] and _MSteer) then
  3194. if input.UserInputState == Enum.UserInputState.Begin then
  3195. _GThrot = 1
  3196. else
  3197. _GThrot = _Tune.IdleThrottle
  3198. end
  3199. elseif ((not _MSteer) and (input.KeyCode==_CTRL["Brake"] or input.KeyCode == _CTRL["Brake2"])) or (input.UserInputType == _CTRL["MouseBrake"] and _MSteer) then
  3200. if input.UserInputState == Enum.UserInputState.Begin then
  3201. _GBrake = 1
  3202. else
  3203. _GBrake = 0
  3204. end
  3205. elseif (not _MSteer) and (input.KeyCode==_CTRL["SteerLeft"] or input.KeyCode == _CTRL["SteerLeft2"]) then
  3206. if input.UserInputState == Enum.UserInputState.Begin then
  3207. _GSteerT = -1
  3208. _SteerL = true
  3209. else
  3210. if _SteerR then
  3211. _GSteerT = 1
  3212. else
  3213. _GSteerT = 0
  3214. end
  3215. _SteerL = false
  3216. end
  3217. elseif (not _MSteer) and (input.KeyCode==_CTRL["SteerRight"] or input.KeyCode == _CTRL["SteerRight2"]) then
  3218. if input.UserInputState == Enum.UserInputState.Begin then
  3219. _GSteerT = 1
  3220. _SteerR = true
  3221. else
  3222. if _SteerL then
  3223. _GSteerT = -1
  3224. else
  3225. _GSteerT = 0
  3226. end
  3227. _SteerR = false
  3228. end
  3229. elseif input.KeyCode ==_CTRL["ToggleMouseDrive"] then
  3230. if input.UserInputState == Enum.UserInputState.End then
  3231. _MSteer = not _MSteer
  3232. _GThrot = _Tune.IdleThrottle
  3233. _GBrake = 0
  3234. _GSteerT = 0
  3235. _ClutchOn = true
  3236. end
  3237. elseif _IsOn and input.KeyCode == _CTRL["ToggleTCS"] or input.KeyCode == _CTRL["ContlrToggleTCS"] then
  3238. if input.UserInputState == Enum.UserInputState.End then
  3239. _TCS = not _TCS
  3240. end
  3241. end
  3242. if input.UserInputType.Name:find("Gamepad") then
  3243. if input.KeyCode == _CTRL["ContlrSteer"] then
  3244.  
  3245. if input.Position.X>= 0 then
  3246. local cDZone = math.min(.99,_Tune.Peripherals.ControlRDZone/100)
  3247. if math.abs(input.Position.X)>cDZone then
  3248. _GSteerT = (input.Position.X-cDZone)/(1-cDZone)
  3249. else
  3250. _GSteerT = 0
  3251. end
  3252. else
  3253. local cDZone = math.min(.99,_Tune.Peripherals.ControlLDZone/100)
  3254. if math.abs(input.Position.X)>cDZone then
  3255. _GSteerT = (input.Position.X+cDZone)/(1-cDZone)
  3256. else
  3257. _GSteerT = 0
  3258. end
  3259. end
  3260. elseif _IsOn and input.KeyCode == _CTRL["ContlrThrottle"] then
  3261. _GThrot = math.max(_Tune.IdleThrottle,input.Position.Z)
  3262. elseif input.KeyCode == _CTRL["ContlrBrake"] then
  3263. _GBrake = input.Position.Z
  3264. end
  3265. end
  3266. else
  3267. _GThrot = _Tune.IdleThrottle
  3268. _GSteerT = 0
  3269. _GBrake = 0
  3270. if _CGear~=0 then _ClutchOn = true end
  3271. end
  3272. end
  3273. UserInputService.InputBegan:connect(DealWithInput)
  3274. UserInputService.InputChanged:connect(DealWithInput)
  3275. UserInputService.InputEnded:connect(DealWithInput)
  3276.  
  3277. ---Drivetrain Initialize
  3278. local wDia = 0
  3279. local Drive={}
  3280. if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
  3281. for i,v in pairs(car.Wheels:GetChildren()) do
  3282. if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
  3283. table.insert(Drive,v)
  3284. end
  3285. end
  3286. end
  3287. if _Tune.Config == "RWD" or _Tune.Config == "AWD" then
  3288. for i,v in pairs(car.Wheels:GetChildren()) do
  3289. if v.Name=="RL" or v.Name=="RR" or v.Name=="R" then
  3290. table.insert(Drive,v)
  3291. end
  3292. end
  3293. end
  3294. for i,v in pairs(Drive) do
  3295. if v.Size.x>wDia then wDia = v.Size.x end
  3296. end
  3297.  
  3298. ---Camera
  3299. game:GetService("RunService").RenderStepped:connect(function()
  3300. if _MSteer then
  3301. cam.CameraType = Enum.CameraType.Scriptable
  3302. local pspeed = math.min(1,car.DriveSeat.Velocity.Magnitude/500)
  3303. local cc = car.DriveSeat.Position+Vector3.new(0,8+(pspeed*2),0)-(car.DriveSeat.CFrame.lookVector*17)+(car.DriveSeat.Velocity.Unit*-7*pspeed)
  3304. cam.CoordinateFrame = CFrame.new(cc,car.DriveSeat.Position)
  3305. elseif cam.CameraType ~= Enum.CameraType.Custom then
  3306. cam.CameraType = Enum.CameraType.Custom
  3307. end
  3308. end)
  3309.  
  3310. ---Steering
  3311. function Steering()
  3312. if _MSteer then
  3313. local msWidth = math.max(1,mouse.ViewSizeX*_Tune.Peripherals.MSteerWidth/200)
  3314. local mdZone = _Tune.Peripherals.MSteerDZone/100
  3315. local mST = ((mouse.X-mouse.ViewSizeX/2)/msWidth)
  3316. if math.abs(mST)<=mdZone then
  3317. _GSteerT = 0
  3318. else
  3319. _GSteerT = (math.max(math.min((math.abs(mST)-mdZone),(1-mdZone)),0)/(1-mdZone))^_Tune.MSteerExp * (mST / math.abs(mST))
  3320. end
  3321. end
  3322. if _GSteerC < _GSteerT then
  3323. _GSteerC = math.min(_GSteerT,_GSteerC+_Tune.SteerSpeed)
  3324. else
  3325. _GSteerC = math.max(_GSteerT,_GSteerC-_Tune.SteerSpeed)
  3326. end
  3327. local sDecay = (1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-_Tune.MinSteer))
  3328. for i,v in pairs(car.Wheels:GetChildren()) do
  3329. if v.Name=="F" then
  3330. v.Arm.Steer.cframe=car.Wheels.F.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
  3331. elseif v.Name=="FL" then
  3332. if _GSteerC>= 0 then
  3333. v.Arm.Steer.cframe=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerOuter*sDecay),0)
  3334. else
  3335. v.Arm.Steer.cframe=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
  3336. end
  3337. elseif v.Name=="FR" then
  3338. if _GSteerC>= 0 then
  3339. v.Arm.Steer.cframe=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
  3340. else
  3341. v.Arm.Steer.cframe=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerOuter*sDecay),0)
  3342. end
  3343. end
  3344. end
  3345. end
  3346.  
  3347. --Engine
  3348. function Engine()
  3349. --Neutral Gear
  3350. if _CGear==0 then _ClutchOn = false end
  3351.  
  3352. --Car is off
  3353. local revMin = _Tune.IdleRPM
  3354. if not _IsOn then
  3355. revMin = 0
  3356. _CGear = 0
  3357. _ClutchOn = false
  3358. _GThrot = _Tune.IdleThrottle
  3359. end
  3360.  
  3361. --Determine RPM
  3362. local maxSpin=0
  3363. for i,v in pairs(Drive) do
  3364. if v.RotVelocity.Magnitude>maxSpin then maxSpin = v.RotVelocity.Magnitude end
  3365. end
  3366. if _ClutchOn then
  3367. local aRPM = math.max(math.min(maxSpin*_Tune.Ratios[_CGear+2]*_Tune.FinalDrive*30/math.pi,_Tune.Redline+100),revMin)
  3368. local clutchP = math.min(math.abs(aRPM-_RPM)/_Tune.ClutchTol,.9)
  3369. _RPM = ( (_RPM*2*clutchP) + (aRPM*2*(1-clutchP)) )/2
  3370. _HP = (_Tune.Horsepower/2) * math.sin((math.pi/((1+(math.min(10,_Tune.IdleOffset)/100))*_Tune.PeakRPM)) * (_RPM - (((2-(1+(math.min(10,_Tune.IdleOffset)/100)))* _Tune.PeakRPM)/2))) + (_Tune.Horsepower/2)
  3371. _OutTorque = _HP * 5250 / _RPM * _Tune.Ratios[_CGear+2] * _Tune.FinalDrive
  3372. else
  3373. if _GThrot-_Tune.IdleThrottle>0 then
  3374. _RPM = math.min(_RPM+_Tune.RevAccel*_GThrot,_Tune.Redline+100)
  3375. else
  3376. _RPM = math.max(_RPM-_Tune.RevDecay,revMin)
  3377. end
  3378. _OutTorque = 0
  3379. end
  3380.  
  3381. --Rev Limiter
  3382. local spLimit = 0
  3383. if _RPM>_Tune.Redline then
  3384. if _CGear<#_Tune.Ratios-2 then
  3385. _RPM = _RPM-_Tune.RevBounce
  3386. spLimit = 0
  3387. else
  3388. _RPM = _RPM-_Tune.RevBounce*.5
  3389. end
  3390. else
  3391. spLimit = (_Tune.Redline+100)*math.pi/(30*_Tune.Ratios[_CGear+2]*_Tune.FinalDrive)
  3392. end
  3393.  
  3394. --Automatic Transmission
  3395. if _TMode == "Auto" and _IsOn then
  3396. _ClutchOn = true
  3397. if _CGear == 0 then _CGear = 1 end
  3398. if _CGear >= 1 then
  3399. if _CGear==1 and _GBrake > 0 and car.DriveSeat.Velocity.Magnitude < 20 then
  3400. _CGear = -1
  3401. else
  3402. if _Tune.AutoShiftMode == "RPM" then
  3403. if _RPM>(_Tune.PeakRPM+_Tune.AutoUpThresh) then
  3404. _CGear=math.min(_CGear+1,#_Tune.Ratios-2)
  3405. elseif math.max(math.min(maxSpin*_Tune.Ratios[_CGear+1]*_Tune.FinalDrive*30/math.pi,_Tune.Redline+100),_Tune.IdleRPM)<(_Tune.PeakRPM-_Tune.AutoDownThresh) then
  3406. _CGear=math.max(_CGear-1,1)
  3407. end
  3408. else
  3409. if car.DriveSeat.Velocity.Magnitude > math.ceil(wDia*math.pi*(_Tune.PeakRPM+_Tune.AutoUpThresh)/60/_Tune.Ratios[_CGear+2]/_Tune.FinalDrive) then
  3410. _CGear=math.min(_CGear+1,#_Tune.Ratios-2)
  3411. elseif car.DriveSeat.Velocity.Magnitude < math.ceil(wDia*math.pi*(_Tune.PeakRPM-_Tune.AutoDownThresh)/60/_Tune.Ratios[_CGear+1]/_Tune.FinalDrive) then
  3412. _CGear=math.max(_CGear-1,1)
  3413. end
  3414. end
  3415. end
  3416. else
  3417. if _GThrot-_Tune.IdleThrottle > 0 and car.DriveSeat.Velocity.Magnitude < 20 then
  3418. _CGear = 1
  3419. end
  3420. end
  3421. end
  3422.  
  3423. --Differential Stuff
  3424. local fwspeed=0
  3425. local fwcount=0
  3426. local rwspeed=0
  3427. local rwcount=0
  3428.  
  3429. for i,v in pairs(car.Wheels:GetChildren()) do
  3430. if v.Name=="FL" or v.Name=="FR" or v.Name == "F" then
  3431. fwspeed=fwspeed+v.RotVelocity.Magnitude
  3432. fwcount=fwcount+1
  3433. elseif v.Name=="RL" or v.Name=="RR" or v.Name == "R" then
  3434. rwspeed=rwspeed+v.RotVelocity.Magnitude
  3435. rwcount=rwcount+1
  3436. end
  3437. end
  3438. fwspeed=fwspeed/fwcount
  3439. rwspeed=rwspeed/rwcount
  3440. local cwspeed=(fwspeed+rwspeed)/2
  3441.  
  3442. --Apply Forces
  3443. for i,v in pairs(car.Wheels:GetChildren()) do
  3444. local Ref=v.Axle.CFrame.lookVector
  3445. local aRef=1
  3446. local diffMult=1
  3447. if v.Name=="FL" or v.Name=="RL" then aRef=-1 end
  3448.  
  3449. --Torque Compensation
  3450. if _Tune.Config ~= "AWD" then _OutTorque = _OutTorque*1.3 end
  3451.  
  3452. --Differential
  3453. if v.Name=="FL" or v.Name=="FR" then
  3454. diffMult=math.max(0,math.min(1,1+((((v.RotVelocity.Magnitude-fwspeed)/fwspeed)/(math.max(_Tune.FDiffSlipThres,1)/100))*((_Tune.FDiffLockThres-50)/50))))
  3455. if _Tune.Config == "AWD" then
  3456. diffMult=math.max(0,math.min(1,diffMult*(1+((((fwspeed-cwspeed)/cwspeed)/(math.max(_Tune.CDiffSlipThres,1)/100))*((_Tune.CDiffLockThres-50)/50)))))
  3457. end
  3458. elseif v.Name=="RL" or v.Name=="RR" then
  3459. diffMult=math.max(0,math.min(1,1+((((v.RotVelocity.Magnitude-rwspeed)/rwspeed)/(math.max(_Tune.RDiffSlipThres,1)/100))*((_Tune.RDiffLockThres-50)/50))))
  3460. if _Tune.Config == "AWD" then
  3461. diffMult=math.max(0,math.min(1,diffMult*(1+((((rwspeed-cwspeed)/cwspeed)/(math.max(_Tune.CDiffSlipThres,1)/100))*((_Tune.CDiffLockThres-50)/50)))))
  3462. end
  3463. end
  3464.  
  3465. --Output
  3466. if _PBrake and ((_Tune.Config ~= "FWD" and (((v.Name=="FL" or v.Name=="FR") and car.DriveSeat.Velocity.Magnitude<20) or ((v.Name=="RR" or v.Name=="RL") and car.DriveSeat.Velocity.Magnitude>=20))) or (_Tune.Config == "FWD" and (v.Name=="RR" or v.Name=="RL"))) then
  3467. v["#AV"].maxTorque=Vector3.new(math.abs(Ref.x),math.abs(Ref.y),math.abs(Ref.z))*_Tune.PBrakeForce
  3468. v["#AV"].angularvelocity=Vector3.new()
  3469. else
  3470. if (_TMode == "Manual" and _GBrake==0) or (_TMode == "Auto" and ((_CGear>-1 and _GBrake==0 ) or (_CGear==-1 and _GThrot-_Tune.IdleThrottle==0 )))then
  3471. local driven = false
  3472. for _,a in pairs(Drive) do if a==v then driven = true end end
  3473. if driven then
  3474. local on=1
  3475. if not script.Parent.IsOn.Value then on=0 end
  3476. local throt = _GThrot
  3477. if _TMode == "Auto" and _CGear==-1 then throt = _GBrake end
  3478. local tqTCS = 1
  3479. if _TCS then
  3480. tqTCS = 1-(math.min(math.max(0,math.abs(v.RotVelocity.Magnitude*(v.Size.x/2) - v.Velocity.Magnitude)-_Tune.TCSThreshold)/_Tune.TCSGradient,1)*(1-_Tune.TCSLimit))
  3481. end
  3482. if tqTCS < 1 then
  3483. _TCSActive = true
  3484. else
  3485. _TCSActive = false
  3486. end
  3487. local dir = 1
  3488. if _CGear==-1 then dir = -1 end
  3489. v["#AV"].maxTorque=Vector3.new(math.abs(Ref.x),math.abs(Ref.y),math.abs(Ref.z))*_OutTorque*(1+(v.RotVelocity.Magnitude/60)^1.15)*throt*tqTCS*diffMult*on
  3490. v["#AV"].angularvelocity=Ref*aRef*spLimit*dir
  3491. else
  3492. v["#AV"].maxTorque=Vector3.new()
  3493. v["#AV"].angularvelocity=Vector3.new()
  3494. end
  3495. else
  3496. local brake = _GBrake
  3497. if _TMode == "Auto" and _CGear==-1 then brake = _GThrot end
  3498. v["#AV"].maxTorque=Vector3.new(math.abs(Ref.x),math.abs(Ref.y),math.abs(Ref.z))*_Tune.BrakeForce*brake
  3499. v["#AV"].angularvelocity=Vector3.new()
  3500. end
  3501. end
  3502. end
  3503. end
  3504.  
  3505.  
  3506. ---Flip
  3507. function Flip()
  3508. if (car.DriveSeat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.y > .1 or FlipDB then
  3509. FlipWait=tick()
  3510. else
  3511. if tick()-FlipWait>=3 then
  3512. FlipDB=true
  3513. local gyro = car.DriveSeat.Flip
  3514. gyro.maxTorque = Vector3.new(10000,0,10000)
  3515. gyro.P=3000
  3516. gyro.D=500
  3517. wait(1)
  3518. gyro.maxTorque = Vector3.new(0,0,0)
  3519. gyro.P=0
  3520. gyro.D=0
  3521. FlipDB=false
  3522. end
  3523. end
  3524. end
  3525.  
  3526. --Run
  3527. local ver=require(car["A-Chassis Tune"].README)
  3528. print("//INSPARE: AC6 Loaded - Build "..ver)
  3529.  
  3530. while wait() do
  3531. Steering()
  3532. Engine()
  3533. if _Tune.AutoFlip then Flip() end
  3534.  
  3535. _IsOn = script.Parent.IsOn.Value
  3536. _InControls = script.Parent.ControlsOpen.Value
  3537. script.Parent.Values.Gear.Value = _CGear
  3538. script.Parent.Values.RPM.Value = _RPM
  3539. script.Parent.Values.Horsepower.Value = _HP
  3540. script.Parent.Values.Torque.Value = _HP * 5250 / _RPM
  3541. script.Parent.Values.TransmissionMode.Value = _TMode
  3542. script.Parent.Values.Throttle.Value = _GThrot
  3543. script.Parent.Values.Brake.Value = _GBrake
  3544. script.Parent.Values.SteerC.Value = _GSteerC*(1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-_Tune.MinSteer))
  3545. script.Parent.Values.SteerT.Value = _GSteerT
  3546. script.Parent.Values.PBrake.Value = _PBrake
  3547. script.Parent.Values.TCS.Value = _TCS
  3548. script.Parent.Values.TCSActive.Value = _TCSActive
  3549. script.Parent.Values.Velocity.Value = car.DriveSeat.Velocity
  3550.  
  3551. if _PGear~=_CGear then
  3552. _PGear=_CGear
  3553. car.DriveSeat.MaxSpeed = car.DriveSeat.Velocity.Magnitude*(_Tune.Redline/_RPM)
  3554. end
  3555. end
  3556.  
  3557.  
  3558. end))
  3559. Model238.Name = "Body"
  3560. Model238.Parent = Model0
  3561. Model239.Name = "Body"
  3562. Model239.Parent = Model238
  3563. Model240.Name = "Exhaust"
  3564. Model240.Parent = Model239
  3565. PointLight241.Name = "L"
  3566. PointLight241.Parent = mas
  3567. PointLight241.Color = Color3.new(0.74902, 0.52549, 1)
  3568. PointLight241.Brightness = 100
  3569. PointLight241.Range = 0
  3570. PointLight241.Color = Color3.new(0.74902, 0.52549, 1)
  3571. ParticleEmitter242.Name = "Afterburn"
  3572. ParticleEmitter242.Parent = mas
  3573. ParticleEmitter242.Rotation = NumberRange.new(180, 180)
  3574. ParticleEmitter242.Size = NumberSequence.new(0.3125,0.8125,0.1875)
  3575. ParticleEmitter242.Color = ColorSequence.new(Color3.new(1, 0.207645, 0.067216),Color3.new(1, 0.395178, 0.386847))
  3576. ParticleEmitter242.LightEmission = 0.80000001192093
  3577. ParticleEmitter242.Texture = "http://www.roblox.com/asset/?id=462433141"
  3578. ParticleEmitter242.Acceleration = Vector3.new(0, 0, 10)
  3579. ParticleEmitter242.Lifetime = NumberRange.new(0.15000000596046, 0.25)
  3580. ParticleEmitter242.Rate = 0
  3581. ParticleEmitter242.RotSpeed = NumberRange.new(9000, 9000)
  3582. ParticleEmitter242.Speed = NumberRange.new(8, 8)
  3583. ParticleEmitter242.VelocitySpread = 1
  3584. ParticleEmitter242.Color = ColorSequence.new(Color3.new(1, 0.207645, 0.067216),Color3.new(1, 0.395178, 0.386847))
  3585. PointLight243.Name = "L"
  3586. PointLight243.Parent = mas
  3587. PointLight243.Color = Color3.new(0.74902, 0.52549, 1)
  3588. PointLight243.Brightness = 100
  3589. PointLight243.Range = 0
  3590. PointLight243.Color = Color3.new(0.74902, 0.52549, 1)
  3591. ParticleEmitter244.Name = "Afterburn"
  3592. ParticleEmitter244.Parent = mas
  3593. ParticleEmitter244.Rotation = NumberRange.new(180, 180)
  3594. ParticleEmitter244.Size = NumberSequence.new(0.3125,0.8125,0.1875)
  3595. ParticleEmitter244.Color = ColorSequence.new(Color3.new(1, 0.207645, 0.067216),Color3.new(1, 0.395178, 0.386847))
  3596. ParticleEmitter244.LightEmission = 0.80000001192093
  3597. ParticleEmitter244.Texture = "http://www.roblox.com/asset/?id=462433141"
  3598. ParticleEmitter244.Acceleration = Vector3.new(0, 0, 10)
  3599. ParticleEmitter244.Lifetime = NumberRange.new(0.15000000596046, 0.25)
  3600. ParticleEmitter244.Rate = 0
  3601. ParticleEmitter244.RotSpeed = NumberRange.new(9000, 9000)
  3602. ParticleEmitter244.Speed = NumberRange.new(8, 8)
  3603. ParticleEmitter244.VelocitySpread = 1
  3604. ParticleEmitter244.Color = ColorSequence.new(Color3.new(1, 0.207645, 0.067216),Color3.new(1, 0.395178, 0.386847))
  3605. Model245.Name = "Lights"
  3606. Model245.Parent = Model239
  3607. SurfaceLight246.Name = "Light"
  3608. SurfaceLight246.Parent = mas
  3609. SurfaceLight246.Color = Color3.new(0.654902, 0.956863, 1)
  3610. SurfaceLight246.Enabled = false
  3611. SurfaceLight246.Brightness = 15
  3612. SurfaceLight246.Range = 35
  3613. SurfaceLight246.Shadows = true
  3614. SurfaceLight246.Face = Enum.NormalId.Back
  3615. SurfaceLight246.Color = Color3.new(0.654902, 0.956863, 1)
  3616. SurfaceLight247.Name = "Light"
  3617. SurfaceLight247.Parent = mas
  3618. SurfaceLight247.Color = Color3.new(0.666667, 0, 0)
  3619. SurfaceLight247.Enabled = false
  3620. SurfaceLight247.Brightness = 3
  3621. SurfaceLight247.Range = 15
  3622. SurfaceLight247.Shadows = true
  3623. SurfaceLight247.Angle = 50
  3624. SurfaceLight247.Color = Color3.new(0.666667, 0, 0)
  3625. Model248.Name = "Body"
  3626. Model248.Parent = Model239
  3627. for i,v in pairs(mas:GetChildren()) do
  3628. v.Parent = workspace
  3629. pcall(function() v:MakeJoints() end)
  3630. end
  3631. mas:Destroy()
  3632. for i,v in pairs(cors) do
  3633. spawn(function()
  3634. pcall(v)
  3635. end)
  3636. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement