-----------------

dababy car

May 10th, 2021 (edited)
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 213.47 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. --Converted with ttyyuu12345's model to script plugin v4
  153. function sandbox(var,func)
  154. local env = getfenv(func)
  155. local newenv = setmetatable({},{
  156. __index = function(self,k)
  157. if k=="script" then
  158. return var
  159. else
  160. return env[k]
  161. end
  162. end,
  163. })
  164. setfenv(func,newenv)
  165. return func
  166. end
  167. cors = {}
  168. mas = Instance.new("Model",game:GetService("Lighting"))
  169. Model0 = Instance.new("Model")
  170. Humanoid1 = Instance.new("Humanoid")
  171. Model2 = Instance.new("Model")
  172. Part3 = Instance.new("Part")
  173. Model4 = Instance.new("Model")
  174. CylinderMesh5 = Instance.new("CylinderMesh")
  175. Model6 = Instance.new("Model")
  176. Model7 = Instance.new("Model")
  177. MeshPart8 = Instance.new("MeshPart")
  178. Part9 = Instance.new("Part")
  179. Model10 = Instance.new("Model")
  180. Part11 = Instance.new("Part")
  181. Trail12 = Instance.new("Trail")
  182. CylinderMesh13 = Instance.new("CylinderMesh")
  183. Sound14 = Instance.new("Sound")
  184. Model15 = Instance.new("Model")
  185. Model16 = Instance.new("Model")
  186. MeshPart17 = Instance.new("MeshPart")
  187. ParticleEmitter18 = Instance.new("ParticleEmitter")
  188. Part19 = Instance.new("Part")
  189. Model20 = Instance.new("Model")
  190. CylinderMesh21 = Instance.new("CylinderMesh")
  191. Model22 = Instance.new("Model")
  192. Model23 = Instance.new("Model")
  193. MeshPart24 = Instance.new("MeshPart")
  194. Part25 = Instance.new("Part")
  195. Model26 = Instance.new("Model")
  196. Part27 = Instance.new("Part")
  197. Trail28 = Instance.new("Trail")
  198. CylinderMesh29 = Instance.new("CylinderMesh")
  199. Sound30 = Instance.new("Sound")
  200. Model31 = Instance.new("Model")
  201. Model32 = Instance.new("Model")
  202. MeshPart33 = Instance.new("MeshPart")
  203. ParticleEmitter34 = Instance.new("ParticleEmitter")
  204. VehicleSeat35 = Instance.new("VehicleSeat")
  205. Model36 = Instance.new("Model")
  206. Model37 = Instance.new("Model")
  207. MeshPart38 = Instance.new("MeshPart")
  208. Sound39 = Instance.new("Sound")
  209. EqualizerSoundEffect40 = Instance.new("EqualizerSoundEffect")
  210. ReverbSoundEffect41 = Instance.new("ReverbSoundEffect")
  211. ReverbSoundEffect42 = Instance.new("ReverbSoundEffect")
  212. Script43 = Instance.new("Script")
  213. Model44 = Instance.new("Model")
  214. MeshPart45 = Instance.new("MeshPart")
  215. Decal46 = Instance.new("Decal")
  216. Decal47 = Instance.new("Decal")
  217. Decal48 = Instance.new("Decal")
  218. Decal49 = Instance.new("Decal")
  219. MeshPart50 = Instance.new("MeshPart")
  220. MeshPart51 = Instance.new("MeshPart")
  221. Decal52 = Instance.new("Decal")
  222. Decal53 = Instance.new("Decal")
  223. Decal54 = Instance.new("Decal")
  224. Part55 = Instance.new("Part")
  225. Part56 = Instance.new("Part")
  226. MeshPart57 = Instance.new("MeshPart")
  227. Decal58 = Instance.new("Decal")
  228. Decal59 = Instance.new("Decal")
  229. Decal60 = Instance.new("Decal")
  230. Decal61 = Instance.new("Decal")
  231. Decal62 = Instance.new("Decal")
  232. Decal63 = Instance.new("Decal")
  233. Decal64 = Instance.new("Decal")
  234. ModuleScript65 = Instance.new("ModuleScript")
  235. Script66 = Instance.new("Script")
  236. ModuleScript67 = Instance.new("ModuleScript")
  237. ModuleScript68 = Instance.new("ModuleScript")
  238. ScreenGui69 = Instance.new("ScreenGui")
  239. ObjectValue70 = Instance.new("ObjectValue")
  240. BoolValue71 = Instance.new("BoolValue")
  241. BoolValue72 = Instance.new("BoolValue")
  242. LocalScript73 = Instance.new("LocalScript")
  243. Folder74 = Instance.new("Folder")
  244. NumberValue75 = Instance.new("NumberValue")
  245. NumberValue76 = Instance.new("NumberValue")
  246. NumberValue77 = Instance.new("NumberValue")
  247. StringValue78 = Instance.new("StringValue")
  248. NumberValue79 = Instance.new("NumberValue")
  249. NumberValue80 = Instance.new("NumberValue")
  250. NumberValue81 = Instance.new("NumberValue")
  251. NumberValue82 = Instance.new("NumberValue")
  252. NumberValue83 = Instance.new("NumberValue")
  253. BoolValue84 = Instance.new("BoolValue")
  254. BoolValue85 = Instance.new("BoolValue")
  255. BoolValue86 = Instance.new("BoolValue")
  256. Vector3Value87 = Instance.new("Vector3Value")
  257. BoolValue88 = Instance.new("BoolValue")
  258. BoolValue89 = Instance.new("BoolValue")
  259. BoolValue90 = Instance.new("BoolValue")
  260. Frame91 = Instance.new("Frame")
  261. TextButton92 = Instance.new("TextButton")
  262. LocalScript93 = Instance.new("LocalScript")
  263. Sound94 = Instance.new("Sound")
  264. NumberValue95 = Instance.new("NumberValue")
  265. NumberValue96 = Instance.new("NumberValue")
  266. NumberValue97 = Instance.new("NumberValue")
  267. NumberValue98 = Instance.new("NumberValue")
  268. Sound99 = Instance.new("Sound")
  269. Folder100 = Instance.new("Folder")
  270. LocalScript101 = Instance.new("LocalScript")
  271. Sound102 = Instance.new("Sound")
  272. Sound103 = Instance.new("Sound")
  273. LocalScript104 = Instance.new("LocalScript")
  274. Sound105 = Instance.new("Sound")
  275. LocalScript106 = Instance.new("LocalScript")
  276. RemoteEvent107 = Instance.new("RemoteEvent")
  277. Script108 = Instance.new("Script")
  278. Sound109 = Instance.new("Sound")
  279. NumberValue110 = Instance.new("NumberValue")
  280. NumberValue111 = Instance.new("NumberValue")
  281. TextButton112 = Instance.new("TextButton")
  282. LocalScript113 = Instance.new("LocalScript")
  283. Sound114 = Instance.new("Sound")
  284. Frame115 = Instance.new("Frame")
  285. LocalScript116 = Instance.new("LocalScript")
  286. ImageLabel117 = Instance.new("ImageLabel")
  287. Frame118 = Instance.new("Frame")
  288. Frame119 = Instance.new("Frame")
  289. Frame120 = Instance.new("Frame")
  290. Frame121 = Instance.new("Frame")
  291. Frame122 = Instance.new("Frame")
  292. Frame123 = Instance.new("Frame")
  293. Frame124 = Instance.new("Frame")
  294. Frame125 = Instance.new("Frame")
  295. Frame126 = Instance.new("Frame")
  296. TextLabel127 = Instance.new("TextLabel")
  297. TextLabel128 = Instance.new("TextLabel")
  298. TextLabel129 = Instance.new("TextLabel")
  299. TextLabel130 = Instance.new("TextLabel")
  300. TextLabel131 = Instance.new("TextLabel")
  301. TextLabel132 = Instance.new("TextLabel")
  302. TextButton133 = Instance.new("TextButton")
  303. TextLabel134 = Instance.new("TextLabel")
  304. LocalScript135 = Instance.new("LocalScript")
  305. Frame136 = Instance.new("Frame")
  306. LocalScript137 = Instance.new("LocalScript")
  307. Frame138 = Instance.new("Frame")
  308. TextLabel139 = Instance.new("TextLabel")
  309. TextLabel140 = Instance.new("TextLabel")
  310. TextLabel141 = Instance.new("TextLabel")
  311. TextLabel142 = Instance.new("TextLabel")
  312. Frame143 = Instance.new("Frame")
  313. TextButton144 = Instance.new("TextButton")
  314. TextButton145 = Instance.new("TextButton")
  315. TextButton146 = Instance.new("TextButton")
  316. Frame147 = Instance.new("Frame")
  317. Frame148 = Instance.new("Frame")
  318. TextLabel149 = Instance.new("TextLabel")
  319. ScrollingFrame150 = Instance.new("ScrollingFrame")
  320. TextLabel151 = Instance.new("TextLabel")
  321. ScrollingFrame152 = Instance.new("ScrollingFrame")
  322. TextLabel153 = Instance.new("TextLabel")
  323. ScrollingFrame154 = Instance.new("ScrollingFrame")
  324. TextLabel155 = Instance.new("TextLabel")
  325. ScrollingFrame156 = Instance.new("ScrollingFrame")
  326. TextLabel157 = Instance.new("TextLabel")
  327. TextLabel158 = Instance.new("TextLabel")
  328. TextLabel159 = Instance.new("TextLabel")
  329. TextLabel160 = Instance.new("TextLabel")
  330. TextButton161 = Instance.new("TextButton")
  331. TextButton162 = Instance.new("TextButton")
  332. TextButton163 = Instance.new("TextButton")
  333. TextButton164 = Instance.new("TextButton")
  334. TextButton165 = Instance.new("TextButton")
  335. TextButton166 = Instance.new("TextButton")
  336. TextButton167 = Instance.new("TextButton")
  337. TextButton168 = Instance.new("TextButton")
  338. TextButton169 = Instance.new("TextButton")
  339. TextLabel170 = Instance.new("TextLabel")
  340. TextLabel171 = Instance.new("TextLabel")
  341. TextLabel172 = Instance.new("TextLabel")
  342. TextLabel173 = Instance.new("TextLabel")
  343. TextLabel174 = Instance.new("TextLabel")
  344. TextLabel175 = Instance.new("TextLabel")
  345. TextLabel176 = Instance.new("TextLabel")
  346. TextLabel177 = Instance.new("TextLabel")
  347. TextLabel178 = Instance.new("TextLabel")
  348. TextButton179 = Instance.new("TextButton")
  349. TextButton180 = Instance.new("TextButton")
  350. TextButton181 = Instance.new("TextButton")
  351. TextButton182 = Instance.new("TextButton")
  352. TextButton183 = Instance.new("TextButton")
  353. TextButton184 = Instance.new("TextButton")
  354. TextButton185 = Instance.new("TextButton")
  355. TextLabel186 = Instance.new("TextLabel")
  356. TextLabel187 = Instance.new("TextLabel")
  357. TextLabel188 = Instance.new("TextLabel")
  358. TextLabel189 = Instance.new("TextLabel")
  359. TextLabel190 = Instance.new("TextLabel")
  360. TextLabel191 = Instance.new("TextLabel")
  361. TextLabel192 = Instance.new("TextLabel")
  362. TextButton193 = Instance.new("TextButton")
  363. TextButton194 = Instance.new("TextButton")
  364. TextButton195 = Instance.new("TextButton")
  365. TextButton196 = Instance.new("TextButton")
  366. TextButton197 = Instance.new("TextButton")
  367. TextButton198 = Instance.new("TextButton")
  368. TextButton199 = Instance.new("TextButton")
  369. TextButton200 = Instance.new("TextButton")
  370. TextButton201 = Instance.new("TextButton")
  371. TextButton202 = Instance.new("TextButton")
  372. TextButton203 = Instance.new("TextButton")
  373. TextButton204 = Instance.new("TextButton")
  374. TextButton205 = Instance.new("TextButton")
  375. TextButton206 = Instance.new("TextButton")
  376. TextButton207 = Instance.new("TextButton")
  377. TextLabel208 = Instance.new("TextLabel")
  378. TextLabel209 = Instance.new("TextLabel")
  379. TextLabel210 = Instance.new("TextLabel")
  380. TextLabel211 = Instance.new("TextLabel")
  381. TextLabel212 = Instance.new("TextLabel")
  382. TextLabel213 = Instance.new("TextLabel")
  383. TextLabel214 = Instance.new("TextLabel")
  384. TextLabel215 = Instance.new("TextLabel")
  385. TextLabel216 = Instance.new("TextLabel")
  386. TextLabel217 = Instance.new("TextLabel")
  387. TextLabel218 = Instance.new("TextLabel")
  388. TextLabel219 = Instance.new("TextLabel")
  389. TextLabel220 = Instance.new("TextLabel")
  390. TextLabel221 = Instance.new("TextLabel")
  391. TextLabel222 = Instance.new("TextLabel")
  392. TextButton223 = Instance.new("TextButton")
  393. TextLabel224 = Instance.new("TextLabel")
  394. TextLabel225 = Instance.new("TextLabel")
  395. TextButton226 = Instance.new("TextButton")
  396. TextButton227 = Instance.new("TextButton")
  397. LocalScript228 = Instance.new("LocalScript")
  398. RemoteEvent229 = Instance.new("RemoteEvent")
  399. Script230 = Instance.new("Script")
  400. Sound231 = Instance.new("Sound")
  401. ParticleEmitter232 = Instance.new("ParticleEmitter")
  402. LocalScript233 = Instance.new("LocalScript")
  403. RemoteEvent234 = Instance.new("RemoteEvent")
  404. Script235 = Instance.new("Script")
  405. Sound236 = Instance.new("Sound")
  406. NumberValue237 = Instance.new("NumberValue")
  407. NumberValue238 = Instance.new("NumberValue")
  408. Camera239 = Instance.new("Camera")
  409. Model0.Name = "Dababy Car (Drifts)"
  410. Model0.Parent = mas
  411. Humanoid1.Parent = Model0
  412. Model2.Name = "Wheels"
  413. Model2.Parent = Model0
  414. Model2.PrimaryPart = Part19
  415. Part3.Name = "FR"
  416. Part3.Parent = Model2
  417. Part3.CFrame = CFrame.new(-49.7320328, 1.44174027, -77.2087479, -0.000192180276, 1.00000024, 0.000378974801, -0.227366641, 0.000327218324, -0.973809719, -0.973809242, -0.000265292823, 0.227366671)
  418. Part3.Orientation = Vector3.new(76.8600006, 0.100000001, -89.9199982)
  419. Part3.Position = Vector3.new(-49.7320328, 1.44174027, -77.2087479)
  420. Part3.Rotation = Vector3.new(76.8600006, 0.0199999996, -90.0100021)
  421. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  422. Part3.Transparency = 1
  423. Part3.Size = Vector3.new(2.19269395, 2.19269395, 2.19269395)
  424. Part3.Anchored = true
  425. Part3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  426. Part3.BottomParamA = 0
  427. Part3.BottomParamB = 0
  428. Part3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  429. Part3.BrickColor = BrickColor.new("Institutional white")
  430. Part3.CustomPhysicalProperties = 0.300000012, 0.319999993, 0, 100, 1
  431. Part3.FrontParamA = 0
  432. Part3.FrontParamB = 0
  433. Part3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  434. Part3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  435. Part3.Material = Enum.Material.SmoothPlastic
  436. Part3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  437. Part3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  438. Part3.brickColor = BrickColor.new("Institutional white")
  439. Part3.FormFactor = Enum.FormFactor.Symmetric
  440. Part3.formFactor = Enum.FormFactor.Symmetric
  441. Part3.Shape = Enum.PartType.Ball
  442. Model4.Name = "WheelFixed"
  443. Model4.Parent = Part3
  444. CylinderMesh5.Parent = Part3
  445. CylinderMesh5.Scale = Vector3.new(1, 0.449999988, 1)
  446. Model6.Name = "SuspensionFixed"
  447. Model6.Parent = Part3
  448. Model7.Name = "Parts"
  449. Model7.Parent = Part3
  450. MeshPart8.Name = "Work Meister S1 2P"
  451. MeshPart8.Parent = Model7
  452. MeshPart8.CFrame = CFrame.new(-49.7316704, 1.4419179, -77.208992, 6.46601961e-07, 1.0000087, 2.01165676e-07, 0.973671854, -6.42612576e-07, -0.22792615, -0.227925017, 2.38418579e-07, -0.973676682)
  453. MeshPart8.Orientation = Vector3.new(13.1800003, 180, 90)
  454. MeshPart8.Position = Vector3.new(-49.7316704, 1.4419179, -77.208992)
  455. MeshPart8.Rotation = Vector3.new(166.820007, 0, -90)
  456. MeshPart8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  457. MeshPart8.Size = Vector3.new(2.4000001, 1.10000002, 2.4000001)
  458. MeshPart8.Anchored = true
  459. MeshPart8.BrickColor = BrickColor.new("Really black")
  460. MeshPart8.CanCollide = false
  461. MeshPart8.Material = Enum.Material.Metal
  462. MeshPart8.brickColor = BrickColor.new("Really black")
  463. MeshPart8.TextureID = "rbxassetid://2440267848"
  464. Part9.Name = "RL"
  465. Part9.Parent = Model2
  466. Part9.CFrame = CFrame.new(-55.3005562, 3.59074783, -68.0350723, 0.000192180276, -1.00000024, 0.000378974801, 0.227366641, -0.000327218324, -0.973809719, 0.973809242, 0.000265292823, 0.227366671)
  467. Part9.Orientation = Vector3.new(76.8600006, 0.100000001, 90.0800018)
  468. Part9.Position = Vector3.new(-55.3005562, 3.59074783, -68.0350723)
  469. Part9.Rotation = Vector3.new(76.8600006, 0.0199999996, 89.9899979)
  470. Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  471. Part9.Transparency = 1
  472. Part9.Size = Vector3.new(2.19269395, 2.19269395, 2.19269395)
  473. Part9.Anchored = true
  474. Part9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  475. Part9.BottomParamA = 0
  476. Part9.BottomParamB = 0
  477. Part9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  478. Part9.BrickColor = BrickColor.new("Institutional white")
  479. Part9.CustomPhysicalProperties = 0.300000012, 0.319999993, 0, 100, 1
  480. Part9.FrontParamA = 0
  481. Part9.FrontParamB = 0
  482. Part9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  483. Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  484. Part9.Material = Enum.Material.SmoothPlastic
  485. Part9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  486. Part9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  487. Part9.brickColor = BrickColor.new("Institutional white")
  488. Part9.FormFactor = Enum.FormFactor.Symmetric
  489. Part9.formFactor = Enum.FormFactor.Symmetric
  490. Part9.Shape = Enum.PartType.Ball
  491. Model10.Name = "Fixed"
  492. Model10.Parent = Part9
  493. Part11.Parent = Model10
  494. Part11.CFrame = CFrame.new(-55.2518082, 3.8172493, -68.1002045, 6.4112246e-05, -1.00000012, -0.000221916955, 0.22804825, 0.000228866935, -0.973650038, 0.973649859, 3.97115946e-06, 0.22804828)
  495. Part11.Orientation = Vector3.new(76.8199997, -0.0599999987, 89.9400024)
  496. Part11.Position = Vector3.new(-55.2518082, 3.8172493, -68.1002045)
  497. Part11.Rotation = Vector3.new(76.8199997, -0.00999999978, 90)
  498. Part11.Transparency = 1
  499. Part11.Size = Vector3.new(2.25656509, 2.25656509, 2.25656509)
  500. Part11.Anchored = true
  501. Part11.CanCollide = false
  502. Trail12.Parent = Part11
  503. Trail12.Attachment0 = nil
  504. Trail12.Attachment1 = nil
  505. Trail12.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
  506. Trail12.Enabled = false
  507. Trail12.TextureLength = 5
  508. Trail12.TextureMode = Enum.TextureMode.Static
  509. Trail12.Transparency = NumberSequence.new(0.20000000298023,0.20000000298023)
  510. Trail12.MinLength = 0
  511. Trail12.Lifetime = 20
  512. CylinderMesh13.Parent = Part9
  513. CylinderMesh13.Scale = Vector3.new(1, 0.449999988, 1)
  514. Sound14.Name = "SQ"
  515. Sound14.Parent = Part9
  516. Sound14.Looped = true
  517. Sound14.SoundId = "rbxassetid://201887209"
  518. Sound14.Volume = 0
  519. Model15.Name = "SuspensionFixed"
  520. Model15.Parent = Part9
  521. Model16.Name = "Parts"
  522. Model16.Parent = Part9
  523. MeshPart17.Name = "Work Meister S1 2P"
  524. MeshPart17.Parent = Model16
  525. MeshPart17.CFrame = CFrame.new(-55.3006973, 3.59041834, -68.0352478, -6.46602416e-07, -1.00000954, 1.04308128e-07, -0.973672569, 6.55651093e-07, -0.227926493, 0.227925211, -1.93715096e-07, -0.973678052)
  526. MeshPart17.Orientation = Vector3.new(13.1800003, 180, -90)
  527. MeshPart17.Position = Vector3.new(-55.3006973, 3.59041834, -68.0352478)
  528. MeshPart17.Rotation = Vector3.new(166.820007, 0, 90)
  529. MeshPart17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  530. MeshPart17.Size = Vector3.new(2.4000001, 1.10000002, 2.4000001)
  531. MeshPart17.Anchored = true
  532. MeshPart17.BrickColor = BrickColor.new("Really black")
  533. MeshPart17.CanCollide = false
  534. MeshPart17.Material = Enum.Material.Metal
  535. MeshPart17.brickColor = BrickColor.new("Really black")
  536. MeshPart17.TextureID = "rbxassetid://2440267848"
  537. ParticleEmitter18.Name = "Smoke"
  538. ParticleEmitter18.Parent = Part9
  539. ParticleEmitter18.Speed = NumberRange.new(-2, 0)
  540. ParticleEmitter18.Color = ColorSequence.new(Color3.new(0.866667, 0.882353, 1),Color3.new(0.866667, 0.882353, 1))
  541. ParticleEmitter18.Texture = "rbxassetid://982254017"
  542. ParticleEmitter18.Transparency = NumberSequence.new(0.75,1)
  543. ParticleEmitter18.Size = NumberSequence.new(3,7.8611102104187,9.3888902664185)
  544. ParticleEmitter18.Acceleration = Vector3.new(0, 1, 0)
  545. ParticleEmitter18.EmissionDirection = Enum.NormalId.Bottom
  546. ParticleEmitter18.Lifetime = NumberRange.new(5, 5)
  547. ParticleEmitter18.Rate = 0
  548. ParticleEmitter18.RotSpeed = NumberRange.new(20, 100)
  549. ParticleEmitter18.SpreadAngle = Vector2.new(20, 20)
  550. ParticleEmitter18.VelocitySpread = 20
  551. Part19.Name = "FL"
  552. Part19.Parent = Model2
  553. Part19.CFrame = CFrame.new(-55.3139992, 1.46032047, -77.2147903, 0.000192180276, -1.00000024, 0.000378974801, 0.227366641, -0.000327218324, -0.973809719, 0.973809242, 0.000265292823, 0.227366671)
  554. Part19.Orientation = Vector3.new(76.8600006, 0.100000001, 90.0800018)
  555. Part19.Position = Vector3.new(-55.3139992, 1.46032047, -77.2147903)
  556. Part19.Rotation = Vector3.new(76.8600006, 0.0199999996, 89.9899979)
  557. Part19.Color = Color3.new(0.972549, 0.972549, 0.972549)
  558. Part19.Transparency = 1
  559. Part19.Size = Vector3.new(2.19269395, 2.19269395, 2.19269395)
  560. Part19.Anchored = true
  561. Part19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  562. Part19.BottomParamA = 0
  563. Part19.BottomParamB = 0
  564. Part19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  565. Part19.BrickColor = BrickColor.new("Institutional white")
  566. Part19.CustomPhysicalProperties = 0.300000012, 0.319999993, 0, 100, 1
  567. Part19.FrontParamA = 0
  568. Part19.FrontParamB = 0
  569. Part19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  570. Part19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  571. Part19.Material = Enum.Material.SmoothPlastic
  572. Part19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  573. Part19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  574. Part19.brickColor = BrickColor.new("Institutional white")
  575. Part19.FormFactor = Enum.FormFactor.Symmetric
  576. Part19.formFactor = Enum.FormFactor.Symmetric
  577. Part19.Shape = Enum.PartType.Ball
  578. Model20.Name = "WheelFixed"
  579. Model20.Parent = Part19
  580. CylinderMesh21.Parent = Part19
  581. CylinderMesh21.Scale = Vector3.new(1, 0.449999988, 1)
  582. Model22.Name = "SuspensionFixed"
  583. Model22.Parent = Part19
  584. Model23.Name = "Parts"
  585. Model23.Parent = Part19
  586. MeshPart24.Name = "Work Meister S1 2P"
  587. MeshPart24.Parent = Model23
  588. MeshPart24.CFrame = CFrame.new(-55.3137817, 1.46019506, -77.2143326, -6.46602416e-07, -1.00000954, 1.04308128e-07, -0.973672569, 6.55651093e-07, -0.227926493, 0.227925211, -1.93715096e-07, -0.973678052)
  589. MeshPart24.Orientation = Vector3.new(13.1800003, 180, -90)
  590. MeshPart24.Position = Vector3.new(-55.3137817, 1.46019506, -77.2143326)
  591. MeshPart24.Rotation = Vector3.new(166.820007, 0, 90)
  592. MeshPart24.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  593. MeshPart24.Size = Vector3.new(2.4000001, 1.10000002, 2.4000001)
  594. MeshPart24.Anchored = true
  595. MeshPart24.BrickColor = BrickColor.new("Really black")
  596. MeshPart24.CanCollide = false
  597. MeshPart24.Material = Enum.Material.Metal
  598. MeshPart24.brickColor = BrickColor.new("Really black")
  599. MeshPart24.TextureID = "rbxassetid://2440267848"
  600. Part25.Name = "RR"
  601. Part25.Parent = Model2
  602. Part25.CFrame = CFrame.new(-49.7888031, 3.5672965, -67.9820175, -0.000192180276, 1.00000024, 0.000378974801, -0.227366641, 0.000327218324, -0.973809719, -0.973809242, -0.000265292823, 0.227366671)
  603. Part25.Orientation = Vector3.new(76.8600006, 0.100000001, -89.9199982)
  604. Part25.Position = Vector3.new(-49.7888031, 3.5672965, -67.9820175)
  605. Part25.Rotation = Vector3.new(76.8600006, 0.0199999996, -90.0100021)
  606. Part25.Color = Color3.new(0.972549, 0.972549, 0.972549)
  607. Part25.Transparency = 1
  608. Part25.Size = Vector3.new(2.19269395, 2.19269395, 2.19269395)
  609. Part25.Anchored = true
  610. Part25.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  611. Part25.BottomParamA = 0
  612. Part25.BottomParamB = 0
  613. Part25.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  614. Part25.BrickColor = BrickColor.new("Institutional white")
  615. Part25.CustomPhysicalProperties = 0.300000012, 0.319999993, 0, 100, 1
  616. Part25.FrontParamA = 0
  617. Part25.FrontParamB = 0
  618. Part25.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  619. Part25.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  620. Part25.Material = Enum.Material.SmoothPlastic
  621. Part25.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  622. Part25.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  623. Part25.brickColor = BrickColor.new("Institutional white")
  624. Part25.FormFactor = Enum.FormFactor.Symmetric
  625. Part25.formFactor = Enum.FormFactor.Symmetric
  626. Part25.Shape = Enum.PartType.Ball
  627. Model26.Name = "Fixed"
  628. Model26.Parent = Part25
  629. Part27.Parent = Model26
  630. Part27.CFrame = CFrame.new(-49.7221146, 3.7787838, -68.0100021, 6.4112246e-05, -1.00000012, -0.000221916955, 0.22804825, 0.000228866935, -0.973650038, 0.973649859, 3.97115946e-06, 0.22804828)
  631. Part27.Orientation = Vector3.new(76.8199997, -0.0599999987, 89.9400024)
  632. Part27.Position = Vector3.new(-49.7221146, 3.7787838, -68.0100021)
  633. Part27.Rotation = Vector3.new(76.8199997, -0.00999999978, 90)
  634. Part27.Transparency = 1
  635. Part27.Size = Vector3.new(2.25656509, 2.25656509, 2.25656509)
  636. Part27.Anchored = true
  637. Part27.CanCollide = false
  638. Trail28.Parent = Part27
  639. Trail28.Attachment0 = nil
  640. Trail28.Attachment1 = nil
  641. Trail28.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
  642. Trail28.Enabled = false
  643. Trail28.TextureLength = 5
  644. Trail28.TextureMode = Enum.TextureMode.Static
  645. Trail28.Transparency = NumberSequence.new(0.20000000298023,0.20000000298023)
  646. Trail28.MinLength = 0
  647. Trail28.Lifetime = 20
  648. CylinderMesh29.Parent = Part25
  649. CylinderMesh29.Scale = Vector3.new(1, 0.449999988, 1)
  650. Sound30.Name = "SQ"
  651. Sound30.Parent = Part25
  652. Sound30.Looped = true
  653. Sound30.SoundId = "rbxassetid://201887209"
  654. Sound30.Volume = 0
  655. Model31.Name = "SuspensionFixed"
  656. Model31.Parent = Part25
  657. Model32.Name = "Parts"
  658. Model32.Parent = Part25
  659. MeshPart33.Name = "Work Meister S1 2P"
  660. MeshPart33.Parent = Model32
  661. MeshPart33.CFrame = CFrame.new(-49.7887077, 3.56704712, -67.981514, 6.90906404e-07, 1.00000954, -1.04308128e-07, -0.973672569, 6.48200512e-07, 0.227926463, 0.227925181, -1.04308128e-07, 0.973678052)
  662. MeshPart33.Orientation = Vector3.new(-13.1800003, 0, -90)
  663. MeshPart33.Position = Vector3.new(-49.7887077, 3.56704712, -67.981514)
  664. MeshPart33.Rotation = Vector3.new(-13.1800003, 0, -90)
  665. MeshPart33.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  666. MeshPart33.Size = Vector3.new(2.4000001, 1.10000002, 2.4000001)
  667. MeshPart33.Anchored = true
  668. MeshPart33.BrickColor = BrickColor.new("Really black")
  669. MeshPart33.CanCollide = false
  670. MeshPart33.Material = Enum.Material.Metal
  671. MeshPart33.brickColor = BrickColor.new("Really black")
  672. MeshPart33.TextureID = "rbxassetid://2440267848"
  673. ParticleEmitter34.Name = "Smoke"
  674. ParticleEmitter34.Parent = Part25
  675. ParticleEmitter34.Speed = NumberRange.new(-2, 0)
  676. ParticleEmitter34.Color = ColorSequence.new(Color3.new(0.866667, 0.882353, 1),Color3.new(0.866667, 0.882353, 1))
  677. ParticleEmitter34.Texture = "rbxassetid://982254017"
  678. ParticleEmitter34.Transparency = NumberSequence.new(0.75,1)
  679. ParticleEmitter34.Size = NumberSequence.new(3,7.8611102104187,9.3888902664185)
  680. ParticleEmitter34.Acceleration = Vector3.new(0, 1, 0)
  681. ParticleEmitter34.EmissionDirection = Enum.NormalId.Bottom
  682. ParticleEmitter34.Lifetime = NumberRange.new(5, 5)
  683. ParticleEmitter34.Rate = 0
  684. ParticleEmitter34.RotSpeed = NumberRange.new(20, 100)
  685. ParticleEmitter34.SpreadAngle = Vector2.new(20, 20)
  686. ParticleEmitter34.VelocitySpread = 20
  687. VehicleSeat35.Name = "DriveSeat"
  688. VehicleSeat35.Parent = Model0
  689. VehicleSeat35.CFrame = CFrame.new(-52.4240379, 4.15541077, -73.1815338, 1.00000012, -0.000406131148, -6.35758042e-05, 0.000411368906, 0.994556725, 0.10420049, 2.89529562e-05, -0.104200564, 0.994556308)
  690. VehicleSeat35.Orientation = Vector3.new(-5.98000002, 0, 0.0199999996)
  691. VehicleSeat35.Position = Vector3.new(-52.4240379, 4.15541077, -73.1815338)
  692. VehicleSeat35.Rotation = Vector3.new(-5.98000002, 0, 0.0199999996)
  693. VehicleSeat35.Transparency = 9
  694. VehicleSeat35.MaxSpeed = 0
  695. VehicleSeat35.Size = Vector3.new(1.76999998, 0.909999967, 2.29910541)
  696. VehicleSeat35.Torque = 0
  697. VehicleSeat35.Anchored = true
  698. VehicleSeat35.BottomSurface = Enum.SurfaceType.Smooth
  699. VehicleSeat35.CanCollide = false
  700. VehicleSeat35.CustomPhysicalProperties = 0.699999988, 0.300000012, 0, 1, 1
  701. VehicleSeat35.FrontParamA = -0.10000000149012
  702. VehicleSeat35.FrontParamB = 0.10000000149012
  703. VehicleSeat35.FrontSurface = Enum.SurfaceType.Motor
  704. VehicleSeat35.FrontSurfaceInput = Enum.InputType.Constant
  705. VehicleSeat35.Material = Enum.Material.SmoothPlastic
  706. VehicleSeat35.TopParamA = 0
  707. VehicleSeat35.TopParamB = 0
  708. VehicleSeat35.TopSurface = Enum.SurfaceType.Hinge
  709. VehicleSeat35.TurnSpeed = 0
  710. Model36.Name = "Misc"
  711. Model36.Parent = Model0
  712. Model37.Name = "Body"
  713. Model37.Parent = Model0
  714. MeshPart38.Name = "Dababy"
  715. MeshPart38.Parent = Model37
  716. MeshPart38.CFrame = CFrame.new(-52.5, 4.97545767, -72.5, 0.99999994, -2.60770321e-08, -5.21540642e-08, -2.60770321e-08, 0.999999702, 1.49011612e-08, -5.21540642e-08, 1.49011612e-08, 0.999999702)
  717. MeshPart38.Position = Vector3.new(-52.5, 4.97545767, -72.5)
  718. MeshPart38.Size = Vector3.new(12.1759996, 9.72000027, 17.5389996)
  719. MeshPart38.Anchored = true
  720. MeshPart38.CanCollide = false
  721. MeshPart38.Material = Enum.Material.Glass
  722. MeshPart38.TextureID = "http://www.roblox.com/asset/?id=6437816183"
  723. Sound39.Name = "Dababy"
  724. Sound39.Parent = MeshPart38
  725. Sound39.Looped = true
  726. Sound39.SoundId = "rbxassetid://4916510941"
  727. Sound39.Volume = 3
  728. EqualizerSoundEffect40.Parent = Sound39
  729. EqualizerSoundEffect40.HighGain = -20
  730. EqualizerSoundEffect40.LowGain = -10
  731. EqualizerSoundEffect40.MidGain = -80
  732. ReverbSoundEffect41.Parent = Sound39
  733. ReverbSoundEffect42.Parent = Sound39
  734. Script43.Name = "Alexa, Play Dababy"
  735. Script43.Parent = MeshPart38
  736. table.insert(cors,sandbox(Script43,function()
  737. script.Parent.Dababy:Play()
  738.  
  739. end))
  740. Model44.Name = "pewdiepie Gaming Chair"
  741. Model44.Parent = Model37
  742. MeshPart45.Name = "Chair"
  743. MeshPart45.Parent = Model44
  744. MeshPart45.CFrame = CFrame.new(-52.4433746, 6.23143196, -73.0870743, 0.99999994, 1.21071935e-08, -1.71363354e-07, -2.60770321e-08, 0.946350396, 0.323141992, -5.21540642e-08, -0.323141962, 0.946350455)
  745. MeshPart45.Orientation = Vector3.new(-18.8500004, 0, 0)
  746. MeshPart45.Position = Vector3.new(-52.4433746, 6.23143196, -73.0870743)
  747. MeshPart45.Rotation = Vector3.new(-18.8500004, 0, 0)
  748. MeshPart45.Color = Color3.new(0.105882, 0.164706, 0.207843)
  749. MeshPart45.Size = Vector3.new(3.26960111, 4.61729527, 4.01988935)
  750. MeshPart45.Anchored = true
  751. MeshPart45.BrickColor = BrickColor.new("Black")
  752. MeshPart45.Material = Enum.Material.SmoothPlastic
  753. MeshPart45.brickColor = BrickColor.new("Black")
  754. Decal46.Name = "PewDiepie "
  755. Decal46.Parent = MeshPart45
  756. Decal46.Texture = "http://www.roblox.com/asset/?id=3042885083"
  757. Decal46.Face = Enum.NormalId.Top
  758. Decal47.Name = "PewDiepie "
  759. Decal47.Parent = MeshPart45
  760. Decal47.Texture = "http://www.roblox.com/asset/?id=3042885083"
  761. Decal47.Face = Enum.NormalId.Left
  762. Decal48.Name = "PewDiepie "
  763. Decal48.Parent = MeshPart45
  764. Decal48.Texture = "http://www.roblox.com/asset/?id=3042885083"
  765. Decal48.Face = Enum.NormalId.Right
  766. Decal49.Name = "PewDiepie "
  767. Decal49.Parent = MeshPart45
  768. Decal49.Texture = "http://www.roblox.com/asset/?id=3042885083"
  769. Decal49.Face = Enum.NormalId.Top
  770. MeshPart50.Name = "Body"
  771. MeshPart50.Parent = Model44
  772. MeshPart50.CFrame = CFrame.new(-52.4448776, 3.87214184, -72.8356628, 0.99999994, -1.55978341e-10, 0, -2.60770321e-08, 0.973678112, 0.227926686, -5.21540642e-08, -0.227926686, 0.973678172)
  773. MeshPart50.Orientation = Vector3.new(-13.1800003, 0, 0)
  774. MeshPart50.Position = Vector3.new(-52.4448776, 3.87214184, -72.8356628)
  775. MeshPart50.Rotation = Vector3.new(-13.1800003, 0, 0)
  776. MeshPart50.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  777. MeshPart50.Size = Vector3.new(3.50338364, 3.59775281, 3.15158343)
  778. MeshPart50.Anchored = true
  779. MeshPart50.BrickColor = BrickColor.new("Really black")
  780. MeshPart50.Material = Enum.Material.SmoothPlastic
  781. MeshPart50.brickColor = BrickColor.new("Really black")
  782. MeshPart51.Name = "Pillow"
  783. MeshPart51.Parent = Model44
  784. MeshPart51.CFrame = CFrame.new(-52.3585968, 5.78281307, -72.0717468, 0.999996603, 0.000392563641, 0.00256798044, -0.00247994438, -0.150143862, 0.988660872, 0.00077368319, -0.988664031, -0.150142342)
  785. MeshPart51.Orientation = Vector3.new(-81.3600006, 179.020004, -179.050003)
  786. MeshPart51.Position = Vector3.new(-52.3585968, 5.78281307, -72.0717468)
  787. MeshPart51.Rotation = Vector3.new(-98.6399994, 0.150000006, -0.0199999996)
  788. MeshPart51.Color = Color3.new(0.811765, 0, 0)
  789. MeshPart51.Size = Vector3.new(1.74999952, 0.293115109, 0.847809494)
  790. MeshPart51.Anchored = true
  791. MeshPart51.BrickColor = BrickColor.new("Really red")
  792. MeshPart51.brickColor = BrickColor.new("Really red")
  793. Decal52.Name = "PewDiepie "
  794. Decal52.Parent = MeshPart51
  795. Decal52.Texture = "http://www.roblox.com/asset/?id=3042885083"
  796. Decal52.Face = Enum.NormalId.Top
  797. Decal53.Name = "PewDiepie "
  798. Decal53.Parent = MeshPart51
  799. Decal53.Texture = "http://www.roblox.com/asset/?id=3042885083"
  800. Decal53.Face = Enum.NormalId.Back
  801. Decal54.Name = "PewDiepie "
  802. Decal54.Parent = MeshPart51
  803. Decal54.Texture = "http://www.roblox.com/asset/?id=3042885083"
  804. Decal54.Face = Enum.NormalId.Top
  805. Part55.Name = "belt"
  806. Part55.Parent = Model44
  807. Part55.CFrame = CFrame.new(-52.8432884, 6.29359293, -71.916481, -0.0761699975, -0.0324770324, -0.996565759, 0.120247833, 0.99187535, -0.0415149778, 0.989817262, -0.122997083, -0.0716458112)
  808. Part55.Orientation = Vector3.new(2.38000011, -94.1100006, 6.90999985)
  809. Part55.Position = Vector3.new(-52.8432884, 6.29359293, -71.916481)
  810. Part55.Rotation = Vector3.new(149.910004, -85.25, 156.910004)
  811. Part55.Color = Color3.new(0.388235, 0.372549, 0.384314)
  812. Part55.Size = Vector3.new(0.0500000007, 2.80000114, 0.290000975)
  813. Part55.Anchored = true
  814. Part55.BottomSurface = Enum.SurfaceType.Smooth
  815. Part55.BrickColor = BrickColor.new("Dark stone grey")
  816. Part55.TopSurface = Enum.SurfaceType.Smooth
  817. Part55.brickColor = BrickColor.new("Dark stone grey")
  818. Part56.Name = "belt"
  819. Part56.Parent = Model44
  820. Part56.CFrame = CFrame.new(-51.983139, 6.29802942, -71.9270248, -1.93715096e-07, -1.58324838e-08, -0.99999994, 0.107325062, 0.994223893, 2.60770321e-08, 0.994223893, -0.10732504, 5.21540642e-08)
  821. Part56.Orientation = Vector3.new(0, -90, 6.15999985)
  822. Part56.Position = Vector3.new(-51.983139, 6.29802942, -71.9270248)
  823. Part56.Rotation = Vector3.new(-26.5699997, -89.9800034, 175.330002)
  824. Part56.Color = Color3.new(0.388235, 0.372549, 0.384314)
  825. Part56.Size = Vector3.new(0.0500000007, 2.81000113, 0.290000975)
  826. Part56.Anchored = true
  827. Part56.BottomSurface = Enum.SurfaceType.Smooth
  828. Part56.BrickColor = BrickColor.new("Dark stone grey")
  829. Part56.TopSurface = Enum.SurfaceType.Smooth
  830. Part56.brickColor = BrickColor.new("Dark stone grey")
  831. MeshPart57.Name = "Meshes/Clenched Right Fist"
  832. MeshPart57.Parent = Model44
  833. MeshPart57.CFrame = CFrame.new(-52.4659233, 6.8868084, -71.9715881, 1.66706741e-07, -0.99999994, -2.01165676e-07, 0.994223833, 1.99303031e-07, 0.107324727, -0.107324719, 1.49011612e-08, 0.994223833)
  834. MeshPart57.Orientation = Vector3.new(-6.15999985, 0, 90)
  835. MeshPart57.Position = Vector3.new(-52.4659233, 6.8868084, -71.9715881)
  836. MeshPart57.Rotation = Vector3.new(-6.15999985, 0, 90)
  837. MeshPart57.Size = Vector3.new(1.01121461, 1.15534568, 0.0500000007)
  838. MeshPart57.Anchored = true
  839. Decal58.Name = "PewDiepie "
  840. Decal58.Parent = MeshPart57
  841. Decal58.Texture = "http://www.roblox.com/asset/?id=3042885083"
  842. Decal59.Name = "PewDiepie "
  843. Decal59.Parent = MeshPart57
  844. Decal59.Texture = "http://www.roblox.com/asset/?id=3042885083"
  845. Decal59.Face = Enum.NormalId.Back
  846. Decal60.Name = "PewDiepie "
  847. Decal60.Parent = MeshPart57
  848. Decal60.Texture = "http://www.roblox.com/asset/?id=3042885083"
  849. Decal60.Face = Enum.NormalId.Right
  850. Decal61.Name = "PewDiepie "
  851. Decal61.Parent = MeshPart57
  852. Decal61.Texture = "http://www.roblox.com/asset/?id=3042885083"
  853. Decal61.Face = Enum.NormalId.Left
  854. Decal62.Name = "PewDiepie "
  855. Decal62.Parent = MeshPart57
  856. Decal62.Texture = "http://www.roblox.com/asset/?id=3042885083"
  857. Decal63.Name = "PewDiepie "
  858. Decal63.Parent = MeshPart57
  859. Decal63.Texture = "http://www.roblox.com/asset/?id=3042885083"
  860. Decal63.Face = Enum.NormalId.Bottom
  861. Decal64.Name = "PewDiepie "
  862. Decal64.Parent = MeshPart57
  863. Decal64.Texture = "http://www.roblox.com/asset/?id=3042885083"
  864. Decal64.Face = Enum.NormalId.Top
  865. ModuleScript65.Name = "A-Chassis Tune"
  866. ModuleScript65.Parent = Model0
  867. table.insert(cors,sandbox(ModuleScript65,function()
  868. --[[
  869. ___ _______ _ _______
  870. / _ |____/ ___/ / ___ ____ ___ (_)__ /__ __/
  871. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-< / /
  872. /_/ |_| \___/_//_/\_,_/___/___/_/___/ /_/
  873. SecondLogic @ Inspare
  874. Avxnturador @ Novena
  875. RikOne2 @ Enjin
  876. ]]
  877.  
  878. local Tune = {}
  879.  
  880. --[[Misc]]
  881. Tune.LoadDelay = .1 -- Delay before initializing chassis (in seconds)
  882. Tune.AutoStart = false -- Set to false if using manual ignition plugin
  883. Tune.AutoFlip = true -- Set to false if using manual flip plugin
  884.  
  885. --[[Wheel Alignment]]
  886. --[Don't physically apply alignment to wheels]
  887. --[Values are in degrees]
  888. Tune.FCamber = -12
  889. Tune.RCamber = -7
  890. Tune.FToe = 0
  891. Tune.RToe = 0
  892.  
  893. --[[Weight and CG]]
  894. Tune.Weight = 1100 -- Total weight (in pounds)
  895. Tune.WeightBSize = { -- Size of weight brick (dimmensions in studs ; larger = more stable)
  896. --[[Width]] 6.5 ,
  897. --[[Height]] 4.8 ,
  898. --[[Length]] 17 }
  899. Tune.WeightDist = 51 -- Weight distribution (0 - on rear wheels, 100 - on front wheels, can be <0 or >100)
  900. Tune.CGHeight = .7 -- Center of gravity height (studs relative to median of all wheels)
  901. Tune.WBVisible = false -- Makes the weight brick visible
  902.  
  903. --Unsprung Weight
  904. Tune.FWheelDensity = .1 -- Front Wheel Density
  905. Tune.RWheelDensity = .1 -- Rear Wheel Density
  906. Tune.FWLgcyDensity = 1 -- Front Wheel Density [PGS OFF]
  907. Tune.RWLgcyDensity = 1 -- Rear Wheel Density [PGS OFF]
  908.  
  909. Tune.AxleSize = 2 -- Size of structural members (larger = MORE STABLE / carry more weight)
  910. Tune.AxleDensity = .1 -- Density of structural members
  911.  
  912. --[[Susupension]]
  913. Tune.SusEnabled = true -- Sets whether suspension is enabled for PGS
  914.  
  915. --Front Suspension
  916. Tune.FSusStiffness = 25000 -- Spring Force
  917. Tune.FSusDamping = 400 -- Spring Dampening
  918. Tune.FAntiRoll = 400 -- Anti-Roll (Gyro Dampening)
  919.  
  920. Tune.FSusLength = 1.9 -- Resting Suspension length (in studs)
  921. Tune.FPreCompress = .1 -- Pre-compression adds resting length force
  922. Tune.FExtensionLim = .4 -- Max Extension Travel (in studs)
  923. Tune.FCompressLim = .2 -- Max Compression Travel (in studs)
  924. Tune.FSusAngle = 75 -- Suspension Angle (degrees from horizontal)
  925.  
  926. Tune.FWsBoneLen = 5 -- Wishbone Length
  927. Tune.FWsBoneAngle = 2 -- Wishbone angle (degrees from horizontal)
  928. Tune.FAnchorOffset = { -- Suspension anchor point offset (relative to center of wheel)
  929. --[[Lateral]] -.4 , -- positive = outward
  930. --[[Vertical]] -.5 , -- positive = upward
  931. --[[Forward]] 0 } -- positive = forward
  932.  
  933. --Rear Suspension
  934. Tune.RSusStiffness = 20000 -- Spring Force
  935. Tune.RSusDamping = 400 -- Spring Dampening
  936. Tune.RAntiRoll = 400 -- Anti-Roll (Gyro Dampening)
  937.  
  938. Tune.RSusLength = 2.1 -- Resting Suspension length (in studs)
  939. Tune.RPreCompress = .1 -- Pre-compression adds resting length force
  940. Tune.RExtensionLim = .4 -- Max Extension Travel (in studs)
  941. Tune.RCompressLim = .2 -- Max Compression Travel (in studs)
  942. Tune.RSusAngle = 80 -- Suspension Angle (degrees from horizontal)
  943.  
  944. Tune.RWsBoneLen = 5 -- Wishbone Length
  945. Tune.RWsBoneAngle = 2 -- Wishbone angle (degrees from horizontal)
  946. Tune.RAnchorOffset = { -- Suspension anchor point offset (relative to center of wheel)
  947. --[[Lateral]] -.4 , -- positive = outward
  948. --[[Vertical]] -.5 , -- positive = upward
  949. --[[Forward]] 0 } -- positive = forward
  950.  
  951. --Aesthetics (PGS ONLY)
  952. Tune.SusVisible = false -- Spring Visible
  953. Tune.WsBVisible = false -- Wishbone Visible
  954. Tune.SusRadius = .2 -- Suspension Coil Radius
  955. Tune.SusThickness = .1 -- Suspension Coil Thickness
  956. Tune.SusColor = "Black" -- Suspension Color [BrickColor]
  957. Tune.SusCoilCount = 8 -- Suspension Coil Count
  958. Tune.WsColor = "Black" -- Wishbone Color [BrickColor]
  959. Tune.WsThickness = .1 -- Wishbone Rod Thickness
  960.  
  961. --[[Wheel Stabilizer Gyro]]
  962. Tune.FGyroDamp = 100 -- Front Wheel Non-Axial Dampening
  963. Tune.RGyroDamp = 100 -- Rear Wheel Non-Axial Dampening
  964.  
  965. --[[Steering]]
  966. Tune.SteerInner = 70 -- Inner wheel steering angle (in degrees)
  967. Tune.SteerOuter = 70 -- Outer wheel steering angle (in degrees)
  968. Tune.SteerSpeed = .5 -- Steering increment per tick (in degrees)
  969. Tune.ReturnSpeed = .5 -- Steering increment per tick (in degrees)
  970. Tune.SteerDecay = 320 -- Speed of gradient cutoff (in SPS)
  971. Tune.MinSteer = 10 -- Minimum steering at max steer decay (in percent)
  972. Tune.MSteerExp = 1 -- Mouse steering exponential degree
  973.  
  974. --Steer Gyro Tuning
  975. Tune.SteerD = 1200 -- Steering Dampening
  976. Tune.SteerMaxTorque = 50000 -- Steering Force
  977. Tune.SteerP = 7000 -- Steering Aggressiveness
  978.  
  979. --[[Engine]]
  980.  
  981. -- [TORQUE CURVE VISUAL]
  982. -- https://www.desmos.com/calculator/nap6stpjqf
  983. -- Use sliders to manipulate values
  984. -- Edit everything as if your car is NATURALLY aspirated, or as if it lacks a turbo.
  985.  
  986. Tune.Horsepower = 250
  987. Tune.IdleRPM = 700
  988. Tune.PeakRPM = 7000
  989. Tune.Redline = 8000
  990. Tune.EqPoint = 5252
  991. Tune.PeakSharpness = 20
  992. Tune.CurveMult = 0.2
  993.  
  994. Tune.InclineComp = 1.7 -- Torque compensation multiplier for inclines (applies gradient from 0-90 degrees)
  995.  
  996. --Turbo Settings
  997. Tune.Aspiration = "Single" --[[
  998. [Aspiration]
  999. "Natural" : N/A, Naturally aspirated engine
  1000. "Single" : Single turbocharger
  1001. "Double" : Twin turbocharger ]]
  1002.  
  1003. Tune.Boost = 18 --Max PSI per turbo (If you have two turbos and this is 15, the PSI will be 30)
  1004. Tune.TurboSize = 80 --Turbo size; the bigger it is, the more lag it has.
  1005. Tune.CompressRatio = 9 --The compression ratio (look it up)
  1006.  
  1007. --Misc
  1008. Tune.RevAccel = 150 -- RPM acceleration when clutch is off
  1009. Tune.RevDecay = 75 -- RPM decay when clutch is off
  1010. Tune.RevBounce = 500 -- RPM kickback from redline
  1011. Tune.IdleThrottle = 3 -- Percent throttle at idle
  1012. Tune.ClutchTol = 500 -- Clutch engagement threshold (higher = faster response, lower = more stable RPM)
  1013.  
  1014. --[[Drivetrain]]
  1015. Tune.Config = "RWD" --"FWD" , "RWD" , "AWD"
  1016.  
  1017. --Differential Settings
  1018. Tune.FDiffSlipThres = 50 -- 1 - 100% (Max threshold of applying full lock determined by deviation from avg speed)
  1019. Tune.FDiffLockThres = 0 -- 0 - 100% (0 - Bias toward slower wheel, 100 - Bias toward faster wheel)
  1020. Tune.RDiffSlipThres = 100 -- 1 - 100%
  1021. Tune.RDiffLockThres = 0 -- 0 - 100%
  1022. Tune.CDiffSlipThres = 1 -- 1 - 100% [AWD Only]
  1023. Tune.CDiffLockThres = 0 -- 0 - 100% [AWD Only]
  1024.  
  1025. --Traction Control Settings
  1026. Tune.TCSEnabled = false -- Implements TCS
  1027. Tune.TCSThreshold = 20 -- Slip speed allowed before TCS starts working (in SPS)
  1028. Tune.TCSGradient = 20 -- Slip speed gradient between 0 to max reduction (in SPS)
  1029. Tune.TCSLimit = 10 -- Minimum amount of torque at max reduction (in percent)
  1030.  
  1031. --[[Transmission]]
  1032. Tune.TransModes = {"Semi"} --[[
  1033. [Modes]
  1034. "Auto" : Automatic shifting
  1035. "Semi" : Clutchless manual shifting, dual clutch transmission
  1036. "Manual" : Manual shifting with clutch
  1037.  
  1038. >Include within brackets
  1039. eg: {"Semi"} or {"Auto", "Manual"}
  1040. >First mode is default mode ]]
  1041.  
  1042. --Automatic Settings
  1043. Tune.AutoShiftMode = "RPM" --[[
  1044. [Modes]
  1045. "Speed" : Shifts based on wheel speed
  1046. "RPM" : Shifts based on RPM ]]
  1047. Tune.AutoUpThresh = -200 -- Automatic upshift point (relative to peak RPM, positive = Over-rev)
  1048. Tune.AutoDownThresh = 1400 -- Automatic downshift point (relative to peak RPM, positive = Under-rev)
  1049. Tune.ShiftTime = .25 -- The time delay in which you initiate a shift and the car changes gear
  1050.  
  1051. --Gear Ratios
  1052. Tune.FinalDrive = 3.21 -- [TRANSMISSION CALCULATIONS FOR NERDS]
  1053. Tune.Ratios = { -- SPEED [SPS] = (Wheel diameter(studs) * pi(3.14) * RPM) / (60 * Gear Ratio * Final Drive * Multiplier)
  1054. --[[Reverse]] 5.000 ,-- WHEEL TORQUE = Engine Torque * Gear Ratio * Final Drive * Multiplier
  1055. --[[Neutral]] 0 ,
  1056. --[[ 1 ]] 3.519 ,
  1057. --[[ 2 ]] 2.320 ,
  1058. --[[ 3 ]] 1.700 ,
  1059. --[[ 4 ]] 1.400 ,
  1060. --[[ 5 ]] 0.907 ,
  1061. }
  1062. Tune.FDMult = 1.3 -- Ratio multiplier (Change this value instead of FinalDrive if car is struggling with torque ; Default = 1)
  1063.  
  1064. --[[Brakes]]
  1065. Tune.ABSEnabled = false -- Implements ABS
  1066. Tune.ABSThreshold = 20 -- Slip speed allowed before ABS starts working (in SPS)
  1067.  
  1068. Tune.FBrakeForce = 1200 -- Front brake force
  1069. Tune.RBrakeForce = 1600 -- Rear brake force
  1070. Tune.PBrakeForce = 6000 -- Handbrake force
  1071.  
  1072. Tune.FLgcyBForce = 15000 -- Front brake force [PGS OFF]
  1073. Tune.RLgcyBForce = 10000 -- Rear brake force [PGS OFF]
  1074. Tune.LgcyPBForce = 25000 -- Handbrake force [PGS OFF]
  1075.  
  1076. --[[[Default Controls]]
  1077. --Peripheral Deadzones
  1078. Tune.Peripherals = {
  1079. MSteerWidth = 67 , -- Mouse steering control width (0 - 100% of screen width)
  1080. MSteerDZone = 10 , -- Mouse steering deadzone (0 - 100%)
  1081.  
  1082. ControlLDZone = 5 , -- Controller steering L-deadzone (0 - 100%)
  1083. ControlRDZone = 5 , -- Controller steering R-deadzone (0 - 100%)
  1084. }
  1085.  
  1086. --Control Mapping
  1087. Tune.Controls = {
  1088.  
  1089. --Keyboard Controls
  1090. --Mode Toggles
  1091. ToggleTCS = Enum.KeyCode.T ,
  1092. ToggleABS = Enum.KeyCode.Y ,
  1093. ToggleTransMode = Enum.KeyCode.M ,
  1094. ToggleMouseDrive = Enum.KeyCode.R ,
  1095.  
  1096. --Primary Controls
  1097. Throttle = Enum.KeyCode.Up ,
  1098. Brake = Enum.KeyCode.Down ,
  1099. SteerLeft = Enum.KeyCode.Left ,
  1100. SteerRight = Enum.KeyCode.Right ,
  1101.  
  1102. --Secondary Controls
  1103. Throttle2 = Enum.KeyCode.W ,
  1104. Brake2 = Enum.KeyCode.S ,
  1105. SteerLeft2 = Enum.KeyCode.A ,
  1106. SteerRight2 = Enum.KeyCode.D ,
  1107.  
  1108. --Manual Transmission
  1109. ShiftUp = Enum.KeyCode.E ,
  1110. ShiftDown = Enum.KeyCode.Q ,
  1111. Clutch = Enum.KeyCode.LeftShift ,
  1112.  
  1113. --Handbrake
  1114. PBrake = Enum.KeyCode.LeftShift ,
  1115.  
  1116. --Mouse Controls
  1117. MouseThrottle = Enum.UserInputType.MouseButton1 ,
  1118. MouseBrake = Enum.UserInputType.MouseButton2 ,
  1119. MouseClutch = Enum.KeyCode.W ,
  1120. MouseShiftUp = Enum.KeyCode.E ,
  1121. MouseShiftDown = Enum.KeyCode.Q ,
  1122. MousePBrake = Enum.KeyCode.LeftShift ,
  1123.  
  1124. --Controller Mapping
  1125. ContlrThrottle = Enum.KeyCode.ButtonR2 ,
  1126. ContlrBrake = Enum.KeyCode.ButtonL2 ,
  1127. ContlrSteer = Enum.KeyCode.Thumbstick1 ,
  1128. ContlrShiftUp = Enum.KeyCode.ButtonY ,
  1129. ContlrShiftDown = Enum.KeyCode.ButtonX ,
  1130. ContlrClutch = Enum.KeyCode.ButtonR1 ,
  1131. ContlrPBrake = Enum.KeyCode.ButtonL1 ,
  1132. ContlrToggleTMode = Enum.KeyCode.ButtonB ,
  1133. ContlrToggleTCS = Enum.KeyCode.DPadDown ,
  1134. ContlrToggleABS = Enum.KeyCode.ButtonL3 ,
  1135. }
  1136.  
  1137. --[[Standardized Values: Don't touch unless needed]]
  1138.  
  1139. --[WEIGHT // Cubic stud : pounds ratio]
  1140. Tune.WeightScaling = 1/50 --Default = 1/50 (1 cubic stud = 50 lbs)
  1141. Tune.LegacyScaling = 1/10 --Default = 1/10 (1 cubic stud = 10 lbs) [PGS OFF]
  1142. --[ENGINE // Caching]
  1143. Tune.CurveCache = true --Default = true (Caches the engine and boost curves)
  1144. Tune.CacheInc = 100 --Default = 100 (How many points the curve will have.)
  1145. --[[Examples: 1 = every RPM increment [will freeze your computer at low settings like this],
  1146. 100 = default and recommended,
  1147. 1000 or more = death ]]
  1148.  
  1149. return Tune
  1150. end))
  1151. Script66.Name = "Initialize"
  1152. Script66.Parent = ModuleScript65
  1153. table.insert(cors,sandbox(Script66,function()
  1154. --[[
  1155. ___ _______ _
  1156. / _ |____/ ___/ / ___ ____ ___ (_)__
  1157. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
  1158. /_/ |_| \___/_//_/\_,_/___/___/_/___/
  1159. SecondLogic @ Inspare
  1160. ]]
  1161.  
  1162. --[[START]]
  1163.  
  1164. _BuildVersion = require(script.Parent.README)
  1165.  
  1166. --[[Weld functions]]
  1167.  
  1168. local JS = game:GetService("JointsService")
  1169. local PGS_ON = workspace:PGSIsEnabled()
  1170.  
  1171. function MakeWeld(x,y,type,s)
  1172. if type==nil then type="Weld" end
  1173. local W=Instance.new(type,JS)
  1174. W.Part0=x W.Part1=y
  1175. W.C0=x.CFrame:inverse()*x.CFrame
  1176. W.C1=y.CFrame:inverse()*x.CFrame
  1177. if type=="Motor" and s~=nil then
  1178. W.MaxVelocity=s
  1179. end
  1180. return W
  1181. end
  1182.  
  1183. function ModelWeld(a,b)
  1184. if a:IsA("BasePart") then
  1185. MakeWeld(b,a,"Weld")
  1186. elseif a:IsA("Model") then
  1187. for i,v in pairs(a:GetChildren()) do
  1188. ModelWeld(v,b)
  1189. end
  1190. end
  1191. end
  1192.  
  1193. function UnAnchor(a)
  1194. if a:IsA("BasePart") then a.Anchored=false end for i,v in pairs(a:GetChildren()) do UnAnchor(v) end
  1195. end
  1196.  
  1197.  
  1198.  
  1199. --[[Initialize]]
  1200.  
  1201. script.Parent:WaitForChild("A-Chassis Interface")
  1202. script.Parent:WaitForChild("Plugins")
  1203. script.Parent:WaitForChild("README")
  1204.  
  1205. local car=script.Parent.Parent
  1206. local _Tune=require(script.Parent)
  1207.  
  1208. wait(_Tune.LoadDelay)
  1209.  
  1210. --Weight Scaling
  1211. local weightScaling = _Tune.WeightScaling
  1212. if not workspace:PGSIsEnabled() then
  1213. weightScaling = _Tune.LegacyScaling
  1214. end
  1215.  
  1216. local Drive=car.Wheels:GetChildren()
  1217.  
  1218. --Remove Existing Mass
  1219. function DReduce(p)
  1220. for i,v in pairs(p:GetChildren())do
  1221. if v:IsA("BasePart") then
  1222. if v.CustomPhysicalProperties == nil then v.CustomPhysicalProperties = PhysicalProperties.new(v.Material) end
  1223. v.CustomPhysicalProperties = PhysicalProperties.new(
  1224. 0,
  1225. v.CustomPhysicalProperties.Friction,
  1226. v.CustomPhysicalProperties.Elasticity,
  1227. v.CustomPhysicalProperties.FrictionWeight,
  1228. v.CustomPhysicalProperties.ElasticityWeight
  1229. )
  1230. end
  1231. DReduce(v)
  1232. end
  1233. end
  1234. DReduce(car)
  1235.  
  1236.  
  1237.  
  1238. --[[Wheel Configuration]]
  1239.  
  1240. --Store Reference Orientation Function
  1241. function getParts(model,t,a)
  1242. for i,v in pairs(model:GetChildren()) do
  1243. if v:IsA("BasePart") then table.insert(t,{v,a.CFrame:toObjectSpace(v.CFrame)})
  1244. elseif v:IsA("Model") then getParts(v,t,a)
  1245. end
  1246. end
  1247. end
  1248.  
  1249. --PGS/Legacy
  1250. local fDensity = _Tune.FWheelDensity
  1251. local rDensity = _Tune.RWheelDensity
  1252. if not PGS_ON then
  1253. fDensity = _Tune.FWLgcyDensity
  1254. rDensity = _Tune.RWLgcyDensity
  1255. end
  1256.  
  1257. local fDistX=_Tune.FWsBoneLen*math.cos(math.rad(_Tune.FWsBoneAngle))
  1258. local fDistY=_Tune.FWsBoneLen*math.sin(math.rad(_Tune.FWsBoneAngle))
  1259. local rDistX=_Tune.RWsBoneLen*math.cos(math.rad(_Tune.RWsBoneAngle))
  1260. local rDistY=_Tune.RWsBoneLen*math.sin(math.rad(_Tune.RWsBoneAngle))
  1261.  
  1262. local fSLX=_Tune.FSusLength*math.cos(math.rad(_Tune.FSusAngle))
  1263. local fSLY=_Tune.FSusLength*math.sin(math.rad(_Tune.FSusAngle))
  1264. local rSLX=_Tune.RSusLength*math.cos(math.rad(_Tune.RSusAngle))
  1265. local rSLY=_Tune.RSusLength*math.sin(math.rad(_Tune.RSusAngle))
  1266.  
  1267. for _,v in pairs(Drive) do
  1268. --Apply Wheel Density
  1269. if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
  1270. if v:IsA("BasePart") then
  1271. if v.CustomPhysicalProperties == nil then v.CustomPhysicalProperties = PhysicalProperties.new(v.Material) end
  1272. v.CustomPhysicalProperties = PhysicalProperties.new(
  1273. fDensity,
  1274. v.CustomPhysicalProperties.Friction,
  1275. v.CustomPhysicalProperties.Elasticity,
  1276. v.CustomPhysicalProperties.FrictionWeight,
  1277. v.CustomPhysicalProperties.ElasticityWeight
  1278. )
  1279. end
  1280. else
  1281. if v:IsA("BasePart") then
  1282. if v.CustomPhysicalProperties == nil then v.CustomPhysicalProperties = PhysicalProperties.new(v.Material) end
  1283. v.CustomPhysicalProperties = PhysicalProperties.new(
  1284. rDensity,
  1285. v.CustomPhysicalProperties.Friction,
  1286. v.CustomPhysicalProperties.Elasticity,
  1287. v.CustomPhysicalProperties.FrictionWeight,
  1288. v.CustomPhysicalProperties.ElasticityWeight
  1289. )
  1290. end
  1291. end
  1292.  
  1293. --Resurface Wheels
  1294. for _,a in pairs({"Top","Bottom","Left","Right","Front","Back"}) do
  1295. v[a.."Surface"]=Enum.SurfaceType.SmoothNoOutlines
  1296. end
  1297.  
  1298. --Store Axle-Anchored/Suspension-Anchored Part Orientation
  1299. local WParts = {}
  1300.  
  1301. local tPos = v.Position-car.DriveSeat.Position
  1302. if v.Name=="FL" or v.Name=="RL" then
  1303. v.CFrame = car.DriveSeat.CFrame*CFrame.Angles(math.rad(90),0,math.rad(90))
  1304. else
  1305. v.CFrame = car.DriveSeat.CFrame*CFrame.Angles(math.rad(90),0,math.rad(-90))
  1306. end
  1307. v.CFrame = v.CFrame+tPos
  1308.  
  1309. if v:FindFirstChild("Parts")~=nil then
  1310. getParts(v.Parts,WParts,v)
  1311. end
  1312. if v:FindFirstChild("Fixed")~=nil then
  1313. getParts(v.Fixed,WParts,v)
  1314. end
  1315.  
  1316. --Align Wheels
  1317. if v.Name=="FL" or v.Name=="FR" then
  1318. v.CFrame = v.CFrame*CFrame.Angles(math.rad(_Tune.FCamber),0,0)
  1319. if v.Name=="FL" then
  1320. v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(_Tune.FToe))
  1321. else
  1322. v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(-_Tune.FToe))
  1323. end
  1324. elseif v.Name=="RL" or v.Name=="RR" then
  1325. v.CFrame = v.CFrame*CFrame.Angles(math.rad(_Tune.RCamber),0,0)
  1326. if v.Name=="RL" then
  1327. v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(_Tune.RToe))
  1328. else
  1329. v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(-_Tune.RToe))
  1330. end
  1331. end
  1332.  
  1333. --Re-orient Axle-Anchored/Suspension-Anchored Parts
  1334. for _,a in pairs(WParts) do
  1335. a[1].CFrame=v.CFrame:toWorldSpace(a[2])
  1336. end
  1337.  
  1338.  
  1339.  
  1340. --[[Chassis Assembly]]
  1341. --Create Steering Axle
  1342. local arm=Instance.new("Part",v)
  1343. arm.Name="Arm"
  1344. arm.Anchored=true
  1345. arm.CanCollide=false
  1346. arm.FormFactor=Enum.FormFactor.Custom
  1347. arm.Size=Vector3.new(_Tune.AxleSize,_Tune.AxleSize,_Tune.AxleSize)
  1348. arm.CFrame=(v.CFrame*CFrame.new(0,_Tune.StAxisOffset,0))*CFrame.Angles(-math.pi/2,-math.pi/2,0)
  1349. arm.CustomPhysicalProperties = PhysicalProperties.new(_Tune.AxleDensity,0,0,100,100)
  1350. arm.TopSurface=Enum.SurfaceType.Smooth
  1351. arm.BottomSurface=Enum.SurfaceType.Smooth
  1352. arm.Transparency=1
  1353.  
  1354. --Create Wheel Spindle
  1355. local base=arm:Clone()
  1356. base.Parent=v
  1357. base.Name="Base"
  1358. base.CFrame=base.CFrame*CFrame.new(0,_Tune.AxleSize,0)
  1359. base.BottomSurface=Enum.SurfaceType.Hinge
  1360.  
  1361. --Create Steering Anchor
  1362. local axle=arm:Clone()
  1363. axle.Parent=v
  1364. axle.Name="Axle"
  1365. 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)
  1366. axle.BackSurface=Enum.SurfaceType.Hinge
  1367.  
  1368. if v.Name=="F" or v.Name=="R" then
  1369. local axle2=arm:Clone()
  1370. axle2.Parent=v
  1371. axle2.Name="Axle"
  1372. 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)
  1373. axle2.BackSurface=Enum.SurfaceType.Hinge
  1374. MakeWeld(arm,axle2)
  1375. end
  1376.  
  1377. --Create Suspension
  1378. if PGS_ON and _Tune.SusEnabled then
  1379. local sa=arm:Clone()
  1380. sa.Parent=v
  1381. sa.Name="#SA"
  1382. if v.Name == "FL" or v.Name=="FR" or v.Name =="F" then
  1383. local aOff = _Tune.FAnchorOffset
  1384. sa.CFrame=v.CFrame*CFrame.new(_Tune.AxleSize/2,-fDistX,-fDistY)*CFrame.new(aOff[3],aOff[1],-aOff[2])*CFrame.Angles(-math.pi/2,-math.pi/2,0)
  1385. else
  1386. local aOff = _Tune.RAnchorOffset
  1387. sa.CFrame=v.CFrame*CFrame.new(_Tune.AxleSize/2,-rDistX,-rDistY)*CFrame.new(aOff[3],aOff[1],-aOff[2])*CFrame.Angles(-math.pi/2,-math.pi/2,0)
  1388. end
  1389.  
  1390. local sb=sa:Clone()
  1391. sb.Parent=v
  1392. sb.Name="#SB"
  1393. sb.CFrame=sa.CFrame*CFrame.new(0,0,_Tune.AxleSize)
  1394.  
  1395. sb.FrontSurface=Enum.SurfaceType.Hinge
  1396.  
  1397. local g = Instance.new("BodyGyro",sb)
  1398. g.Name = "Stabilizer"
  1399. g.MaxTorque = Vector3.new(0,0,1)
  1400. g.P = 0
  1401.  
  1402. local sf1 = Instance.new("Attachment",sa)
  1403. sf1.Name = "SAtt"
  1404.  
  1405. local sf2 = sf1:Clone()
  1406. sf2.Parent = sb
  1407.  
  1408.  
  1409. if v.Name == "FL" or v.Name == "FR" or v.Name == "F" then
  1410. sf1.Position = Vector3.new(fDistX-fSLX,-fDistY+fSLY,_Tune.AxleSize/2)
  1411. sf2.Position = Vector3.new(fDistX,-fDistY,-_Tune.AxleSize/2)
  1412. elseif v.Name == "RL" or v.Name=="RR" or v.Name == "R" then
  1413. sf1.Position = Vector3.new(rDistX-rSLX,-rDistY+rSLY,_Tune.AxleSize/2)
  1414. sf2.Position = Vector3.new(rDistX,-rDistY,-_Tune.AxleSize/2)
  1415. end
  1416.  
  1417. sb:MakeJoints()
  1418.  
  1419. local sp = Instance.new("SpringConstraint",v)
  1420. sp.Name = "Spring"
  1421. sp.Attachment0 = sf1
  1422. sp.Attachment1 = sf2
  1423. sp.LimitsEnabled = true
  1424.  
  1425. sp.Visible=_Tune.SusVisible
  1426. sp.Radius=_Tune.SusRadius
  1427. sp.Thickness=_Tune.SusThickness
  1428. sp.Color=BrickColor.new(_Tune.SusColor)
  1429. sp.Coils=_Tune.SusCoilCount
  1430.  
  1431. if v.Name == "FL" or v.Name=="FR" or v.Name =="F" then
  1432. g.D = _Tune.FAntiRoll
  1433. sp.Damping = _Tune.FSusDamping
  1434. sp.Stiffness = _Tune.FSusStiffness
  1435. sp.FreeLength = _Tune.FSusLength+_Tune.FPreCompress
  1436. sp.MaxLength = _Tune.FSusLength+_Tune.FExtensionLim
  1437. sp.MinLength = _Tune.FSusLength-_Tune.FCompressLim
  1438. else
  1439. g.D = _Tune.RAntiRoll
  1440. sp.Damping = _Tune.RSusDamping
  1441. sp.Stiffness = _Tune.RSusStiffness
  1442. sp.FreeLength = _Tune.RSusLength+_Tune.RPreCompress
  1443. sp.MaxLength = _Tune.RSusLength+_Tune.RExtensionLim
  1444. sp.MinLength = _Tune.RSusLength-_Tune.RCompressLim
  1445. end
  1446.  
  1447. MakeWeld(car.DriveSeat,sa)
  1448. MakeWeld(sb,base)
  1449. else
  1450. MakeWeld(car.DriveSeat,base)
  1451. end
  1452.  
  1453. --Lock Rear Steering Axle
  1454. if v.Name == "RL" or v.Name == "RR" or v.Name=="R" then
  1455. MakeWeld(base,axle)
  1456. end
  1457.  
  1458. --Weld Assembly
  1459. if v.Parent.Name == "RL" or v.Parent.Name == "RR" or v.Name=="R" then
  1460. MakeWeld(car.DriveSeat,arm)
  1461. end
  1462.  
  1463. MakeWeld(arm,axle)
  1464.  
  1465. arm:MakeJoints()
  1466. axle:MakeJoints()
  1467.  
  1468. --Weld Miscelaneous Parts
  1469. if v:FindFirstChild("SuspensionFixed")~=nil then
  1470. ModelWeld(v.SuspensionFixed,car.DriveSeat)
  1471. end
  1472. if v:FindFirstChild("WheelFixed")~=nil then
  1473. ModelWeld(v.WheelFixed,axle)
  1474. end
  1475. if v:FindFirstChild("Fixed")~=nil then
  1476. ModelWeld(v.Fixed,arm)
  1477. end
  1478.  
  1479. --Weld Wheel Parts
  1480. if v:FindFirstChild("Parts")~=nil then
  1481. ModelWeld(v.Parts,v)
  1482. end
  1483.  
  1484. --Add Steering Gyro
  1485. if v:FindFirstChild("Steer") then
  1486. v:FindFirstChild("Steer"):Destroy()
  1487. end
  1488.  
  1489. if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
  1490. local steer=Instance.new("BodyGyro",arm)
  1491. steer.Name="Steer"
  1492. steer.P=_Tune.SteerP
  1493. steer.D=_Tune.SteerD
  1494. steer.MaxTorque=Vector3.new(0,_Tune.SteerMaxTorque,0)
  1495. steer.cframe=v.CFrame*CFrame.Angles(0,-math.pi/2,0)
  1496. end
  1497.  
  1498. --Add Stabilization Gyro
  1499. local gyro=Instance.new("BodyGyro",v)
  1500. gyro.Name="Stabilizer"
  1501. gyro.MaxTorque=Vector3.new(1,0,1)
  1502. gyro.P=0
  1503. if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
  1504. gyro.D=_Tune.FGyroDamp
  1505. else
  1506. gyro.D=_Tune.RGyroDamp
  1507. end
  1508.  
  1509. --Add Rotational BodyMover
  1510. local AV=Instance.new("BodyAngularVelocity",v)
  1511. AV.Name="#AV"
  1512. AV.angularvelocity=Vector3.new(0,0,0)
  1513. AV.maxTorque=Vector3.new(_Tune.PBrakeForce,0,_Tune.PBrakeForce)
  1514. AV.P=1e9
  1515. end
  1516.  
  1517.  
  1518.  
  1519. --[[Vehicle Weight]]
  1520. --Determine Current Mass
  1521. local mass=0
  1522.  
  1523. function getMass(p)
  1524. for i,v in pairs(p:GetChildren())do
  1525. if v:IsA("BasePart") then
  1526. mass=mass+v:GetMass()
  1527. end
  1528. getMass(v)
  1529. end
  1530. end
  1531. getMass(car)
  1532.  
  1533. --Apply Vehicle Weight
  1534. if mass<_Tune.Weight*weightScaling then
  1535. --Calculate Weight Distribution
  1536. local centerF = Vector3.new()
  1537. local centerR = Vector3.new()
  1538. local countF = 0
  1539. local countR = 0
  1540.  
  1541. for i,v in pairs(Drive) do
  1542. if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
  1543. centerF = centerF+v.CFrame.p
  1544. countF = countF+1
  1545. else
  1546. centerR = centerR+v.CFrame.p
  1547. countR = countR+1
  1548. end
  1549. end
  1550. centerF = centerF/countF
  1551. centerR = centerR/countR
  1552. local center = centerR:Lerp(centerF, _Tune.WeightDist/100)
  1553.  
  1554. --Create Weight Brick
  1555. local weightB = Instance.new("Part",car.Body)
  1556. weightB.Name = "#Weight"
  1557. weightB.Anchored = true
  1558. weightB.CanCollide = false
  1559. weightB.BrickColor = BrickColor.new("Really black")
  1560. weightB.TopSurface = Enum.SurfaceType.Smooth
  1561. weightB.BottomSurface = Enum.SurfaceType.Smooth
  1562. if _Tune.WBVisible then
  1563. weightB.Transparency = .75
  1564. else
  1565. weightB.Transparency = 1
  1566. end
  1567. weightB.Size = Vector3.new(_Tune.WeightBSize[1],_Tune.WeightBSize[2],_Tune.WeightBSize[3])
  1568. weightB.CustomPhysicalProperties = PhysicalProperties.new(((_Tune.Weight*weightScaling)-mass)/(weightB.Size.x*weightB.Size.y*weightB.Size.z),0,0,0,0)
  1569. weightB.CFrame=(car.DriveSeat.CFrame-car.DriveSeat.Position+center)*CFrame.new(0,_Tune.CGHeight,0)
  1570. else
  1571. --Existing Weight Is Too Massive
  1572. warn( "\n\t [AC".._BuildVersion.."]: Mass too high for specified weight."
  1573. .."\n\t Target Mass:\t"..(math.ceil(_Tune.Weight*weightScaling*100)/100)
  1574. .."\n\t Current Mass:\t"..(math.ceil(mass*100)/100)
  1575. .."\n\t Reduce part size or axle density to achieve desired weight.")
  1576. end
  1577.  
  1578. local flipG = Instance.new("BodyGyro",car.DriveSeat)
  1579. flipG.Name = "Flip"
  1580. flipG.D = 0
  1581. flipG.MaxTorque = Vector3.new(0,0,0)
  1582. flipG.P = 0
  1583.  
  1584.  
  1585.  
  1586. --[[Finalize Chassis]]
  1587. --Misc Weld
  1588. wait()
  1589. for i,v in pairs(script:GetChildren()) do
  1590. if v:IsA("ModuleScript") then
  1591. require(v)
  1592. end
  1593. end
  1594.  
  1595. --Weld Body
  1596. wait()
  1597. ModelWeld(car.Body,car.DriveSeat)
  1598.  
  1599. --Unanchor
  1600. wait()
  1601. UnAnchor(car)
  1602.  
  1603. --[[Manage Plugins]]
  1604.  
  1605. script.Parent["A-Chassis Interface"].Car.Value=car
  1606. for i,v in pairs(script.Parent.Plugins:GetChildren()) do
  1607. for _,a in pairs(v:GetChildren()) do
  1608. if a:IsA("RemoteEvent") or a:IsA("RemoteFunction") then
  1609. a.Parent=car
  1610. for _,b in pairs(a:GetChildren()) do
  1611. if b:IsA("Script") then b.Disabled=false end
  1612. end
  1613. end
  1614. end
  1615. v.Parent = script.Parent["A-Chassis Interface"]
  1616. end
  1617. script.Parent.Plugins:Destroy()
  1618.  
  1619.  
  1620.  
  1621. --[[Remove Character Weight]]
  1622. --Get Seats
  1623. local Seats = {}
  1624. function getSeats(p)
  1625. for i,v in pairs(p:GetChildren()) do
  1626. if v:IsA("VehicleSeat") or v:IsA("Seat") then
  1627. local seat = {}
  1628. seat.Seat = v
  1629. seat.Parts = {}
  1630. table.insert(Seats,seat)
  1631. end
  1632. getSeats(v)
  1633. end
  1634. end
  1635. getSeats(car)
  1636.  
  1637. --Store Physical Properties/Remove Mass Function
  1638. function getPProperties(mod,t)
  1639. for i,v in pairs(mod:GetChildren()) do
  1640. if v:IsA("BasePart") then
  1641. if v.CustomPhysicalProperties == nil then v.CustomPhysicalProperties = PhysicalProperties.new(v.Material) end
  1642. table.insert(t,{v,v.CustomPhysicalProperties})
  1643. v.CustomPhysicalProperties = PhysicalProperties.new(
  1644. 0,
  1645. v.CustomPhysicalProperties.Friction,
  1646. v.CustomPhysicalProperties.Elasticity,
  1647. v.CustomPhysicalProperties.FrictionWeight,
  1648. v.CustomPhysicalProperties.ElasticityWeight
  1649. )
  1650. end
  1651. getPProperties(v,t)
  1652. end
  1653. end
  1654.  
  1655. --Apply Seat Handler
  1656. for i,v in pairs(Seats) do
  1657. --Sit Handler
  1658. v.Seat.ChildAdded:connect(function(child)
  1659. if child.Name=="SeatWeld" and child:IsA("Weld") and child.Part1~=nil and child.Part1.Parent ~= workspace and not child.Part1.Parent:IsDescendantOf(car) then
  1660. v.Parts = {}
  1661. getPProperties(child.Part1.Parent,v.Parts)
  1662. end
  1663. end)
  1664.  
  1665. --Leave Handler
  1666. v.Seat.ChildRemoved:connect(function(child)
  1667. if child.Name=="SeatWeld" and child:IsA("Weld") then
  1668. for i,v in pairs(v.Parts) do
  1669. if v[1]~=nil and v[2]~=nil and v[1]:IsDescendantOf(workspace) then
  1670. v[1].CustomPhysicalProperties = v[2]
  1671. end
  1672. end
  1673. v.Parts = {}
  1674. end
  1675. end)
  1676. end
  1677.  
  1678.  
  1679.  
  1680. --[[Driver Handling]]
  1681.  
  1682. --Driver Sit
  1683. car.DriveSeat.ChildAdded:connect(function(child)
  1684. if child.Name=="SeatWeld" and child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
  1685. --Distribute Client Interface
  1686. local p=game.Players:GetPlayerFromCharacter(child.Part1.Parent)
  1687. car.DriveSeat:SetNetworkOwner(p)
  1688. local g=script.Parent["A-Chassis Interface"]:Clone()
  1689. g.Parent=p.PlayerGui
  1690. end
  1691. end)
  1692.  
  1693. --Driver Leave
  1694. car.DriveSeat.ChildRemoved:connect(function(child)
  1695. if child.Name=="SeatWeld" and child:IsA("Weld") then
  1696. --Remove Flip Force
  1697. if car.DriveSeat:FindFirstChild("Flip")~=nil then
  1698. car.DriveSeat.Flip.MaxTorque = Vector3.new()
  1699. end
  1700.  
  1701. --Remove Wheel Force
  1702. for i,v in pairs(car.Wheels:GetChildren()) do
  1703. if v:FindFirstChild("#AV")~=nil then
  1704. if v["#AV"]:IsA("BodyAngularVelocity") then
  1705. if v["#AV"].AngularVelocity.Magnitude>0 then
  1706. v["#AV"].AngularVelocity = Vector3.new()
  1707. v["#AV"].MaxTorque = Vector3.new()
  1708. end
  1709. else
  1710. if v["#AV"].AngularVelocity>0 then
  1711. v["#AV"].AngularVelocity = 0
  1712. v["#AV"].MotorMaxTorque = 0
  1713. end
  1714. end
  1715. end
  1716. end
  1717. end
  1718. end)
  1719.  
  1720. --[END]]
  1721. end))
  1722. ModuleScript67.Name = "MiscWeld"
  1723. ModuleScript67.Parent = Script66
  1724. table.insert(cors,sandbox(ModuleScript67,function()
  1725. local MiscWeld = {}
  1726.  
  1727. function MakeWeld(x,y,type,s)
  1728. if type==nil then type="Weld" end
  1729. local W=Instance.new(type)
  1730. W.Part0=x W.Part1=y
  1731. W.C0=x.CFrame:inverse()*x.CFrame
  1732. W.C1=y.CFrame:inverse()*x.CFrame
  1733. W.Parent=x
  1734. if type=="Motor" and s~=nil then
  1735. W.MaxVelocity=s
  1736. end
  1737. return W
  1738. end
  1739. function ModelWeld(a,b)
  1740. if a:IsA("BasePart") then
  1741. MakeWeld(b,a,"Weld")
  1742. elseif a:IsA("Model") then
  1743. for i,v in pairs(a:GetChildren()) do
  1744. ModelWeld(v,b)
  1745. end
  1746. end
  1747. end
  1748.  
  1749. car = script.Parent.Parent.Parent
  1750. misc = car:WaitForChild("Misc")
  1751.  
  1752. ---------------------------
  1753. --[[
  1754. --Main anchor point is the DriveSeat <car.DriveSeat>
  1755.  
  1756. Usage:
  1757. MakeWeld(Part1,Part2,WeldType*,MotorVelocity**) *default is "Weld" **Applies to Motor welds only
  1758. ModelWeld(Model,MainPart)
  1759. Example:
  1760. MakeWeld(car.DriveSeat,misc.PassengerSeat)
  1761. MakeWeld(car.DriveSeat,misc.SteeringWheel,"Motor",.2)
  1762. ModelWeld(car.DriveSeat,misc.Door)
  1763. ]]
  1764.  
  1765. --Weld stuff here
  1766.  
  1767.  
  1768. car.DriveSeat.ChildAdded:connect(function(child)
  1769. if child.Name=="SeatWeld" and child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
  1770. child.C0=CFrame.new(0,-.5,0)*CFrame.fromEulerAnglesXYZ(-(math.pi/2),0,0)*CFrame.Angles(math.rad(13),0,0)
  1771. end
  1772. end)
  1773.  
  1774. ---------------------------
  1775. return MiscWeld
  1776. end))
  1777. ModuleScript68.Name = "README"
  1778. ModuleScript68.Parent = ModuleScript65
  1779. table.insert(cors,sandbox(ModuleScript68,function()
  1780. --[[ <<DO NOT DELETE THIS MODULE>>
  1781. ___ _______ _
  1782. / _ |____/ ___/ / ___ ____ ___ (_)__
  1783. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
  1784. /_/ |_| \___/_//_/\_,_/___/___/_/___/ Build 6.52S2
  1785. SecondLogic @ Inspare
  1786.  
  1787. >>Manual
  1788.  
  1789. Basically...everything you can and would ever want to touch is in the tuning module. EVERYTHING
  1790.  
  1791. Torque Curve Tune Visualizer:
  1792. https://www.desmos.com/calculator/2uo3hqwdhf
  1793.  
  1794.  
  1795. Basic Tips:
  1796. --Installation
  1797. >Everything is built-in (assembly, welding, suspension, gyros), so all you have to worry about is placing the wheels and the seat.
  1798. >Body parts go in the "Body" section.
  1799. >Wheel parts such as 3D rims and brake disks go in the "Parts" section of the wheel.
  1800. >Suspension-Anchored parts such as suspension wishbones and linkages go in the "SuspensionFixed" section.
  1801. >Axle-Anchored parts such as calipers go in the "WheelFixed" section.
  1802. >You can add or remove wheels. To add a wheel, simply copy one of the wheels and make sure it's named one of the following: "F","FL","FR","R","RL","RR".
  1803. >Wheels need to be aligned with the axes of the seat. Don't rotate the seat relative to the wheels as it may cause welding problems.
  1804. >All wheel offsets are applied in the tuning module. Do NOT manually add offset to the wheels. Steering axis is centered on the wheel part by default.
  1805. >Seat offset can be adjusted in the "MiscWeld" module under "Initialize".
  1806. >Use the "Misc" section for scripted/moving parts and apply welding using the "MiscWeld" module under "Initialize".
  1807.  
  1808. --Tuning
  1809. >Reduce weight(density) if setup is lacking torque. Increase density if setup has too much torque.
  1810. >Add downforce manually if setup is lacking grip or use a downforce plugin.
  1811. >Dialing in ratios used in real cars is an easy way to have a realisticly tuned transmission.
  1812. >Modifying the "Drive" script may affect the integrity of the system.
  1813. >Custom scripts should be put in the "Plugins" folder. Using plugins made by other users is encouraged.
  1814. >When writing custom plugins, you can reference the values within the "Values" folder inside the A-Chassis Interface.
  1815. >It is a good practice to make plugins compatible with any setup and providing a usage manual if a plugin is released.
  1816. >You can remove/change the default plugins that come with the kit. The drive system will still work perfectly with or without them.
  1817.  
  1818. --Updates
  1819. >To update, simply just replace the entire "A-Chassis Tune" module of an existing car with a newer version of the module.
  1820. >You may want to copy the tune values and plugins from the old module, but dont simply overwrite the tune module as new values may be added.
  1821.  
  1822.  
  1823. >>Changelog
  1824. [6/10/17 : Build 6.52S2] - Fixed Initialization Orientation
  1825. [Fixed Initialization Rotation]
  1826. -Fixed initialization rotation glitch
  1827.  
  1828. [6/8/17 : Build 6.51S2] - More Suspension Tuning
  1829. [Re-Added Suspension Values]
  1830. -New suspension tuning is now the same as the previous suspension
  1831. -AntiRoll and PreCompress are now added to suspension tuning
  1832.  
  1833. [Fixes]
  1834. -Fixed Rev-Boucing: Car does not stall anymore when rev-bouncing
  1835. -Fixed Stock Gauges not showing the the right transmission mode / pbrake mode
  1836.  
  1837. [6/8/17 : Build 6.5S2] - Full Suspension Change and Optimization
  1838. [New Suspension System]
  1839. -Suspension Linkages are now made using axles instead of constraints
  1840. -Better overall stability and ease of tuning
  1841. -SpringConstraint Tuning has been changed in the tune to more meaningful values
  1842. -Added AntiRoll system using gyro dampening on the suspension linkages
  1843. -AxleSize affects the size of suspension linkage parts
  1844.  
  1845. [Major Performance Optimizations]
  1846. -Torque output calculations are now cached (pre-calculated and stored) to reduce runtime cpu load
  1847. -Constant multipliers for several lines have been simplified and cached
  1848. -Split Engine function into RPM calculation and Power Output
  1849. -Split runtime loops into different cycle rates
  1850. -RPM calculation, Steering, and External Value updating now run on 60 FPS max (from 30) for smoother steering and RPM tracking.
  1851. -Engine Output and Flip now run on 15 FPS max (from 30) to reduce runtime cpu load
  1852. -Overall percieved smoothness is now TWICE AS MUCH but runtime cpu load has actually been HALVED!!!
  1853.  
  1854. [5/23/17 : Build 6.43S] - STUFF
  1855. [Added Tune Values]
  1856. -Added WBVisible to set weight brick visibility
  1857.  
  1858. [Independent Camera Handling]
  1859. -Separated camera handling from Drive script
  1860. -Mouse camera is now handled by a plugin
  1861. -Custom camera plugin support is now easier
  1862.  
  1863. [Stock Plugins Update]
  1864. -Added Dynamic Friction as a stock plugin
  1865. -Dynamic friction can be tuned within the Simulated script
  1866. -Updated default sound plugin
  1867. -Added mouse-steer camera plugin
  1868.  
  1869. [Code Fixes]
  1870. -Fixed missing operation within torque curve
  1871. -Slight optimizations during runtime
  1872.  
  1873. [5/20/17 : Build 6.42S] - ABS and PGS Standardization
  1874.  
  1875. [Added ABS]
  1876. -Modulates brakes when locking
  1877. -Added threshold value for slip allowance
  1878. -Added control toggles for ABS
  1879. -Added ABS indicator and control mapping to stock UI
  1880.  
  1881. [Split Density Tuning for PGS and Legacy]
  1882. -Added standardized weight scaling values to tune
  1883. -Default weight tuning set to 1 cubic stud : 50 lbs for PGS
  1884. -Default weight tuning set to 1 cubic stud : 10 lbs for Legacy
  1885. -Split front and rear density to PGS and Legacy
  1886. -Split brake force tuning to PGS and Legacy
  1887.  
  1888. [Added Tune Values]
  1889. -TCSEnabled: Sets whether or not the car will have TCS
  1890. -ABSEnabled: Sets whether or not the car will have ABS
  1891. -LoadDelay: Sets a delay time before initializing car
  1892.  
  1893. [Bug Fix: Axle Size Initialization]
  1894. -Car applies proper axle size
  1895. -Added AxleDensity value which sets axle density
  1896. -Fixed miscelaneous wheel part welding
  1897.  
  1898. [Added Changable Stock Gauge Units]
  1899. -Added units system for stock gauges
  1900. -Added default units: MPH [1 stud : 10 in], KP/H [1 stud : 10 in], SPS
  1901. -Custom units can be added or removed
  1902. -Click on speed to change between units
  1903. -Moved Controls button to middle for better visibility
  1904.  
  1905. [Code Documentation]
  1906. -Extensive documentation and commenting within scripts for better readability
  1907. -Improved warning message for oversized mass condition
  1908.  
  1909. [5/4/17 : Build 6.41S] - Standardized Weight
  1910.  
  1911. [Added automatic weight system]
  1912. -Added tune values for car weight, center of gravity, and wheel density
  1913. -Weight standard: 100 lbs = 1 cubic stud mass
  1914. -Applies weight at initialization
  1915.  
  1916. [Scaled Down Power Delivery]
  1917. -Horsepower output now at 1/10 because of lighter weight standard
  1918. -Added FDMult value in transmission for gear ratio scaling without having to change Final Drive (useful for low HP tunes)
  1919.  
  1920. [Optimized value for Anchor Offset]
  1921. -Changed "SusOffset" to "Anchor Offset"
  1922. -New anchor offset is now based off of wishbone length and wishbone angle.
  1923. -Anchor offset now labelled for forward, lateral, and vertical offsets.
  1924.  
  1925. [Split some tune values to F/R]
  1926. -Suspension values for front and rear are now independently tunable.
  1927. -Front and rear brakes can be tuned independently.
  1928.  
  1929. [Tune Module Housekeeping]
  1930. -Rearranged and documented several of the values within the tune module.
  1931. -Removed GyroP and GyroMaxTorque for simplicity. Dampening values are still present.
  1932. -Changed some decimal values to percent values
  1933.  
  1934. [1/2/17 : Build 6.40S] - Suspension
  1935. "S" Build number identifies suspension build
  1936.  
  1937. [Added suspension system for PGS Physics Solver]
  1938. -Suspension uses ROBLOX constraints and is automatically generated with the chassis
  1939. -Added tune values for suspension
  1940. -Temporarily removed caster tuning
  1941.  
  1942. [Steering Fix]
  1943. -Added tune value 'ReturnSpeed' which determines how fast wheels return to default orientation
  1944.  
  1945. [New Torque Curve Equation]
  1946. -New equation gives more control over the shape of the torque curve
  1947. -Engine values have been replaced with the new equation's variables
  1948. -Added link to desmos graph for the torque curve visualization
  1949.  
  1950. [10/31/16 : Build 6.33] - Semi-Automatic
  1951.  
  1952. [Added semi-automatic transmission mode]
  1953. -'TransModes' now accepts "Semi" value for semi-automatic.
  1954. -Updated AC6_Stock_Gauges to include semi-automatic mode.
  1955.  
  1956. [Fixed disengaging p-brake]
  1957. -P-Brake now remains engaged if player gets into then vehicle.
  1958.  
  1959. [Fixed FE Support for AC6_Stock_Sound]
  1960. -Sounds should now work properly with Filtering Enabled.
  1961.  
  1962. [8/5/16 : Build 6.32] - Differential System
  1963.  
  1964. [Implemented differential system]
  1965. -Differential controls torque distibution between wheels that are spinning at different rates
  1966. -Added tune values 'FDiffSlipThres', 'FDiffLockThres', 'RDiffSlipThres', 'RDiffLockThres', 'CDiffSlipThres', and 'CDiffLockThres'.
  1967. -'DiffSlipThres' determine the threshold of the speed difference between the wheels. Full lock applies at max threshold.
  1968. -A lower slip threshold value will make the diff more aggressive.
  1969. -'DiffLockThres' determines the bias of the differential.
  1970. -A lock threshold value more than 50 puts more torque into the slipping wheel (moving towards an open diff).
  1971. -A lock threshold value less than 50 puts more torque into the grounded wheel (moving towards a locked diff).
  1972.  
  1973. [Fixed multiple wheel support]
  1974. -The chassis can now use more than just the default 4 set of wheels. Just copy an existing wheel and place accordingly.
  1975. -Differential works with auxiliary wheels.
  1976.  
  1977. [7/13/16 : Build 6.31] - Peripheral Settings
  1978.  
  1979. [Added peripheral adjustment values]
  1980. -Moved controller and mouse deadzone values to the "Controls" section of the tune.
  1981. -Split controller deadzone into left and right input.
  1982. -Moved mouse control width to "Conrols" secton. This value now operates based off of % of screed width.
  1983.  
  1984. [Updated stock Controls Module]
  1985. -Added sliders for controller and mouse deadzone values.
  1986. -Added slider for mouse control width.
  1987.  
  1988. [6/15/16 : Build 6.3] - Motercisly
  1989.  
  1990. [Better motorcycle system support]
  1991. -Added wheel configurations "F" and "R" for single wheel settup.
  1992. -"F" and "R" wheels will have axle parts on both sides for better balance.
  1993. -These wheel configurations will ignore outor rotation value and will rotated based off of the inner rotation value only.
  1994. -Camber and Toe cannot be applied to these wheel configurations. Caster will still be applied as normal.
  1995.  
  1996. [Bug fixes]
  1997. -Caster now applies after wheel part rotations so wheel parts dont rotate with caster.
  1998. -Fixed Clutch re-engaging automatically when shifting out of neutral.
  1999.  
  2000. [6/4/16 : Build 6.21] - AC6 Official Public Kit Release
  2001.  
  2002. [Plugin FilteringEnabled compatability made easier]
  2003. -System now detects if there is a RemoteEvent or RemoteFunction inside a plugin. These will be parented directly under the car.
  2004. -The RemoteEvent/RemoteFunction needs to be a direct child of the plugin for it to be detected.
  2005. -Scripts inside the RemoteEvent/RemoteFunction should be disabled. They will be enabled after initialization.
  2006. -Be careful as this system is suceptible to name collisions. Name your RemoteEvents/RemoteFunctions uniquely.
  2007. -Stock AC6 Sound plugin is now FE compatible.
  2008.  
  2009. [Controls Panel now a plugin instead of integrated]
  2010. -Separated controls panel from Drive script. The controls panel is now a plugin.
  2011. -The "Controls" folder appears inside the interface on Drive startup. Use this folder to reference button mapping values for custom controls plugins.
  2012. -"ControlsOpen" value added. This is a safety toggle when changing control values. This value can be manipulated by plugins.
  2013.  
  2014. [New tune values]
  2015. -Added 'AutoFlip' tune value. This determines if the car automatically flips itself over when upside down.
  2016. -Added 'StAxisOffset' tune value. This offsets the center of the steering axis. Positive value = offset outward.
  2017. -Added 'SteerD', 'SteerMaxTorque', and 'SteerP' values which set the steering axle gyro properties.
  2018.  
  2019. [MiscWeld streamlining]
  2020. -Added "Misc" section to the main sections. This should contain scripted/moving parts.
  2021. -Parts in this section are NOT WELDED AUTOMATICALLY. Use the "MiscWeld" module to weld these parts. The "Misc" section is pre-referenced as 'misc'.
  2022.  
  2023. [Bug fixes]
  2024. -Fixed flip gyro not resetting when gyro is active and driver leaves car.
  2025. -Fixed issue with switching transmission modes.
  2026. --]]
  2027.  
  2028. return "6.52S2"
  2029. end))
  2030. ScreenGui69.Name = "A-Chassis Interface"
  2031. ScreenGui69.Parent = ModuleScript65
  2032. ObjectValue70.Name = "Car"
  2033. ObjectValue70.Parent = ScreenGui69
  2034. BoolValue71.Name = "IsOn"
  2035. BoolValue71.Parent = ScreenGui69
  2036. BoolValue72.Name = "ControlsOpen"
  2037. BoolValue72.Parent = ScreenGui69
  2038. LocalScript73.Name = "Drive"
  2039. LocalScript73.Parent = ScreenGui69
  2040. table.insert(cors,sandbox(LocalScript73,function()
  2041. --[[
  2042. ___ _______ _
  2043. / _ |____/ ___/ / ___ ____ ___ (_)__
  2044. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
  2045. /_/ |_| \___/_//_/\_,_/___/___/_/___/
  2046. SecondLogic @ Inspare
  2047.  
  2048.  
  2049. *I assume you know what you're doing if you're gonna change something here.* ]]--
  2050.  
  2051. wait(0.1)
  2052.  
  2053. --[[START]]
  2054.  
  2055. script.Parent:WaitForChild("Car")
  2056. script.Parent:WaitForChild("IsOn")
  2057. script.Parent:WaitForChild("ControlsOpen")
  2058. script.Parent:WaitForChild("Values")
  2059.  
  2060. --[[Dependencies]]
  2061.  
  2062. local player = game.Players.LocalPlayer
  2063. local mouse = player:GetMouse()
  2064. local UserInputService = game:GetService("UserInputService")
  2065. local car = script.Parent.Car.Value
  2066. local _Tune = require(car["A-Chassis Tune"])
  2067.  
  2068.  
  2069.  
  2070. --[[Output Scaling Factor]]
  2071.  
  2072. local hpScaling = _Tune.WeightScaling*10
  2073. local FBrakeForce = _Tune.FBrakeForce
  2074. local RBrakeForce = _Tune.RBrakeForce
  2075. local PBrakeForce = _Tune.PBrakeForce
  2076. if not workspace:PGSIsEnabled() then
  2077. hpScaling = _Tune.LegacyScaling*10
  2078. FBrakeForce = _Tune.FLgcyBForce
  2079. RBrakeForce = _Tune.RLgcyBForce
  2080. PBrakeForce = _Tune.LgcyPBForce
  2081. end
  2082.  
  2083. --[[Status Vars]]
  2084.  
  2085. local _IsOn = _Tune.AutoStart
  2086. if _Tune.AutoStart then script.Parent.IsOn.Value=true end
  2087.  
  2088. local _GSteerT=0
  2089. local _GSteerC=0
  2090. local _GThrot=0
  2091. local _GBrake=0
  2092.  
  2093. local _ClutchOn = true
  2094. local _ClPressing = false
  2095. local _RPM = 0
  2096. local _HP = 0
  2097. local _OutTorque = 0
  2098. local _CGear = 0
  2099. local _PGear = _CGear
  2100. local _spLimit = 0
  2101.  
  2102. local _TMode = _Tune.TransModes[1]
  2103.  
  2104. local _MSteer = false
  2105. local _SteerL = false
  2106. local _SteerR = false
  2107. local _PBrake = false
  2108. local _TCS = _Tune.TCSEnabled
  2109. local _TCSActive = false
  2110. local _ABS = _Tune.ABSEnabled
  2111. local _ABSActive = false
  2112.  
  2113. local FlipWait=tick()
  2114. local FlipDB=false
  2115.  
  2116. local _InControls = false
  2117.  
  2118.  
  2119.  
  2120. --[[Shutdown]]
  2121.  
  2122. car.DriveSeat.ChildRemoved:connect(function(child)
  2123. if child.Name=="SeatWeld" and child:IsA("Weld") then
  2124. script.Parent:Destroy()
  2125. end
  2126. end)
  2127.  
  2128.  
  2129.  
  2130. --[[Controls]]
  2131.  
  2132. local _CTRL = _Tune.Controls
  2133. local Controls = Instance.new("Folder",script.Parent)
  2134. Controls.Name = "Controls"
  2135. for i,v in pairs(_CTRL) do
  2136. local a=Instance.new("StringValue",Controls)
  2137. a.Name=i
  2138. a.Value=v.Name
  2139. a.Changed:connect(function()
  2140. if i=="MouseThrottle" or i=="MouseBrake" then
  2141. if a.Value == "MouseButton1" or a.Value == "MouseButton2" then
  2142. _CTRL[i]=Enum.UserInputType[a.Value]
  2143. else
  2144. _CTRL[i]=Enum.KeyCode[a.Value]
  2145. end
  2146. else
  2147. _CTRL[i]=Enum.KeyCode[a.Value]
  2148. end
  2149. end)
  2150. end
  2151.  
  2152. --Deadzone Adjust
  2153. local _PPH = _Tune.Peripherals
  2154. for i,v in pairs(_PPH) do
  2155. local a = Instance.new("IntValue",Controls)
  2156. a.Name = i
  2157. a.Value = v
  2158. a.Changed:connect(function()
  2159. a.Value=math.min(100,math.max(0,a.Value))
  2160. _PPH[i] = a.Value
  2161. end)
  2162. end
  2163.  
  2164. --Input Handler
  2165. function DealWithInput(input,IsRobloxFunction)
  2166. if (UserInputService:GetFocusedTextBox()==nil) and not _InControls then --Ignore when UI Focus
  2167. --Shift Down [Manual Transmission]
  2168. if _IsOn and (input.KeyCode ==_CTRL["ContlrShiftDown"] or (_MSteer and input.KeyCode==_CTRL["MouseShiftDown"]) or ((not _MSteer) and input.KeyCode==_CTRL["ShiftDown"])) and (_TMode=="Semi" or (_TMode=="Manual" and (not _ClutchOn))) and input.UserInputState == Enum.UserInputState.Begin then
  2169. if _CGear == 0 and (_TMode=="Auto" or not _ClPressing) then _ClutchOn = true end
  2170. _CGear = math.max(_CGear-1,-1)
  2171.  
  2172. --Shift Up [Manual Transmission]
  2173. elseif _IsOn and (input.KeyCode ==_CTRL["ContlrShiftUp"] or (_MSteer and input.KeyCode==_CTRL["MouseShiftUp"]) or ((not _MSteer) and input.KeyCode==_CTRL["ShiftUp"])) and (_TMode=="Semi" or (_TMode=="Manual" and (not _ClutchOn))) and input.UserInputState == Enum.UserInputState.Begin then
  2174. if _CGear == 0 and (_TMode=="Auto" or not _ClPressing) then _ClutchOn = true end
  2175. _CGear = math.min(_CGear+1,#_Tune.Ratios-2)
  2176.  
  2177. --Toggle Clutch
  2178. 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
  2179. if input.UserInputState == Enum.UserInputState.Begin then
  2180. _ClutchOn = false
  2181. _ClPressing = true
  2182. elseif input.UserInputState == Enum.UserInputState.End then
  2183. _ClutchOn = true
  2184. _ClPressing = false
  2185. end
  2186.  
  2187. --Toggle PBrake
  2188. elseif _IsOn and input.KeyCode ==_CTRL["ContlrPBrake"] or (_MSteer and input.KeyCode==_CTRL["MousePBrake"]) or ((not _MSteer) and input.KeyCode==_CTRL["PBrake"]) then
  2189. if input.UserInputState == Enum.UserInputState.Begin then
  2190. _PBrake = not _PBrake
  2191. elseif input.UserInputState == Enum.UserInputState.End then
  2192. if car.DriveSeat.Velocity.Magnitude>5 then
  2193. _PBrake = false
  2194. end
  2195. end
  2196.  
  2197. --Toggle Transmission Mode
  2198. elseif (input.KeyCode == _CTRL["ContlrToggleTMode"] or input.KeyCode==_CTRL["ToggleTransMode"]) and input.UserInputState == Enum.UserInputState.Begin then
  2199. local n=1
  2200. for i,v in pairs(_Tune.TransModes) do
  2201. if v==_TMode then n=i break end
  2202. end
  2203. n=n+1
  2204. if n>#_Tune.TransModes then n=1 end
  2205. _TMode = _Tune.TransModes[n]
  2206.  
  2207. --Throttle
  2208. elseif _IsOn and ((not _MSteer) and (input.KeyCode==_CTRL["Throttle"] or input.KeyCode == _CTRL["Throttle2"])) or ((((_CTRL["MouseThrottle"]==Enum.UserInputType.MouseButton1 or _CTRL["MouseThrottle"]==Enum.UserInputType.MouseButton2) and input.UserInputType == _CTRL["MouseThrottle"]) or input.KeyCode == _CTRL["MouseThrottle"])and _MSteer) then
  2209. if input.UserInputState == Enum.UserInputState.Begin then
  2210. _GThrot = 1
  2211. else
  2212. _GThrot = _Tune.IdleThrottle/100
  2213. end
  2214.  
  2215. --Brake
  2216. elseif ((not _MSteer) and (input.KeyCode==_CTRL["Brake"] or input.KeyCode == _CTRL["Brake2"])) or ((((_CTRL["MouseBrake"]==Enum.UserInputType.MouseButton1 or _CTRL["MouseBrake"]==Enum.UserInputType.MouseButton2) and input.UserInputType == _CTRL["MouseBrake"]) or input.KeyCode == _CTRL["MouseBrake"])and _MSteer) then
  2217. if input.UserInputState == Enum.UserInputState.Begin then
  2218. _GBrake = 1
  2219. else
  2220. _GBrake = 0
  2221. end
  2222.  
  2223. --Steer Left
  2224. elseif (not _MSteer) and (input.KeyCode==_CTRL["SteerLeft"] or input.KeyCode == _CTRL["SteerLeft2"]) then
  2225. if input.UserInputState == Enum.UserInputState.Begin then
  2226. _GSteerT = -1
  2227. _SteerL = true
  2228. else
  2229. if _SteerR then
  2230. _GSteerT = 1
  2231. else
  2232. _GSteerT = 0
  2233. end
  2234. _SteerL = false
  2235. end
  2236.  
  2237. --Steer Right
  2238. elseif (not _MSteer) and (input.KeyCode==_CTRL["SteerRight"] or input.KeyCode == _CTRL["SteerRight2"]) then
  2239. if input.UserInputState == Enum.UserInputState.Begin then
  2240. _GSteerT = 1
  2241. _SteerR = true
  2242. else
  2243. if _SteerL then
  2244. _GSteerT = -1
  2245. else
  2246. _GSteerT = 0
  2247. end
  2248. _SteerR = false
  2249. end
  2250.  
  2251. --Toggle Mouse Controls
  2252. elseif input.KeyCode ==_CTRL["ToggleMouseDrive"] then
  2253. if input.UserInputState == Enum.UserInputState.End then
  2254. _MSteer = not _MSteer
  2255. _GThrot = _Tune.IdleThrottle/100
  2256. _GBrake = 0
  2257. _GSteerT = 0
  2258. _ClutchOn = true
  2259. end
  2260.  
  2261. --Toggle TCS
  2262. elseif _Tune.TCSEnabled and _IsOn and input.KeyCode == _CTRL["ToggleTCS"] or input.KeyCode == _CTRL["ContlrToggleTCS"] then
  2263. if input.UserInputState == Enum.UserInputState.End then
  2264. _TCS = not _TCS
  2265. end
  2266.  
  2267. --Toggle ABS
  2268. elseif _Tune. ABSEnabled and _IsOn and input.KeyCode == _CTRL["ToggleABS"] or input.KeyCode == _CTRL["ContlrToggleABS"] then
  2269. if input.UserInputState == Enum.UserInputState.End then
  2270. _ABS = not _ABS
  2271. end
  2272. end
  2273.  
  2274. --Variable Controls
  2275. if input.UserInputType.Name:find("Gamepad") then
  2276. --Gamepad Steering
  2277. if input.KeyCode == _CTRL["ContlrSteer"] then
  2278. if input.Position.X>= 0 then
  2279. local cDZone = math.min(.99,_Tune.Peripherals.ControlRDZone/100)
  2280. if math.abs(input.Position.X)>cDZone then
  2281. _GSteerT = (input.Position.X-cDZone)/(1-cDZone)
  2282. else
  2283. _GSteerT = 0
  2284. end
  2285. else
  2286. local cDZone = math.min(.99,_Tune.Peripherals.ControlLDZone/100)
  2287. if math.abs(input.Position.X)>cDZone then
  2288. _GSteerT = (input.Position.X+cDZone)/(1-cDZone)
  2289. else
  2290. _GSteerT = 0
  2291. end
  2292. end
  2293.  
  2294. --Gamepad Throttle
  2295. elseif _IsOn and input.KeyCode == _CTRL["ContlrThrottle"] then
  2296. _GThrot = math.max(_Tune.IdleThrottle/100,input.Position.Z)
  2297.  
  2298. --Gamepad Brake
  2299. elseif input.KeyCode == _CTRL["ContlrBrake"] then
  2300. _GBrake = input.Position.Z
  2301. end
  2302. end
  2303. else
  2304. _GThrot = _Tune.IdleThrottle/100
  2305. _GSteerT = 0
  2306. _GBrake = 0
  2307. if _CGear~=0 then _ClutchOn = true end
  2308. end
  2309. end
  2310. UserInputService.InputBegan:connect(DealWithInput)
  2311. UserInputService.InputChanged:connect(DealWithInput)
  2312. UserInputService.InputEnded:connect(DealWithInput)
  2313.  
  2314.  
  2315.  
  2316. --[[Drivetrain Initialize]]
  2317.  
  2318. local Drive={}
  2319.  
  2320. --Power Front Wheels
  2321. if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
  2322. for i,v in pairs(car.Wheels:GetChildren()) do
  2323. if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
  2324. table.insert(Drive,v)
  2325. end
  2326. end
  2327. end
  2328.  
  2329. --Power Rear Wheels
  2330. if _Tune.Config == "RWD" or _Tune.Config == "AWD" then
  2331. for i,v in pairs(car.Wheels:GetChildren()) do
  2332. if v.Name=="RL" or v.Name=="RR" or v.Name=="R" then
  2333. table.insert(Drive,v)
  2334. end
  2335. end
  2336. end
  2337.  
  2338. --Determine Wheel Size
  2339. local wDia = 0
  2340. for i,v in pairs(Drive) do
  2341. if v.Size.x>wDia then wDia = v.Size.x end
  2342. end
  2343.  
  2344. --Pre-Toggled PBrake
  2345. for i,v in pairs(car.Wheels:GetChildren()) do
  2346. if v["#AV"]:IsA("BodyAngularVelocity") then
  2347. if math.abs(v["#AV"].maxTorque.Magnitude-PBrakeForce)<1 then
  2348. _PBrake=true
  2349. end
  2350. else
  2351. if math.abs(v["#AV"].MotorMaxTorque-PBrakeForce)<1 then
  2352. _PBrake=true
  2353. end
  2354. end
  2355. end
  2356.  
  2357.  
  2358.  
  2359. --[[Steering]]
  2360.  
  2361. function Steering()
  2362. --Mouse Steer
  2363. if _MSteer then
  2364. local msWidth = math.max(1,mouse.ViewSizeX*_Tune.Peripherals.MSteerWidth/200)
  2365. local mdZone = _Tune.Peripherals.MSteerDZone/100
  2366. local mST = ((mouse.X-mouse.ViewSizeX/2)/msWidth)
  2367. if math.abs(mST)<=mdZone then
  2368. _GSteerT = 0
  2369. else
  2370. _GSteerT = (math.max(math.min((math.abs(mST)-mdZone),(1-mdZone)),0)/(1-mdZone))^_Tune.MSteerExp * (mST / math.abs(mST))
  2371. end
  2372. end
  2373.  
  2374. --Interpolate Steering
  2375. if _GSteerC < _GSteerT then
  2376. if _GSteerC<0 then
  2377. _GSteerC = math.min(_GSteerT,_GSteerC+_Tune.ReturnSpeed)
  2378. else
  2379. _GSteerC = math.min(_GSteerT,_GSteerC+_Tune.SteerSpeed)
  2380. end
  2381. else
  2382. if _GSteerC>0 then
  2383. _GSteerC = math.max(_GSteerT,_GSteerC-_Tune.ReturnSpeed)
  2384. else
  2385. _GSteerC = math.max(_GSteerT,_GSteerC-_Tune.SteerSpeed)
  2386. end
  2387. end
  2388.  
  2389. --Steer Decay Multiplier
  2390. local sDecay = (1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-(_Tune.MinSteer/100)))
  2391.  
  2392. --Apply Steering
  2393. for i,v in pairs(car.Wheels:GetChildren()) do
  2394. if v.Name=="F" then
  2395. v.Arm.Steer.CFrame=car.Wheels.F.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
  2396. elseif v.Name=="FL" then
  2397. if _GSteerC>= 0 then
  2398. v.Arm.Steer.CFrame=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerOuter*sDecay),0)
  2399. else
  2400. v.Arm.Steer.CFrame=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
  2401. end
  2402. elseif v.Name=="FR" then
  2403. if _GSteerC>= 0 then
  2404. v.Arm.Steer.CFrame=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
  2405. else
  2406. v.Arm.Steer.CFrame=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerOuter*sDecay),0)
  2407. end
  2408. end
  2409. end
  2410. end
  2411.  
  2412.  
  2413.  
  2414. --[[Engine]]
  2415.  
  2416. local fFD = _Tune.FinalDrive*_Tune.FDMult
  2417. local fFDr = fFD*30/math.pi
  2418. local cGrav = workspace.Gravity*_Tune.InclineComp/32.2
  2419. local wDRatio = wDia*math.pi/60
  2420. local cfWRot = CFrame.Angles(math.pi/2,-math.pi/2,0)
  2421. local cfYRot = CFrame.Angles(0,math.pi,0)
  2422. local rtTwo = (2^.5)/2
  2423.  
  2424. --Horsepower Curve
  2425. local fgc_h=_Tune.Horsepower/100
  2426. local fgc_n=_Tune.PeakRPM/1000
  2427. local fgc_a=_Tune.PeakSharpness
  2428. local fgc_c=_Tune.CurveMult
  2429.  
  2430. function FGC(x)
  2431. x=x/1000
  2432. return (((-(x-fgc_n)^2)*math.min(fgc_h/(fgc_n^2),fgc_c^(fgc_n/fgc_h)))+fgc_h)*(x-((x^fgc_a)/((fgc_a*fgc_n)^(fgc_a-1))))
  2433. end
  2434. local PeakFGC = FGC(_Tune.PeakRPM)
  2435.  
  2436. --Plot Current Horsepower
  2437. function GetCurve(x,gear)
  2438. local hp=math.max((FGC(x)*_Tune.Horsepower)/PeakFGC,0)
  2439. return hp,hp*(_Tune.EqPoint/x)*_Tune.Ratios[gear+2]*fFD*hpScaling
  2440. end
  2441.  
  2442. --Output Cache
  2443. local CacheTorque = false
  2444. local HPCache = {}
  2445. local HPInc = 100
  2446.  
  2447. if CacheTorque then
  2448. for gear,ratio in pairs(_Tune.Ratios) do
  2449. local hpPlot = {}
  2450. for rpm = math.floor(_Tune.IdleRPM/HPInc),math.ceil((_Tune.Redline+100)/HPInc) do
  2451. local tqPlot = {}
  2452. tqPlot.Horsepower,tqPlot.Torque = GetCurve(rpm*HPInc,gear-2)
  2453. hp1,tq1 = GetCurve((rpm+1)*HPInc,gear-2)
  2454. tqPlot.HpSlope = (hp1 - tqPlot.Horsepower)/(HPInc/1000)
  2455. tqPlot.TqSlope = (tq1 - tqPlot.Torque)/(HPInc/1000)
  2456. hpPlot[rpm] = tqPlot
  2457. end
  2458. table.insert(HPCache,hpPlot)
  2459. end
  2460. end
  2461.  
  2462. --Powertrain
  2463.  
  2464. --Update RPM
  2465. function RPM()
  2466. --Neutral Gear
  2467. if _CGear==0 then _ClutchOn = false end
  2468.  
  2469. --Car Is Off
  2470. local revMin = _Tune.IdleRPM
  2471. if not _IsOn then
  2472. revMin = 0
  2473. _CGear = 0
  2474. _ClutchOn = false
  2475. _GThrot = _Tune.IdleThrottle/100
  2476. end
  2477.  
  2478. --Determine RPM
  2479. local maxSpin=0
  2480. for i,v in pairs(Drive) do
  2481. if v.RotVelocity.Magnitude>maxSpin then maxSpin = v.RotVelocity.Magnitude end
  2482. end
  2483. if _ClutchOn then
  2484. local aRPM = math.max(math.min(maxSpin*_Tune.Ratios[_CGear+2]*fFDr,_Tune.Redline+100),revMin)
  2485. local clutchP = math.min(math.abs(aRPM-_RPM)/_Tune.ClutchTol,.9)
  2486. _RPM = _RPM*clutchP + aRPM*(1-clutchP)
  2487. else
  2488. if _GThrot-(_Tune.IdleThrottle/100)>0 then
  2489. if _RPM>_Tune.Redline then
  2490. _RPM = _RPM-_Tune.RevBounce*2
  2491. else
  2492. _RPM = math.min(_RPM+_Tune.RevAccel*_GThrot,_Tune.Redline+100)
  2493. end
  2494. else
  2495. _RPM = math.max(_RPM-_Tune.RevDecay,revMin)
  2496. end
  2497. end
  2498.  
  2499. --Rev Limiter
  2500. _spLimit = (_Tune.Redline+100)/(fFDr*_Tune.Ratios[_CGear+2])
  2501. if _RPM>_Tune.Redline then
  2502. if _CGear<#_Tune.Ratios-2 then
  2503. _RPM = _RPM-_Tune.RevBounce
  2504. else
  2505. _RPM = _RPM-_Tune.RevBounce*.5
  2506. end
  2507. end
  2508. end
  2509.  
  2510. --Apply Power
  2511. function Engine()
  2512. --Get Torque
  2513. local maxSpin=0
  2514. for i,v in pairs(Drive) do
  2515. if v.RotVelocity.Magnitude>maxSpin then maxSpin = v.RotVelocity.Magnitude end
  2516. end
  2517. if _ClutchOn then
  2518. if CacheTorque then
  2519. local cTq = HPCache[_CGear+2][math.floor(math.min(_Tune.Redline,math.max(_Tune.IdleRPM,_RPM))/HPInc)]
  2520. _HP = cTq.Horsepower+(cTq.HpSlope*(_RPM-math.floor(_RPM/HPInc))/1000)
  2521. _OutTorque = cTq.Torque+(cTq.TqSlope*(_RPM-math.floor(_RPM/HPInc))/1000)
  2522. else
  2523. _HP,_OutTorque = GetCurve(_RPM,_CGear)
  2524.  
  2525. end
  2526. local iComp =(car.DriveSeat.CFrame.lookVector.y)*cGrav
  2527. if _CGear==-1 then iComp=-iComp end
  2528. _OutTorque = _OutTorque*math.max(1,(1+iComp))
  2529. else
  2530. _HP,_OutTorque = 0,0
  2531. end
  2532.  
  2533. --Automatic Transmission
  2534. if _TMode == "Auto" and _IsOn then
  2535. _ClutchOn = true
  2536. if _CGear == 0 then _CGear = 1 end
  2537. if _CGear >= 1 then
  2538. if _CGear==1 and _GBrake > 0 and car.DriveSeat.Velocity.Magnitude < 20 then
  2539. _CGear = -1
  2540. else
  2541. if _Tune.AutoShiftMode == "RPM" then
  2542. if _RPM>(_Tune.PeakRPM+_Tune.AutoUpThresh) then
  2543. _CGear=math.min(_CGear+1,#_Tune.Ratios-2)
  2544. elseif math.max(math.min(maxSpin*_Tune.Ratios[_CGear+1]*fFDr,_Tune.Redline+100),_Tune.IdleRPM)<(_Tune.PeakRPM-_Tune.AutoDownThresh) then
  2545. _CGear=math.max(_CGear-1,1)
  2546. end
  2547. else
  2548. if car.DriveSeat.Velocity.Magnitude > math.ceil(wDRatio*(_Tune.PeakRPM+_Tune.AutoUpThresh)/_Tune.Ratios[_CGear+2]/fFD) then
  2549. _CGear=math.min(_CGear+1,#_Tune.Ratios-2)
  2550. elseif car.DriveSeat.Velocity.Magnitude < math.ceil(wDRatio*(_Tune.PeakRPM-_Tune.AutoDownThresh)/_Tune.Ratios[_CGear+1]/fFD) then
  2551. _CGear=math.max(_CGear-1,1)
  2552. end
  2553. end
  2554. end
  2555. else
  2556. if _GThrot-(_Tune.IdleThrottle/100) > 0 and car.DriveSeat.Velocity.Magnitude < 20 then
  2557. _CGear = 1
  2558. end
  2559. end
  2560. end
  2561.  
  2562. --Average Rotational Speed Calculation
  2563. local fwspeed=0
  2564. local fwcount=0
  2565. local rwspeed=0
  2566. local rwcount=0
  2567.  
  2568. for i,v in pairs(car.Wheels:GetChildren()) do
  2569. if v.Name=="FL" or v.Name=="FR" or v.Name == "F" then
  2570. fwspeed=fwspeed+v.RotVelocity.Magnitude
  2571. fwcount=fwcount+1
  2572. elseif v.Name=="RL" or v.Name=="RR" or v.Name == "R" then
  2573. rwspeed=rwspeed+v.RotVelocity.Magnitude
  2574. rwcount=rwcount+1
  2575. end
  2576. end
  2577. fwspeed=fwspeed/fwcount
  2578. rwspeed=rwspeed/rwcount
  2579. local cwspeed=(fwspeed+rwspeed)/2
  2580.  
  2581. --Update Wheels
  2582. for i,v in pairs(car.Wheels:GetChildren()) do
  2583. --Reference Wheel Orientation
  2584. local Ref=(CFrame.new(v.Position-((v.Arm.CFrame*cfWRot).lookVector),v.Position)*cfYRot).lookVector
  2585. local aRef=1
  2586. local diffMult=1
  2587. if v.Name=="FL" or v.Name=="RL" then aRef=-1 end
  2588.  
  2589. --AWD Torque Scaling
  2590. if _Tune.Config == "AWD" then _OutTorque = _OutTorque*rtTwo end
  2591.  
  2592. --Differential/Torque-Vectoring
  2593. if v.Name=="FL" or v.Name=="FR" then
  2594. diffMult=math.max(0,math.min(1,1+((((v.RotVelocity.Magnitude-fwspeed)/fwspeed)/(math.max(_Tune.FDiffSlipThres,1)/100))*((_Tune.FDiffLockThres-50)/50))))
  2595. if _Tune.Config == "AWD" then
  2596. diffMult=math.max(0,math.min(1,diffMult*(1+((((fwspeed-cwspeed)/cwspeed)/(math.max(_Tune.CDiffSlipThres,1)/100))*((_Tune.CDiffLockThres-50)/50)))))
  2597. end
  2598. elseif v.Name=="RL" or v.Name=="RR" then
  2599. diffMult=math.max(0,math.min(1,1+((((v.RotVelocity.Magnitude-rwspeed)/rwspeed)/(math.max(_Tune.RDiffSlipThres,1)/100))*((_Tune.RDiffLockThres-50)/50))))
  2600. if _Tune.Config == "AWD" then
  2601. diffMult=math.max(0,math.min(1,diffMult*(1+((((rwspeed-cwspeed)/cwspeed)/(math.max(_Tune.CDiffSlipThres,1)/100))*((_Tune.CDiffLockThres-50)/50)))))
  2602. end
  2603. end
  2604.  
  2605. _TCSActive = false
  2606. _ABSActive = false
  2607. --Output
  2608. 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
  2609. --PBrake
  2610. v["#AV"].maxTorque=Vector3.new(math.abs(Ref.x),math.abs(Ref.y),math.abs(Ref.z))*PBrakeForce
  2611. v["#AV"].angularvelocity=Vector3.new()
  2612. else
  2613. --Apply Power
  2614. if ((_TMode == "Manual" or _TMode == "Semi") and _GBrake==0) or (_TMode == "Auto" and ((_CGear>-1 and _GBrake==0 ) or (_CGear==-1 and _GThrot-(_Tune.IdleThrottle/100)==0 )))then
  2615. local driven = false
  2616. for _,a in pairs(Drive) do if a==v then driven = true end end
  2617. if driven then
  2618. local on=1
  2619. if not script.Parent.IsOn.Value then on=0 end
  2620. local throt = _GThrot
  2621. if _TMode == "Auto" and _CGear==-1 then throt = _GBrake end
  2622.  
  2623. --Apply TCS
  2624. local tqTCS = 1
  2625. if _TCS then
  2626. 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/100)))
  2627. end
  2628. if tqTCS < 1 then
  2629. _TCSActive = true
  2630. end
  2631.  
  2632. --Update Forces
  2633. local dir = 1
  2634. if _CGear==-1 then dir = -1 end
  2635. 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
  2636. v["#AV"].angularvelocity=Ref*aRef*_spLimit*dir
  2637. else
  2638. v["#AV"].maxTorque=Vector3.new()
  2639. v["#AV"].angularvelocity=Vector3.new()
  2640. end
  2641.  
  2642. --Brakes
  2643. else
  2644. local brake = _GBrake
  2645. if _TMode == "Auto" and _CGear==-1 then brake = _GThrot end
  2646.  
  2647. --Apply ABS
  2648. local tqABS = 1
  2649. if _ABS and math.abs(v.RotVelocity.Magnitude*(v.Size.x/2) - v.Velocity.Magnitude)-_Tune.ABSThreshold>0 then
  2650. tqABS = 0
  2651. end
  2652. if tqABS < 1 then
  2653. _ABSActive = true
  2654. end
  2655.  
  2656. --Update Forces
  2657. if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
  2658. v["#AV"].maxTorque=Vector3.new(math.abs(Ref.x),math.abs(Ref.y),math.abs(Ref.z))*FBrakeForce*brake*tqABS
  2659. else
  2660. v["#AV"].maxTorque=Vector3.new(math.abs(Ref.x),math.abs(Ref.y),math.abs(Ref.z))*RBrakeForce*brake*tqABS
  2661. end
  2662. v["#AV"].angularvelocity=Vector3.new()
  2663. end
  2664. end
  2665. end
  2666. end
  2667.  
  2668.  
  2669.  
  2670. --[[Flip]]
  2671.  
  2672. function Flip()
  2673. --Detect Orientation
  2674. if (car.DriveSeat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.y > .1 or FlipDB then
  2675. FlipWait=tick()
  2676.  
  2677. --Apply Flip
  2678. else
  2679. if tick()-FlipWait>=3 then
  2680. FlipDB=true
  2681. local gyro = car.DriveSeat.Flip
  2682. gyro.maxTorque = Vector3.new(10000,0,10000)
  2683. gyro.P=3000
  2684. gyro.D=500
  2685. wait(1)
  2686. gyro.maxTorque = Vector3.new(0,0,0)
  2687. gyro.P=0
  2688. gyro.D=0
  2689. FlipDB=false
  2690. end
  2691. end
  2692. end
  2693.  
  2694.  
  2695.  
  2696. --[[Run]]
  2697.  
  2698. --Print Version
  2699. local ver=require(car["A-Chassis Tune"].README)
  2700. print("//INSPARE: AC6 Loaded - Build "..ver)
  2701.  
  2702. --Runtime Loops
  2703.  
  2704. -- ~60 c/s
  2705. game["Run Service"].Stepped:connect(function()
  2706. --Steering
  2707. Steering()
  2708.  
  2709. --RPM
  2710. RPM()
  2711.  
  2712. --Update External Values
  2713. _IsOn = script.Parent.IsOn.Value
  2714. _InControls = script.Parent.ControlsOpen.Value
  2715. script.Parent.Values.Gear.Value = _CGear
  2716. script.Parent.Values.RPM.Value = _RPM
  2717. script.Parent.Values.Horsepower.Value = _HP
  2718. script.Parent.Values.Torque.Value = _HP * _Tune.EqPoint / _RPM
  2719. script.Parent.Values.TransmissionMode.Value = _TMode
  2720. script.Parent.Values.Throttle.Value = _GThrot
  2721. script.Parent.Values.Brake.Value = _GBrake
  2722. script.Parent.Values.SteerC.Value = _GSteerC*(1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-(_Tune.MinSteer/100)))
  2723. script.Parent.Values.SteerT.Value = _GSteerT
  2724. script.Parent.Values.PBrake.Value = _PBrake
  2725. script.Parent.Values.TCS.Value = _TCS
  2726. script.Parent.Values.TCSActive.Value = _TCSActive
  2727. script.Parent.Values.ABS.Value = _ABS
  2728. script.Parent.Values.ABSActive.Value = _ABSActive
  2729. script.Parent.Values.MouseSteerOn.Value = _MSteer
  2730. script.Parent.Values.Velocity.Value = car.DriveSeat.Velocity
  2731. end)
  2732.  
  2733. -- ~15 c/s
  2734. while wait(.0667) do
  2735. --Power
  2736. Engine()
  2737.  
  2738. --Flip
  2739. if _Tune.AutoFlip then Flip() end
  2740. end
  2741.  
  2742. --[[END]]
  2743. end))
  2744. Folder74.Name = "Values"
  2745. Folder74.Parent = ScreenGui69
  2746. NumberValue75.Name = "RPM"
  2747. NumberValue75.Parent = Folder74
  2748. NumberValue76.Name = "Horsepower"
  2749. NumberValue76.Parent = Folder74
  2750. NumberValue77.Name = "Torque"
  2751. NumberValue77.Parent = Folder74
  2752. StringValue78.Name = "TransmissionMode"
  2753. StringValue78.Parent = Folder74
  2754. NumberValue79.Name = "Gear"
  2755. NumberValue79.Parent = Folder74
  2756. NumberValue80.Name = "Throttle"
  2757. NumberValue80.Parent = Folder74
  2758. NumberValue81.Name = "SteerC"
  2759. NumberValue81.Parent = Folder74
  2760. NumberValue82.Name = "SteerT"
  2761. NumberValue82.Parent = Folder74
  2762. NumberValue83.Name = "Brake"
  2763. NumberValue83.Parent = Folder74
  2764. BoolValue84.Name = "TCS"
  2765. BoolValue84.Parent = Folder74
  2766. BoolValue85.Name = "PBrake"
  2767. BoolValue85.Parent = Folder74
  2768. BoolValue86.Name = "TCSActive"
  2769. BoolValue86.Parent = Folder74
  2770. Vector3Value87.Name = "Velocity"
  2771. Vector3Value87.Parent = Folder74
  2772. BoolValue88.Name = "ABS"
  2773. BoolValue88.Parent = Folder74
  2774. BoolValue89.Name = "ABSActive"
  2775. BoolValue89.Parent = Folder74
  2776. BoolValue90.Name = "MouseSteerOn"
  2777. BoolValue90.Parent = Folder74
  2778. Frame91.Name = "Lights"
  2779. Frame91.Parent = Folder74
  2780. Frame91.Position = UDim2.new(0, 0, 0, 300)
  2781. Frame91.Size = UDim2.new(1, 0, 1, 0)
  2782. Frame91.BackgroundColor = BrickColor.new("Institutional white")
  2783. Frame91.BackgroundColor3 = Color3.new(1, 1, 1)
  2784. Frame91.BackgroundTransparency = 1
  2785. Frame91.BorderSizePixel = 0
  2786. TextButton92.Name = "L"
  2787. TextButton92.Parent = Frame91
  2788. TextButton92.Position = UDim2.new(0.5, -120, 1, -40)
  2789. TextButton92.Size = UDim2.new(0, 40, 0, 20)
  2790. TextButton92.BackgroundColor = BrickColor.new("Really black")
  2791. TextButton92.BackgroundColor3 = Color3.new(0, 0, 0)
  2792. TextButton92.BackgroundTransparency = 0.5
  2793. TextButton92.BorderSizePixel = 0
  2794. TextButton92.Font = Enum.Font.ArialBold
  2795. TextButton92.FontSize = Enum.FontSize.Size14
  2796. TextButton92.Text = "Lights"
  2797. TextButton92.TextColor = BrickColor.new("Institutional white")
  2798. TextButton92.TextColor3 = Color3.new(1, 1, 1)
  2799. TextButton92.TextSize = 14
  2800. TextButton92.TextStrokeTransparency = 0.89999997615814
  2801. TextButton92.TextTransparency = 0.10000000149012
  2802. LocalScript93.Name = "Lights"
  2803. LocalScript93.Parent = TextButton92
  2804. table.insert(cors,sandbox(LocalScript93,function()
  2805. local car = script.Parent.Parent.Parent.Car.Value
  2806. local mouse = game.Players.LocalPlayer:GetMouse()
  2807. script.Parent:WaitForChild("Reverse")
  2808. if not car.DriveSeat:FindFirstChild("Reverse") then
  2809. script.Parent.Reverse:Clone().Parent = car.DriveSeat
  2810. end
  2811. car.DriveSeat:WaitForChild("Reverse")
  2812. ---
  2813. if script.Parent.Parent.Parent.IsOn.Value then
  2814. script.Parent.Parent:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
  2815. end
  2816.  
  2817. script.Parent.Parent.Parent.IsOn.Changed:connect(function()
  2818. if script.Parent.Parent.Parent.IsOn.Value then
  2819. script.Parent.Parent:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
  2820. end
  2821. end)
  2822. script.Parent.MouseButton1Click:connect(function()
  2823. if car.Misc.Popups.Parts.L.L.L.Enabled == false and car.Body.Lights.H.L.L.Enabled == false then
  2824. script.Parent.BackgroundColor3 = Color3.new(0,255/255,0)
  2825. script.Parent.TextStrokeColor3 = Color3.new(0,255/255,0)
  2826. car.Body.Lights.R.L.L.Enabled = true
  2827. car.Body.Lights.PLATE.L.GUI.Enabled = true
  2828. for index, child in pairs(car.Misc.Popups.Parts.L:GetChildren()) do
  2829. child.Material = Enum.Material.Neon
  2830. child.L.Enabled = true
  2831. end
  2832. for index, child in pairs(car.Body.Lights.R:GetChildren()) do
  2833. child.Material = Enum.Material.Neon
  2834. end
  2835. for index, child in pairs(car.Body.Lights.H:GetChildren()) do
  2836. child.Material = Enum.Material.SmoothPlastic
  2837. child.L.Enabled = false
  2838. end
  2839. elseif car.Misc.Popups.Parts.L.L.L.Enabled == true and car.Body.Lights.H.L.L.Enabled == false then
  2840. script.Parent.BackgroundColor3 = Color3.new(0,0,255/255)
  2841. script.Parent.TextStrokeColor3 = Color3.new(0,0,255/255)
  2842. car.Body.Lights.R.L.L.Enabled = true
  2843. car.Body.Lights.PLATE.L.GUI.Enabled = true
  2844. for index, child in pairs(car.Misc.Popups.Parts.L:GetChildren()) do
  2845. child.Material = Enum.Material.Neon
  2846. child.L.Enabled = true
  2847. end
  2848. for index, child in pairs(car.Body.Lights.R:GetChildren()) do
  2849. child.Material = Enum.Material.Neon
  2850. end
  2851. for index, child in pairs(car.Body.Lights.H:GetChildren()) do
  2852. child.Material = Enum.Material.Neon
  2853. child.L.Enabled = true
  2854. end
  2855. elseif car.Misc.Popups.Parts.L.L.L.Enabled == true and car.Body.Lights.H.L.L.Enabled == true then
  2856. script.Parent.BackgroundColor3 = Color3.new(0,0,0)
  2857. script.Parent.TextStrokeColor3 = Color3.new(0,0,0)
  2858. car.Body.Lights.R.L.L.Enabled = false
  2859. car.Body.Lights.PLATE.L.GUI.Enabled = false
  2860. for index, child in pairs(car.Misc.Popups.Parts.L:GetChildren()) do
  2861. child.Material = Enum.Material.SmoothPlastic
  2862. child.L.Enabled = false
  2863. end
  2864. for index, child in pairs(car.Body.Lights.R:GetChildren()) do
  2865. child.Material = Enum.Material.SmoothPlastic
  2866. end
  2867. for index, child in pairs(car.Body.Lights.H:GetChildren()) do
  2868. child.Material = Enum.Material.SmoothPlastic
  2869. child.L.Enabled = false
  2870. end
  2871. end
  2872. end)
  2873.  
  2874. script.Parent.Parent.Parent.Values.Brake.Changed:connect(function()
  2875. if script.Parent.Parent.Parent.Values.Brake.Value ~= 1 and script.Parent.Parent.Parent.IsOn.Value then
  2876. for index, child in pairs(car.Body.Lights.B:GetChildren()) do
  2877. child.Material = Enum.Material.SmoothPlastic
  2878. end
  2879. car.Body.Lights.B.L.L.Enabled = false
  2880. else
  2881. for index, child in pairs(car.Body.Lights.B:GetChildren()) do
  2882. child.Material = Enum.Material.Neon
  2883. end
  2884. car.Body.Lights.B.L.L.Enabled = true
  2885. end
  2886. end)
  2887.  
  2888. script.Parent.Parent.Parent.Values.Brake.Changed:connect(function()
  2889. if script.Parent.Parent.Parent.Values.Brake.Value ~= 1 then
  2890. for index, child in pairs(car.Body.Lights.B:GetChildren()) do
  2891. child.Material = Enum.Material.SmoothPlastic
  2892. end
  2893. car.Body.Lights.B.L.L.Enabled = false
  2894. car.Body.a1.Enabled = false
  2895. car.Body.a2.Enabled = false
  2896. car.Body.a3.Enabled = false
  2897. else
  2898. for index, child in pairs(car.Body.Lights.B:GetChildren()) do
  2899. child.Material = Enum.Material.Neon
  2900. end
  2901. car.Body.Lights.B.L.L.Enabled = true
  2902. car.Body.a1.Enabled = true
  2903. car.Body.a2.Enabled = true
  2904. car.Body.a3.Enabled = true
  2905. end
  2906. end)
  2907.  
  2908. script.Parent.Parent.Parent.Values.Gear.Changed:connect(function()
  2909. if script.Parent.Parent.Parent.Values.Gear.Value == -1 then
  2910. for index, child in pairs(car.Body.Lights.Rev:GetChildren()) do
  2911. child.Material = Enum.Material.Neon
  2912. car.DriveSeat.Reverse:Play()
  2913. end
  2914. else
  2915. for index, child in pairs(car.Body.Lights.Rev:GetChildren()) do
  2916. child.Material = Enum.Material.SmoothPlastic
  2917. car.DriveSeat.Reverse:Stop()
  2918. end
  2919. end
  2920. end)
  2921.  
  2922. while wait() do
  2923. if (car.DriveSeat.Velocity.magnitude/40)+0.300 < 1.3 then
  2924. car.DriveSeat.Reverse.Pitch = (car.DriveSeat.Velocity.magnitude/40)+0.300
  2925. car.DriveSeat.Reverse.Volume = (car.DriveSeat.Velocity.magnitude/150)
  2926. else
  2927. car.DriveSeat.Reverse.Pitch = 1.3
  2928. car.DriveSeat.Reverse.Volume = .2
  2929. end
  2930. end
  2931. end))
  2932. Sound94.Name = "Reverse"
  2933. Sound94.Parent = TextButton92
  2934. Sound94.Looped = true
  2935. Sound94.Pitch = 0
  2936. Sound94.PlaybackSpeed = 0
  2937. Sound94.Volume = 0.30000001192093
  2938. NumberValue95.Name = "SetPitch"
  2939. NumberValue95.Parent = Sound94
  2940. NumberValue95.Value = 0.15
  2941. NumberValue96.Name = "SetRev"
  2942. NumberValue96.Parent = Sound94
  2943. NumberValue96.Value = 1.3
  2944. NumberValue97.Name = "SetVolume"
  2945. NumberValue97.Parent = Sound94
  2946. NumberValue97.Value = 0.1
  2947. NumberValue98.Name = "SetVolumeRev"
  2948. NumberValue98.Parent = Sound94
  2949. NumberValue98.Value = 0.5
  2950. Sound99.Parent = ModuleScript65
  2951. Sound99.Looped = true
  2952. Sound99.SoundId = "rbxassetid://281069183"
  2953. Sound99.Volume = 0.10000000149012
  2954. Folder100.Name = "Plugins"
  2955. Folder100.Parent = ModuleScript65
  2956. LocalScript101.Name = "AC6_Turbo_Sound"
  2957. LocalScript101.Parent = Folder100
  2958. table.insert(cors,sandbox(LocalScript101,function()
  2959. --[[
  2960. ___ _______ _ _______
  2961. / _ |____/ ___/ / ___ ____ ___ (_)__ /__ __/
  2962. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-< / /
  2963. /_/ |_| \___/_//_/\_,_/___/___/_/___/ /_/
  2964. SecondLogic @ Inspare
  2965. Avxnturador @ Novena
  2966. ]]
  2967. local FE = workspace.FilteringEnabled
  2968. local car = script.Parent.Car.Value
  2969. local handler = car:WaitForChild("AC6_FE_Sounds")
  2970. local _Tune = require(car["A-Chassis Tune"])
  2971. local BOVact = 0
  2972. local BOVact2 = 0
  2973.  
  2974. local BOV_Loudness = 1 --volume of the BOV (not exact volume so you kinda have to experiment with it)
  2975. local BOV_Pitch = 0.9 --max pitch of the BOV (not exact so might have to mess with it)
  2976. local TurboLoudness = .75 --volume of the Turbo (not exact volume so you kinda have to experiment with it also)
  2977.  
  2978. script:WaitForChild("Whistle")
  2979. script:WaitForChild("BOV")
  2980.  
  2981. for i,v in pairs(car.DriveSeat:GetChildren()) do
  2982. for _,a in pairs(script:GetChildren()) do
  2983. if v.Name==a.Name then v:Stop() wait() v:Destroy() end
  2984. end
  2985. end
  2986.  
  2987. car.DriveSeat.ChildRemoved:connect(function(child)
  2988. if child.Name=="SeatWeld" then
  2989. for i,v in pairs(car.DriveSeat:GetChildren()) do
  2990. for _,a in pairs(script:GetChildren()) do
  2991. if v.Name==a.Name then v:Stop() wait() v:Destroy() end
  2992. end
  2993. end
  2994. end
  2995. end)
  2996.  
  2997. handler:FireServer("newSound","Whistle",car.DriveSeat,script.Whistle.SoundId,0,script.Whistle.Volume,true)
  2998. handler:FireServer("newSound","BOV",car.DriveSeat,script.BOV.SoundId,0,script.BOV.Volume,true)
  2999. handler:FireServer("playSound","Whistle")
  3000. car.DriveSeat:WaitForChild("Whistle")
  3001. car.DriveSeat:WaitForChild("BOV")
  3002. local ticc = tick()
  3003. local _TCount = 0
  3004. if _Tune.Aspiration == "Single" then _TCount = 1 elseif _Tune.Aspiration == "Double" then _TCount = 2 end
  3005.  
  3006. while wait() do
  3007. local psi = (((script.Parent.Values.Boost.Value)/(_Tune.Boost*_TCount))*2)
  3008.  
  3009. BOVact = math.floor(psi*20)
  3010. WP = (psi)
  3011. WV = (psi/4)*TurboLoudness
  3012.  
  3013. BP = (1-(-psi/20))*BOV_Pitch
  3014. BV = (((-0.5+((psi/2)*BOV_Loudness)))*(1 - script.Parent.Values.Throttle.Value))
  3015.  
  3016. if BOVact < BOVact2 then if car.DriveSeat.BOV.IsPaused then if FE then handler:FireServer("playSound","BOV") else car.DriveSeat.BOV:Play() end end end
  3017. if BOVact >= BOVact2 then if FE then handler:FireServer("stopSound","BOV") else car.DriveSeat.BOV:Stop() end end
  3018.  
  3019. if FE then
  3020. handler:FireServer("updateSound","Whistle",script.Whistle.SoundId,WP,WV)
  3021. handler:FireServer("updateSound","BOV",script.BOV.SoundId,BP,BV)
  3022. else
  3023. car.DriveSeat.Whistle.Pitch = WP
  3024. car.DriveSeat.Whistle.Volume = WV
  3025. car.DriveSeat.BOV.Pitch = BP
  3026. car.DriveSeat.BOV.Volume = BV
  3027. end
  3028. if (tick()-ticc) >= 0.1 then
  3029. BOVact2 = math.floor(psi*20)
  3030. ticc = tick()
  3031. end
  3032. end
  3033. end))
  3034. Sound102.Name = "BOV"
  3035. Sound102.Parent = LocalScript101
  3036. Sound102.MaxDistance = 100
  3037. Sound102.SoundId = "rbxassetid://1045308909"
  3038. Sound103.Name = "Whistle"
  3039. Sound103.Parent = LocalScript101
  3040. Sound103.Looped = true
  3041. Sound103.EmitterSize = 20
  3042. Sound103.MinDistance = 20
  3043. Sound103.SoundId = "rbxassetid://1033010834"
  3044. LocalScript104.Name = "AC6_Wind_Sound"
  3045. LocalScript104.Parent = Folder100
  3046. table.insert(cors,sandbox(LocalScript104,function()
  3047. wait(0.2)
  3048. local car = script.Parent.Car.Value
  3049. local carSeat = car.DriveSeat
  3050. script.Wind:Play()
  3051. script.Wind.Parent=carSeat
  3052.  
  3053. while true do
  3054. wait()
  3055. local speed = carSeat.Velocity.magnitude
  3056. speed = math.floor(math.sqrt((carSeat.Velocity.x^2)+(carSeat.Velocity.y^2)+(carSeat.Velocity.z^2)))
  3057. carSeat.Wind.Pitch = (speed/150)+0.02
  3058. end
  3059. end))
  3060. Sound105.Name = "Wind"
  3061. Sound105.Parent = LocalScript104
  3062. Sound105.Looped = true
  3063. Sound105.Pitch = 0
  3064. Sound105.PlaybackSpeed = 0
  3065. Sound105.SoundId = "rbxassetid://1159041612"
  3066. Sound105.Volume = 5
  3067. LocalScript106.Name = "AC6_Sound_Idle"
  3068. LocalScript106.Parent = Folder100
  3069. table.insert(cors,sandbox(LocalScript106,function()
  3070. --[[
  3071. ___ _______ _
  3072. / _ |____/ ___/ / ___ ____ ___ (_)__
  3073. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
  3074. /_/ |_| \___/_//_/\_,_/___/___/_/___/
  3075. SecondLogic @ Inspare
  3076. ]]
  3077. local FE = workspace.FilteringEnabled
  3078. local car = script.Parent.Car.Value
  3079. local _Tune = require(car["A-Chassis Tune"])
  3080. local on = 0
  3081.  
  3082. script:WaitForChild("Idle")
  3083.  
  3084.  
  3085.  
  3086. if not FE then
  3087. for i,v in pairs(car.DriveSeat:GetChildren()) do
  3088. for _,a in pairs(script:GetChildren()) do
  3089. if v.Name==a.Name then v:Stop() wait() v:Destroy() end
  3090. end
  3091. end
  3092. for i,v in pairs(script:GetChildren()) do
  3093. v.Parent=car.DriveSeat
  3094. end
  3095. car.DriveSeat.Idle:Play()
  3096.  
  3097.  
  3098. while wait() do
  3099. local _RPM = script.Parent.Values.RPM.Value
  3100.  
  3101. if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
  3102. car.DriveSeat.Idle.Pitch = (car.DriveSeat.Idle.SetPitch.Value - car.DriveSeat.Idle.SetRev.Value*_RPM/_Tune.Redline)*on^2
  3103. end
  3104. else
  3105. local handler = car.AC6_FE_Sounds
  3106. handler:FireServer("newSound","Idle",car.DriveSeat,script.Idle.SoundId,0,true)
  3107. handler:FireServer("playSound","Idle")
  3108.  
  3109. local pitch=0
  3110.  
  3111. while wait() do
  3112. local _RPM = script.Parent.Values.RPM.Value
  3113.  
  3114. if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
  3115. pitch = (script.Idle.SetPitch.Value - script.Idle.SetRev.Value*_RPM/_Tune.Redline)*on^2
  3116. handler:FireServer("updateSound","Idle",script.Idle.SoundId,pitch,script.Idle.Volume)
  3117. end
  3118. end
  3119.  
  3120. end))
  3121. RemoteEvent107.Name = "AC6_FE_Sounds"
  3122. RemoteEvent107.Parent = LocalScript106
  3123. Script108.Name = "Handler"
  3124. Script108.Parent = RemoteEvent107
  3125. table.insert(cors,sandbox(Script108,function()
  3126. local Sounds = {}
  3127. local F = {}
  3128.  
  3129. F.newSound = function(name,par,id,pitch,loop)
  3130. for i,v in pairs(Sounds) do
  3131. if i==name then
  3132. v:Stop()
  3133. v:Destroy()
  3134. end
  3135. end
  3136. local sn = Instance.new("Sound",par)
  3137. sn.Name = name
  3138. sn.SoundId = id
  3139. sn.Pitch = pitch
  3140. sn.Looped = loop
  3141. sn.AncestryChanged:connect(function(child,parent) print(parent) end)
  3142. Sounds[name]=sn
  3143. end
  3144.  
  3145. F.updateSound = function(sound,id,pit,vol)
  3146. local sn = Sounds[sound]
  3147. if id~=sn.SoundId then sn.SoundId = id end
  3148. if pit~=sn.Pitch then sn.Pitch = pit end
  3149. end
  3150.  
  3151.  
  3152. F.pauseSound = function(sound)
  3153. Sounds[sound]:Pause()
  3154. end
  3155.  
  3156. F.stopSound = function(sound)
  3157. Sounds[sound]:Stop()
  3158. end
  3159.  
  3160. F.removeSound = function(sound)
  3161. Sounds[sound]:Stop()
  3162. Sounds[sound]:Destroy()
  3163. Sounds[sound]=nil
  3164. end
  3165.  
  3166. script.Parent.OnServerEvent:connect(function(pl,Fnc,...)
  3167. F[Fnc](...)
  3168. end)
  3169. end))
  3170. Script108.Disabled = true
  3171. Sound109.Name = "Idle"
  3172. Sound109.Parent = LocalScript106
  3173. Sound109.Looped = true
  3174. Sound109.MaxDistance = 250
  3175. Sound109.EmitterSize = 5
  3176. Sound109.MinDistance = 5
  3177. Sound109.SoundId = "rbxassetid://1233782024"
  3178. NumberValue110.Name = "SetRev"
  3179. NumberValue110.Parent = Sound109
  3180. NumberValue110.Value = 2.5
  3181. NumberValue111.Name = "SetPitch"
  3182. NumberValue111.Parent = Sound109
  3183. NumberValue111.Value = 1.1
  3184. TextButton112.Name = "Start"
  3185. TextButton112.Parent = Folder100
  3186. TextButton112.Position = UDim2.new(1, -189, 1, -50)
  3187. TextButton112.Size = UDim2.new(0, 100, 0, 30)
  3188. TextButton112.BackgroundColor = BrickColor.new("Crimson")
  3189. TextButton112.BackgroundColor3 = Color3.new(0.741176, 0, 0)
  3190. TextButton112.BorderSizePixel = 0
  3191. TextButton112.Font = Enum.Font.SourceSansLight
  3192. TextButton112.FontSize = Enum.FontSize.Size24
  3193. TextButton112.Text = "Engine: Off"
  3194. TextButton112.TextColor = BrickColor.new("Institutional white")
  3195. TextButton112.TextColor3 = Color3.new(1, 1, 1)
  3196. TextButton112.TextSize = 20
  3197. LocalScript113.Name = "ButtonScript"
  3198. LocalScript113.Parent = TextButton112
  3199. table.insert(cors,sandbox(LocalScript113,function()
  3200. --[[
  3201. Button created by SprinterBZR. I will help you how to make a startup script. Or simply, you can just copy-paste into another car.
  3202. Touching some of the scripts can break the car. I advise you not touch these scripts.
  3203. --]]
  3204. wait(0.2) -- Removing this wait could break the script. Please do not touch this.
  3205. -- Variables (best not to touch these!)
  3206. local button = script.Parent
  3207. local car = script.Parent.Parent.Car.Value
  3208. local sound = script.Parent.Start
  3209. sound.Parent = car.DriveSeat -- What brick the start sound is playing from.
  3210. button.MouseButton1Click:connect(function() -- Event when the button is clicked
  3211. if script.Parent.Text == "Engine: Off" then -- If the text says it's off then..
  3212. sound:Play() -- Startup sound plays..
  3213. wait(1) -- For realism. Okay?
  3214. script.Parent.Parent.IsOn.Value = true -- The car is is on, or in other words, start up the car.
  3215. button.Text = "Engine: On" -- You don't really need this, but I would keep it.
  3216. else -- If it's on then when you click the button,
  3217. script.Parent.Parent.IsOn.Value = false -- The car is turned off.
  3218. button.Text = "Engine: Off"
  3219. end -- Don't touch this.
  3220. end) -- And don't touch this either.
  3221.  
  3222. end))
  3223. Sound114.Name = "Start"
  3224. Sound114.Parent = TextButton112
  3225. Sound114.PlayOnRemove = true
  3226. Sound114.SoundId = "rbxassetid://4809574295"
  3227. Sound114.Volume = 10
  3228. Frame115.Name = "RPMLight"
  3229. Frame115.Parent = Folder100
  3230. Frame115.Size = UDim2.new(1, 0, 1, 0)
  3231. Frame115.BackgroundColor = BrickColor.new("Institutional white")
  3232. Frame115.BackgroundColor3 = Color3.new(1, 1, 1)
  3233. Frame115.BackgroundTransparency = 1
  3234. Frame115.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  3235. Frame115.BorderSizePixel = 0
  3236. LocalScript116.Name = "RPMLIGHT_AC6"
  3237. LocalScript116.Parent = Frame115
  3238. table.insert(cors,sandbox(LocalScript116,function()
  3239. --[[
  3240. ___ _______ _
  3241. / _ |____/ ___/ / ___ ____ ___ (_)__
  3242. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
  3243. /_/ |_| \___/_//_/\_,_/___/___/_/___/
  3244. SecondLogic @ Inspare RPM LIGHT BY TOUGEZILA
  3245. ]]
  3246.  
  3247.  
  3248.  
  3249. local car = script.Parent.Parent.Car.Value
  3250. car.DriveSeat.HeadsUpDisplay = false
  3251.  
  3252. local _Tune = require(car["A-Chassis Tune"])
  3253.  
  3254. local _pRPM = _Tune.PeakRPM
  3255. local _lRPM = _Tune.Redline
  3256.  
  3257. local revEnd = math.ceil(_lRPM/1000)
  3258.  
  3259. local Drive={}
  3260.  
  3261.  
  3262. local RPMON = 6000
  3263.  
  3264. local RPMOFF = RPMON -100
  3265.  
  3266. script.Parent.Parent.Values.RPM.Changed:connect(function()
  3267. local Roundspeed = script.Parent.Parent.Values.RPM.Value
  3268.  
  3269. if Roundspeed <= RPMON then script.Parent.RPMLIGHT.Image = "rbxassetid://90124950"
  3270.  
  3271. elseif Roundspeed >= RPMOFF then script.Parent.RPMLIGHT.Image = "rbxassetid://117959738"
  3272. end
  3273.  
  3274. end)
  3275.  
  3276.  
  3277.  
  3278.  
  3279. end))
  3280. ImageLabel117.Name = "RPMLIGHT"
  3281. ImageLabel117.Parent = Frame115
  3282. ImageLabel117.Position = UDim2.new(0.49000001, -70, 1, -230)
  3283. ImageLabel117.Size = UDim2.new(0, 40, 0, 40)
  3284. ImageLabel117.BackgroundColor = BrickColor.new("Institutional white")
  3285. ImageLabel117.BackgroundColor3 = Color3.new(1, 1, 1)
  3286. ImageLabel117.BackgroundTransparency = 1
  3287. ImageLabel117.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  3288. ImageLabel117.Image = "rbxassetid://90124950"
  3289. Frame118.Name = "AC6_Stock_Gauges"
  3290. Frame118.Parent = Folder100
  3291. Frame118.Size = UDim2.new(1, 0, 1, 0)
  3292. Frame118.BackgroundColor = BrickColor.new("Institutional white")
  3293. Frame118.BackgroundColor3 = Color3.new(1, 1, 1)
  3294. Frame118.BackgroundTransparency = 1
  3295. Frame118.BorderSizePixel = 0
  3296. Frame119.Name = "Tach"
  3297. Frame119.Parent = Frame118
  3298. Frame119.Position = UDim2.new(0.5, -150, 1, -100)
  3299. Frame119.BackgroundColor = BrickColor.new("Institutional white")
  3300. Frame119.BackgroundColor3 = Color3.new(1, 1, 1)
  3301. Frame119.BorderSizePixel = 0
  3302. Frame120.Name = "Needle"
  3303. Frame120.Parent = Frame119
  3304. Frame120.Rotation = 45
  3305. Frame120.BackgroundColor = BrickColor.new("Institutional white")
  3306. Frame120.BackgroundColor3 = Color3.new(1, 1, 1)
  3307. Frame120.BorderSizePixel = 0
  3308. Frame121.Parent = Frame120
  3309. Frame121.Position = UDim2.new(0, -2, 0, -10)
  3310. Frame121.Size = UDim2.new(0, 4, 0, 110)
  3311. Frame121.BackgroundColor = BrickColor.new("Really red")
  3312. Frame121.BackgroundColor3 = Color3.new(1, 0, 0)
  3313. Frame121.BackgroundTransparency = 0.10000000149012
  3314. Frame121.BorderSizePixel = 0
  3315. Frame121.ZIndex = 2
  3316. Frame122.Name = "Speedo"
  3317. Frame122.Parent = Frame118
  3318. Frame122.Position = UDim2.new(0.5, 150, 1, -100)
  3319. Frame122.BackgroundColor = BrickColor.new("Institutional white")
  3320. Frame122.BackgroundColor3 = Color3.new(1, 1, 1)
  3321. Frame122.BorderSizePixel = 0
  3322. Frame123.Name = "Needle"
  3323. Frame123.Parent = Frame122
  3324. Frame123.Rotation = 45
  3325. Frame123.BackgroundColor = BrickColor.new("Institutional white")
  3326. Frame123.BackgroundColor3 = Color3.new(1, 1, 1)
  3327. Frame123.BorderSizePixel = 0
  3328. Frame124.Parent = Frame123
  3329. Frame124.Position = UDim2.new(0, -2, 0, -10)
  3330. Frame124.Size = UDim2.new(0, 4, 0, 110)
  3331. Frame124.BackgroundColor = BrickColor.new("Really red")
  3332. Frame124.BackgroundColor3 = Color3.new(1, 0, 0)
  3333. Frame124.BackgroundTransparency = 0.10000000149012
  3334. Frame124.BorderSizePixel = 0
  3335. Frame124.ZIndex = 2
  3336. Frame125.Name = "ln"
  3337. Frame125.Parent = Frame118
  3338. Frame125.Rotation = 45
  3339. Frame125.Visible = false
  3340. Frame125.BackgroundColor = BrickColor.new("Institutional white")
  3341. Frame125.BackgroundColor3 = Color3.new(1, 1, 1)
  3342. Frame125.BorderSizePixel = 0
  3343. Frame126.Parent = Frame125
  3344. Frame126.Position = UDim2.new(0, -2, 0, 105)
  3345. Frame126.Size = UDim2.new(0, 3, 0, 5)
  3346. Frame126.BackgroundColor = BrickColor.new("Institutional white")
  3347. Frame126.BackgroundColor3 = Color3.new(1, 1, 1)
  3348. Frame126.BackgroundTransparency = 0.10000000149012
  3349. Frame126.BorderSizePixel = 0
  3350. TextLabel127.Name = "Num"
  3351. TextLabel127.Parent = Frame125
  3352. TextLabel127.Position = UDim2.new(0, 0, 0, 88)
  3353. TextLabel127.Rotation = -45
  3354. TextLabel127.Visible = false
  3355. TextLabel127.BackgroundColor = BrickColor.new("Institutional white")
  3356. TextLabel127.BackgroundColor3 = Color3.new(1, 1, 1)
  3357. TextLabel127.BackgroundTransparency = 1
  3358. TextLabel127.BorderSizePixel = 0
  3359. TextLabel127.Font = Enum.Font.ArialBold
  3360. TextLabel127.FontSize = Enum.FontSize.Size18
  3361. TextLabel127.Text = "0"
  3362. TextLabel127.TextColor = BrickColor.new("Institutional white")
  3363. TextLabel127.TextColor3 = Color3.new(1, 1, 1)
  3364. TextLabel127.TextSize = 18
  3365. TextLabel127.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
  3366. TextLabel127.TextStrokeTransparency = 0.89999997615814
  3367. TextLabel127.TextTransparency = 0.10000000149012
  3368. TextLabel128.Name = "Gear"
  3369. TextLabel128.Parent = Frame118
  3370. TextLabel128.Position = UDim2.new(0.5, -120, 1, -70)
  3371. TextLabel128.BackgroundColor = BrickColor.new("Institutional white")
  3372. TextLabel128.BackgroundColor3 = Color3.new(1, 1, 1)
  3373. TextLabel128.BackgroundTransparency = 1
  3374. TextLabel128.BorderSizePixel = 0
  3375. TextLabel128.Font = Enum.Font.ArialBold
  3376. TextLabel128.FontSize = Enum.FontSize.Size48
  3377. TextLabel128.Text = "N"
  3378. TextLabel128.TextColor = BrickColor.new("Institutional white")
  3379. TextLabel128.TextColor3 = Color3.new(1, 1, 1)
  3380. TextLabel128.TextSize = 48
  3381. TextLabel128.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
  3382. TextLabel128.TextStrokeTransparency = 0.89999997615814
  3383. TextLabel128.TextTransparency = 0.10000000149012
  3384. TextLabel129.Name = "ABS"
  3385. TextLabel129.Parent = Frame118
  3386. TextLabel129.Position = UDim2.new(0.5, 130, 1, -100)
  3387. TextLabel129.Visible = false
  3388. TextLabel129.BackgroundColor = BrickColor.new("Institutional white")
  3389. TextLabel129.BackgroundColor3 = Color3.new(1, 1, 1)
  3390. TextLabel129.BackgroundTransparency = 1
  3391. TextLabel129.BorderSizePixel = 0
  3392. TextLabel129.Font = Enum.Font.ArialBold
  3393. TextLabel129.FontSize = Enum.FontSize.Size18
  3394. TextLabel129.Text = "ABS"
  3395. TextLabel129.TextColor = BrickColor.new("Deep orange")
  3396. TextLabel129.TextColor3 = Color3.new(1, 0.666667, 0)
  3397. TextLabel129.TextSize = 18
  3398. TextLabel129.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
  3399. TextLabel129.TextStrokeTransparency = 0.89999997615814
  3400. TextLabel129.TextTransparency = 0.10000000149012
  3401. TextLabel129.TextXAlignment = Enum.TextXAlignment.Right
  3402. TextLabel130.Name = "PBrake"
  3403. TextLabel130.Parent = Frame118
  3404. TextLabel130.Position = UDim2.new(0.5, 200, 1, -120)
  3405. TextLabel130.Visible = false
  3406. TextLabel130.BackgroundColor = BrickColor.new("Institutional white")
  3407. TextLabel130.BackgroundColor3 = Color3.new(1, 1, 1)
  3408. TextLabel130.BackgroundTransparency = 1
  3409. TextLabel130.BorderSizePixel = 0
  3410. TextLabel130.Font = Enum.Font.ArialBold
  3411. TextLabel130.FontSize = Enum.FontSize.Size24
  3412. TextLabel130.Text = "P"
  3413. TextLabel130.TextColor = BrickColor.new("Persimmon")
  3414. TextLabel130.TextColor3 = Color3.new(1, 0.333333, 0.498039)
  3415. TextLabel130.TextSize = 24
  3416. TextLabel130.TextStrokeColor3 = Color3.new(1, 0.333333, 0.498039)
  3417. TextLabel130.TextStrokeTransparency = 0.89999997615814
  3418. TextLabel130.TextTransparency = 0.10000000149012
  3419. TextLabel130.TextXAlignment = Enum.TextXAlignment.Right
  3420. TextLabel131.Name = "TCS"
  3421. TextLabel131.Parent = Frame118
  3422. TextLabel131.Position = UDim2.new(0.5, 130, 1, -120)
  3423. TextLabel131.Visible = false
  3424. TextLabel131.BackgroundColor = BrickColor.new("Institutional white")
  3425. TextLabel131.BackgroundColor3 = Color3.new(1, 1, 1)
  3426. TextLabel131.BackgroundTransparency = 1
  3427. TextLabel131.BorderSizePixel = 0
  3428. TextLabel131.Font = Enum.Font.ArialBold
  3429. TextLabel131.FontSize = Enum.FontSize.Size18
  3430. TextLabel131.Text = "TCS"
  3431. TextLabel131.TextColor = BrickColor.new("Deep orange")
  3432. TextLabel131.TextColor3 = Color3.new(1, 0.666667, 0)
  3433. TextLabel131.TextSize = 18
  3434. TextLabel131.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
  3435. TextLabel131.TextStrokeTransparency = 0.89999997615814
  3436. TextLabel131.TextTransparency = 0.10000000149012
  3437. TextLabel131.TextXAlignment = Enum.TextXAlignment.Right
  3438. TextLabel132.Name = "TMode"
  3439. TextLabel132.Parent = Frame118
  3440. TextLabel132.Position = UDim2.new(0.5, -165, 1, -40)
  3441. TextLabel132.Size = UDim2.new(0, 40, 0, 20)
  3442. TextLabel132.BackgroundColor = BrickColor.new("Deep orange")
  3443. TextLabel132.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  3444. TextLabel132.BackgroundTransparency = 0.5
  3445. TextLabel132.BorderSizePixel = 0
  3446. TextLabel132.Font = Enum.Font.ArialBold
  3447. TextLabel132.FontSize = Enum.FontSize.Size18
  3448. TextLabel132.Text = "A/T"
  3449. TextLabel132.TextColor = BrickColor.new("Institutional white")
  3450. TextLabel132.TextColor3 = Color3.new(1, 1, 1)
  3451. TextLabel132.TextSize = 18
  3452. TextLabel132.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
  3453. TextLabel132.TextStrokeTransparency = 0.89999997615814
  3454. TextLabel132.TextTransparency = 0.10000000149012
  3455. TextButton133.Name = "Speed"
  3456. TextButton133.Parent = Frame118
  3457. TextButton133.Position = UDim2.new(0.5, 150, 1, -80)
  3458. TextButton133.Size = UDim2.new(0, 100, 0, 20)
  3459. TextButton133.BackgroundColor = BrickColor.new("Institutional white")
  3460. TextButton133.BackgroundColor3 = Color3.new(1, 1, 1)
  3461. TextButton133.BackgroundTransparency = 1
  3462. TextButton133.BorderSizePixel = 0
  3463. TextButton133.ZIndex = 2
  3464. TextButton133.Font = Enum.Font.ArialBold
  3465. TextButton133.FontSize = Enum.FontSize.Size24
  3466. TextButton133.Text = "0 SPS"
  3467. TextButton133.TextColor = BrickColor.new("Institutional white")
  3468. TextButton133.TextColor3 = Color3.new(1, 1, 1)
  3469. TextButton133.TextSize = 24
  3470. TextButton133.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
  3471. TextButton133.TextStrokeTransparency = 0.89999997615814
  3472. TextButton133.TextTransparency = 0.10000000149012
  3473. TextButton133.TextXAlignment = Enum.TextXAlignment.Right
  3474. TextLabel134.Name = "ABS"
  3475. TextLabel134.Parent = Frame118
  3476. TextLabel134.Position = UDim2.new(0.5, 130, 1, -140)
  3477. TextLabel134.Visible = false
  3478. TextLabel134.BackgroundColor = BrickColor.new("Institutional white")
  3479. TextLabel134.BackgroundColor3 = Color3.new(1, 1, 1)
  3480. TextLabel134.BackgroundTransparency = 1
  3481. TextLabel134.BorderSizePixel = 0
  3482. TextLabel134.Font = Enum.Font.ArialBold
  3483. TextLabel134.FontSize = Enum.FontSize.Size18
  3484. TextLabel134.Text = "ABS"
  3485. TextLabel134.TextColor = BrickColor.new("Deep orange")
  3486. TextLabel134.TextColor3 = Color3.new(1, 0.666667, 0)
  3487. TextLabel134.TextSize = 18
  3488. TextLabel134.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
  3489. TextLabel134.TextStrokeTransparency = 0.89999997615814
  3490. TextLabel134.TextTransparency = 0.10000000149012
  3491. TextLabel134.TextXAlignment = Enum.TextXAlignment.Right
  3492. LocalScript135.Name = "Gauges_AC6"
  3493. LocalScript135.Parent = Frame118
  3494. table.insert(cors,sandbox(LocalScript135,function()
  3495. --[[
  3496. ___ _______ _
  3497. / _ |____/ ___/ / ___ ____ ___ (_)__
  3498. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
  3499. /_/ |_| \___/_//_/\_,_/___/___/_/___/
  3500. SecondLogic @ Inspare
  3501. ]]
  3502.  
  3503.  
  3504. local autoscaling = false --Estimates top speed
  3505.  
  3506. local UNITS = { --Click on speed to change units
  3507. --First unit is default
  3508. {
  3509. units = "MPH" ,
  3510. scaling = (10/12) * (60/88) , -- 1 stud : 10 inches | ft/s to MPH
  3511. maxSpeed = 230 ,
  3512. spInc = 20 , -- Increment between labelled notches
  3513. },
  3514.  
  3515. {
  3516. units = "KM/H" ,
  3517. scaling = (10/12) * 1.09728 , -- 1 stud : 10 inches | ft/s to KP/H
  3518. maxSpeed = 370 ,
  3519. spInc = 40 , -- Increment between labelled notches
  3520. },
  3521.  
  3522. {
  3523. units = "SPS" ,
  3524. scaling = 1 , -- Roblox standard
  3525. maxSpeed = 400 ,
  3526. spInc = 40 , -- Increment between labelled notches
  3527. }
  3528. }
  3529.  
  3530. -----------------------------------------------------------------------------------------------
  3531.  
  3532. script.Parent:WaitForChild("Speedo")
  3533. script.Parent:WaitForChild("Tach")
  3534. script.Parent:WaitForChild("ln")
  3535. script.Parent:WaitForChild("Gear")
  3536. script.Parent:WaitForChild("Speed")
  3537.  
  3538. local player=game.Players.LocalPlayer
  3539. local mouse=player:GetMouse()
  3540.  
  3541. local car = script.Parent.Parent.Car.Value
  3542. car.DriveSeat.HeadsUpDisplay = false
  3543.  
  3544. local _Tune = require(car["A-Chassis Tune"])
  3545.  
  3546. local _pRPM = _Tune.PeakRPM
  3547. local _lRPM = _Tune.Redline
  3548.  
  3549. local currentUnits = 1
  3550. local revEnd = math.ceil(_lRPM/1000)
  3551.  
  3552. --Automatic Gauge Scaling
  3553. if autoscaling then
  3554. local Drive={}
  3555. if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
  3556. if car.Wheels:FindFirstChild("FL")~= nil then
  3557. table.insert(Drive,car.Wheels.FL)
  3558. end
  3559. if car.Wheels:FindFirstChild("FR")~= nil then
  3560. table.insert(Drive,car.Wheels.FR)
  3561. end
  3562. if car.Wheels:FindFirstChild("F")~= nil then
  3563. table.insert(Drive,car.Wheels.F)
  3564. end
  3565. end
  3566. if _Tune.Config == "RWD" or _Tune.Config == "AWD" then
  3567. if car.Wheels:FindFirstChild("RL")~= nil then
  3568. table.insert(Drive,car.Wheels.RL)
  3569. end
  3570. if car.Wheels:FindFirstChild("RR")~= nil then
  3571. table.insert(Drive,car.Wheels.RR)
  3572. end
  3573. if car.Wheels:FindFirstChild("R")~= nil then
  3574. table.insert(Drive,car.Wheels.R)
  3575. end
  3576. end
  3577.  
  3578. local wDia = 0
  3579. for i,v in pairs(Drive) do
  3580. if v.Size.x>wDia then wDia = v.Size.x end
  3581. end
  3582. Drive = nil
  3583. for i,v in pairs(UNITS) do
  3584. v.maxSpeed = math.ceil(v.scaling*wDia*math.pi*_lRPM/60/_Tune.Ratios[#_Tune.Ratios]/_Tune.FinalDrive)
  3585. v.spInc = math.max(math.ceil(v.maxSpeed/200)*20,20)
  3586. end
  3587. end
  3588.  
  3589. for i=0,revEnd*2 do
  3590. local ln = script.Parent.ln:clone()
  3591. ln.Parent = script.Parent.Tach
  3592. ln.Rotation = 45 + i * 225 / (revEnd*2)
  3593. ln.Num.Text = i/2
  3594. ln.Num.Rotation = -ln.Rotation
  3595. if i*500>=math.floor(_pRPM/500)*500 then
  3596. ln.Frame.BackgroundColor3 = Color3.new(1,0,0)
  3597. if i<revEnd*2 then
  3598. ln2 = ln:clone()
  3599. ln2.Parent = script.Parent.Tach
  3600. ln2.Rotation = 45 + (i+.5) * 225 / (revEnd*2)
  3601. ln2.Num:Destroy()
  3602. ln2.Visible=true
  3603. end
  3604. end
  3605. if i%2==0 then
  3606. ln.Frame.Size = UDim2.new(0,3,0,10)
  3607. ln.Frame.Position = UDim2.new(0,-1,0,100)
  3608. ln.Num.Visible = true
  3609. else
  3610. ln.Num:Destroy()
  3611. end
  3612. ln.Visible=true
  3613. end
  3614.  
  3615. local lns = Instance.new("Frame",script.Parent.Speedo)
  3616. lns.Name = "lns"
  3617. lns.BackgroundTransparency = 1
  3618. lns.BorderSizePixel = 0
  3619. lns.Size = UDim2.new(0,0,0,0)
  3620. for i=1,90 do
  3621. local ln = script.Parent.ln:clone()
  3622. ln.Parent = lns
  3623. ln.Rotation = 45 + 225*(i/90)
  3624. if i%2==0 then
  3625. ln.Frame.Size = UDim2.new(0,2,0,10)
  3626. ln.Frame.Position = UDim2.new(0,-1,0,100)
  3627. else
  3628. ln.Frame.Size = UDim2.new(0,3,0,5)
  3629. end
  3630. ln.Num:Destroy()
  3631. ln.Visible=true
  3632. end
  3633.  
  3634. for i,v in pairs(UNITS) do
  3635. local lnn = Instance.new("Frame",script.Parent.Speedo)
  3636. lnn.BackgroundTransparency = 1
  3637. lnn.BorderSizePixel = 0
  3638. lnn.Size = UDim2.new(0,0,0,0)
  3639. lnn.Name = v.units
  3640. if i~= 1 then lnn.Visible=false end
  3641.  
  3642. for i=0,v.maxSpeed,v.spInc do
  3643. local ln = script.Parent.ln:clone()
  3644. ln.Parent = lnn
  3645. ln.Rotation = 45 + 225*(i/v.maxSpeed)
  3646. ln.Num.Text = i
  3647. ln.Num.TextSize = 14
  3648. ln.Num.Rotation = -ln.Rotation
  3649. ln.Frame:Destroy()
  3650. ln.Num.Visible=true
  3651. ln.Visible=true
  3652. end
  3653. end
  3654.  
  3655. if script.Parent.Parent.IsOn.Value then
  3656. script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
  3657. end
  3658.  
  3659. script.Parent.Parent.IsOn.Changed:connect(function()
  3660. if script.Parent.Parent.IsOn.Value then
  3661. script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
  3662. end
  3663. end)
  3664.  
  3665. script.Parent.Parent.Values.RPM.Changed:connect(function()
  3666. script.Parent.Tach.Needle.Rotation = 45 + 225 * math.min(1,script.Parent.Parent.Values.RPM.Value / (revEnd*1000))
  3667. end)
  3668.  
  3669. script.Parent.Parent.Values.Gear.Changed:connect(function()
  3670. local gearText = script.Parent.Parent.Values.Gear.Value
  3671. if gearText == 0 then gearText = "N"
  3672. elseif gearText == -1 then gearText = "R"
  3673. end
  3674. script.Parent.Gear.Text = gearText
  3675. end)
  3676.  
  3677. script.Parent.Parent.Values.TCS.Changed:connect(function()
  3678. if _Tune.TCSEnabled then
  3679. if script.Parent.Parent.Values.TCS.Value then
  3680. script.Parent.TCS.TextColor3 = Color3.new(1,170/255,0)
  3681. script.Parent.TCS.TextStrokeColor3 = Color3.new(1,170/255,0)
  3682. if script.Parent.Parent.Values.TCSActive.Value then
  3683. wait()
  3684. script.Parent.TCS.Visible = not script.Parent.TCS.Visible
  3685. else
  3686. wait()
  3687. script.Parent.TCS.Visible = false
  3688. end
  3689. else
  3690. script.Parent.TCS.Visible = true
  3691. script.Parent.TCS.TextColor3 = Color3.new(1,0,0)
  3692. script.Parent.TCS.TextStrokeColor3 = Color3.new(1,0,0)
  3693. end
  3694. else
  3695. script.Parent.TCS.Visible = false
  3696. end
  3697. end)
  3698.  
  3699. script.Parent.Parent.Values.TCSActive.Changed:connect(function()
  3700. if _Tune.TCSEnabled then
  3701. if script.Parent.Parent.Values.TCSActive.Value and script.Parent.Parent.Values.TCS.Value then
  3702. wait()
  3703. script.Parent.TCS.Visible = not script.Parent.TCS.Visible
  3704. elseif not script.Parent.Parent.Values.TCS.Value then
  3705. wait()
  3706. script.Parent.TCS.Visible = true
  3707. else
  3708. wait()
  3709. script.Parent.TCS.Visible = false
  3710. end
  3711. else
  3712. script.Parent.TCS.Visible = false
  3713. end
  3714. end)
  3715.  
  3716. script.Parent.TCS.Changed:connect(function()
  3717. if _Tune.TCSEnabled then
  3718. if script.Parent.Parent.Values.TCSActive.Value and script.Parent.Parent.Values.TCS.Value then
  3719. wait()
  3720. script.Parent.TCS.Visible = not script.Parent.TCS.Visible
  3721. elseif not script.Parent.Parent.Values.TCS.Value then
  3722. wait()
  3723. script.Parent.TCS.Visible = true
  3724. end
  3725. else
  3726. if script.Parent.TCS.Visible then
  3727. script.Parent.TCS.Visible = false
  3728. end
  3729. end
  3730. end)
  3731.  
  3732. script.Parent.Parent.Values.ABS.Changed:connect(function()
  3733. if _Tune.ABSEnabled then
  3734. if script.Parent.Parent.Values.ABS.Value then
  3735. script.Parent.ABS.TextColor3 = Color3.new(1,170/255,0)
  3736. script.Parent.ABS.TextStrokeColor3 = Color3.new(1,170/255,0)
  3737. if script.Parent.Parent.Values.ABSActive.Value then
  3738. wait()
  3739. script.Parent.ABS.Visible = not script.Parent.ABS.Visible
  3740. else
  3741. wait()
  3742. script.Parent.ABS.Visible = false
  3743. end
  3744. else
  3745. script.Parent.ABS.Visible = true
  3746. script.Parent.ABS.TextColor3 = Color3.new(1,0,0)
  3747. script.Parent.ABS.TextStrokeColor3 = Color3.new(1,0,0)
  3748. end
  3749. else
  3750. script.Parent.ABS.Visible = false
  3751. end
  3752. end)
  3753.  
  3754. script.Parent.Parent.Values.ABSActive.Changed:connect(function()
  3755. if _Tune.ABSEnabled then
  3756. if script.Parent.Parent.Values.ABSActive.Value and script.Parent.Parent.Values.ABS.Value then
  3757. wait()
  3758. script.Parent.ABS.Visible = not script.Parent.ABS.Visible
  3759. elseif not script.Parent.Parent.Values.ABS.Value then
  3760. wait()
  3761. script.Parent.ABS.Visible = true
  3762. else
  3763. wait()
  3764. script.Parent.ABS.Visible = false
  3765. end
  3766. else
  3767. script.Parent.ABS.Visible = false
  3768. end
  3769. end)
  3770.  
  3771. script.Parent.ABS.Changed:connect(function()
  3772. if _Tune.ABSEnabled then
  3773. if script.Parent.Parent.Values.ABSActive.Value and script.Parent.Parent.Values.ABS.Value then
  3774. wait()
  3775. script.Parent.ABS.Visible = not script.Parent.ABS.Visible
  3776. elseif not script.Parent.Parent.Values.ABS.Value then
  3777. wait()
  3778. script.Parent.ABS.Visible = true
  3779. end
  3780. else
  3781. if script.Parent.ABS.Visible then
  3782. script.Parent.ABS.Visible = false
  3783. end
  3784. end
  3785. end)
  3786.  
  3787.  
  3788. function PBrake()
  3789. script.Parent.PBrake.Visible = script.Parent.Parent.Values.PBrake.Value
  3790. end
  3791. script.Parent.Parent.Values.PBrake.Changed:connect(PBrake)
  3792.  
  3793. function Gear()
  3794. if script.Parent.Parent.Values.TransmissionMode.Value == "Auto" then
  3795. script.Parent.TMode.Text = "A/T"
  3796. script.Parent.TMode.BackgroundColor3 = Color3.new(1,170/255,0)
  3797. elseif script.Parent.Parent.Values.TransmissionMode.Value == "Semi" then
  3798. script.Parent.TMode.Text = "S/T"
  3799. script.Parent.TMode.BackgroundColor3 = Color3.new(0, 170/255, 127/255)
  3800. else
  3801. script.Parent.TMode.Text = "M/T"
  3802. script.Parent.TMode.BackgroundColor3 = Color3.new(1,85/255,.5)
  3803. end
  3804. end
  3805. script.Parent.Parent.Values.TransmissionMode.Changed:connect(Gear)
  3806.  
  3807. script.Parent.Parent.Values.Velocity.Changed:connect(function(property)
  3808. script.Parent.Speedo.Needle.Rotation =45 + 225 * math.min(1,UNITS[currentUnits].scaling*script.Parent.Parent.Values.Velocity.Value.Magnitude/UNITS[currentUnits].maxSpeed)
  3809. script.Parent.Speed.Text = math.floor(UNITS[currentUnits].scaling*script.Parent.Parent.Values.Velocity.Value.Magnitude) .. " "..UNITS[currentUnits].units
  3810. end)
  3811.  
  3812. script.Parent.Speed.MouseButton1Click:connect(function()
  3813. if currentUnits==#UNITS then
  3814. currentUnits = 1
  3815. else
  3816. currentUnits = currentUnits+1
  3817. end
  3818. for i,v in pairs(script.Parent.Speedo:GetChildren()) do
  3819. v.Visible=v.Name==UNITS[currentUnits].units or v.Name=="Needle" or v.Name=="lns"
  3820. end
  3821. script.Parent.Speed.Text = math.floor(UNITS[currentUnits].scaling*script.Parent.Parent.Values.Velocity.Value.Magnitude) .. " "..UNITS[currentUnits].units
  3822. end)
  3823.  
  3824. wait(.1)
  3825. Gear()
  3826. PBrake()
  3827.  
  3828. end))
  3829. Frame136.Name = "AC6_Controls_Module"
  3830. Frame136.Parent = Folder100
  3831. Frame136.Size = UDim2.new(1, 0, 1, 0)
  3832. Frame136.BackgroundColor = BrickColor.new("Institutional white")
  3833. Frame136.BackgroundColor3 = Color3.new(1, 1, 1)
  3834. Frame136.BackgroundTransparency = 1
  3835. Frame136.BorderSizePixel = 0
  3836. Frame136.ZIndex = 3
  3837. LocalScript137.Name = "Controls_AC6"
  3838. LocalScript137.Parent = Frame136
  3839. table.insert(cors,sandbox(LocalScript137,function()
  3840. --[[
  3841. ___ _______ _
  3842. / _ |____/ ___/ / ___ ____ ___ (_)__
  3843. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
  3844. /_/ |_| \___/_//_/\_,_/___/___/_/___/
  3845. SecondLogic @ Inspare
  3846. ]]
  3847.  
  3848.  
  3849. ---Controls UI
  3850. script.Parent.Parent:WaitForChild("Controls")
  3851. script.Parent.Parent:WaitForChild("ControlsOpen")
  3852. script.Parent:WaitForChild("Window")
  3853. script.Parent:WaitForChild("Toggle")
  3854.  
  3855. local car = script.Parent.Parent.Car.Value
  3856. local _Tune = require(car["A-Chassis Tune"])
  3857. local UserInputService = game:GetService("UserInputService")
  3858. local cPanel = script.Parent
  3859. local Controls = script.Parent.Parent.Controls
  3860.  
  3861. local ver = require(car["A-Chassis Tune"].README)
  3862. cPanel.Window["//INSPARE"].Text = "A-Chassis "..ver.." // INSPARE"
  3863.  
  3864. local controlsOpen = false
  3865. local cInputB = nil
  3866. local cInputT = nil
  3867. local cInput = false
  3868.  
  3869. local UIS1 = nil
  3870. local UIS2 = nil
  3871.  
  3872. for i,v in pairs(_Tune.Peripherals) do
  3873. script.Parent.Parent.Controls:WaitForChild(i)
  3874. local slider = cPanel.Window.Content[i]
  3875. slider.Text = v.."%"
  3876. slider.S.CanvasPosition=Vector2.new(v*(slider.S.CanvasSize.X.Offset-slider.S.Size.X.Offset)/100,0)
  3877. slider.S.Changed:connect(function(property)
  3878. if property=="CanvasPosition" then
  3879. Controls[i].Value = math.floor(100*slider.S.CanvasPosition.x/(slider.S.CanvasSize.X.Offset-slider.S.Size.X.Offset))
  3880. slider.Text = Controls[i].Value.."%"
  3881. end
  3882. end)
  3883. end
  3884.  
  3885. for i,v in pairs(_Tune.Controls) do
  3886. script.Parent.Parent.Controls:WaitForChild(i)
  3887. local button = cPanel.Window.Content[i]
  3888. button.Text = v.Name
  3889. button.MouseButton1Click:connect(function()
  3890. if UIS1 ~= nil then UIS1:disconnect() end
  3891. if UIS2 ~= nil then UIS2:disconnect() end
  3892. UIS1 = UserInputService.InputBegan:connect(function(input)
  3893. if cInput then
  3894. cInputB = input.KeyCode
  3895. cInputT = input.UserInputType
  3896. end
  3897. end)
  3898. UIS2 = UserInputService.InputChanged:connect(function(input)
  3899. if cInput and (input.KeyCode==Enum.KeyCode.Thumbstick1 or input.KeyCode==Enum.KeyCode.Thumbstick2) then
  3900. cInputB = input.KeyCode
  3901. cInputT = input.UserInputType
  3902. end
  3903. end)
  3904. script.Parent.Parent.ControlsOpen.Value = true
  3905. cPanel.Window.Overlay.Visible = true
  3906. cInput = true
  3907. repeat wait() until cInputB~=nil
  3908. if UIS1 ~= nil then UIS1:disconnect() end
  3909. if UIS2 ~= nil then UIS2:disconnect() end
  3910. if cInputB == Enum.KeyCode.Return or cInputB == Enum.KeyCode.KeypadEnter then
  3911. --do nothing
  3912. elseif string.find(i,"Contlr")~=nil then
  3913. if cInputT.Name:find("Gamepad") then
  3914. Controls[i].Value = cInputB.Name
  3915. button.Text = cInputB.Name
  3916. else
  3917. cPanel.Window.Error.Visible = true
  3918. end
  3919. elseif i=="MouseThrottle" or i=="MouseBrake" then
  3920. if cInputT == Enum.UserInputType.MouseButton1 or cInputT == Enum.UserInputType.MouseButton2 then
  3921. Controls[i].Value = cInputT.Name
  3922. button.Text = cInputT.Name
  3923. elseif cInputT == Enum.UserInputType.Keyboard then
  3924. Controls[i].Value = cInputB.Name
  3925. button.Text = cInputB.Name
  3926. else
  3927. cPanel.Window.Error.Visible = true
  3928. end
  3929. else
  3930. if cInputT == Enum.UserInputType.Keyboard then
  3931. Controls[i].Value = cInputB.Name
  3932. button.Text = cInputB.Name
  3933. else
  3934. cPanel.Window.Error.Visible = true
  3935. end
  3936. end
  3937. cInputB = nil
  3938. cInputT = nil
  3939. cInput = false
  3940. wait(.2)
  3941. cPanel.Window.Overlay.Visible = false
  3942. script.Parent.Parent.ControlsOpen.Value = false
  3943. end)
  3944. end
  3945.  
  3946. cPanel.Window.Error.Changed:connect(function(property)
  3947. if property == "Visible" then
  3948. wait(3)
  3949. cPanel.Window.Error.Visible = false
  3950. end
  3951. end)
  3952.  
  3953. cPanel.Toggle.MouseButton1Click:connect(function()
  3954. controlsOpen = not controlsOpen
  3955. if controlsOpen then
  3956. cPanel.Toggle.BackgroundColor3 = Color3.new(1,85/255,.5)
  3957. cPanel.Window:TweenPosition(UDim2.new(0.5, -250,0.5, -250),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.7,true)
  3958. else
  3959. if UIS1 ~= nil then UIS1:disconnect() end
  3960. if UIS2 ~= nil then UIS2:disconnect() end
  3961. cPanel.Toggle.BackgroundColor3 = Color3.new(1,170/255,0)
  3962. cPanel.Window:TweenPosition(UDim2.new(0.5, -250,0, -500),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.7,true)
  3963. end
  3964. end)
  3965.  
  3966. cPanel.Window.Tabs.Keyboard.MouseButton1Click:connect(function()
  3967. cPanel.Window.Content:TweenPosition(UDim2.new(0, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  3968. cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  3969. cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  3970. cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  3971. end)
  3972.  
  3973. cPanel.Window.Tabs.Mouse.MouseButton1Click:connect(function()
  3974. cPanel.Window.Content:TweenPosition(UDim2.new(-1, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  3975. cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  3976. cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  3977. cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  3978. end)
  3979.  
  3980. cPanel.Window.Tabs.Controller.MouseButton1Click:connect(function()
  3981. cPanel.Window.Content:TweenPosition(UDim2.new(-2, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  3982. cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  3983. cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  3984. cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
  3985. end)
  3986.  
  3987. wait(.5)
  3988. cPanel.Toggle:TweenPosition(UDim2.new(0.5, -50, 1, -25),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,false)
  3989. for i=1,6 do
  3990. cPanel.Toggle.BackgroundColor3 = Color3.new(100/255,100/255,100/255)
  3991. wait(.2)
  3992. if controlsOpen then
  3993. cPanel.Toggle.BackgroundColor3 = Color3.new(1,85/255,.5)
  3994. else
  3995. cPanel.Toggle.BackgroundColor3 = Color3.new(1,170/255,0)
  3996. end
  3997. wait(.2)
  3998. end
  3999. end))
  4000. Frame138.Name = "Window"
  4001. Frame138.Parent = Frame136
  4002. Frame138.Position = UDim2.new(0.5, -250, 0, -500)
  4003. Frame138.Size = UDim2.new(0, 500, 0, 400)
  4004. Frame138.BackgroundColor = BrickColor.new("Really black")
  4005. Frame138.BackgroundColor3 = Color3.new(0, 0, 0)
  4006. Frame138.BackgroundTransparency = 0.5
  4007. Frame138.BorderSizePixel = 0
  4008. Frame138.ClipsDescendants = true
  4009. Frame138.ZIndex = 3
  4010. TextLabel139.Name = "Overlay"
  4011. TextLabel139.Parent = Frame138
  4012. TextLabel139.Visible = false
  4013. TextLabel139.Size = UDim2.new(1, 0, 1, 0)
  4014. TextLabel139.BackgroundColor = BrickColor.new("Institutional white")
  4015. TextLabel139.BackgroundColor3 = Color3.new(1, 1, 1)
  4016. TextLabel139.BackgroundTransparency = 0.5
  4017. TextLabel139.BorderSizePixel = 0
  4018. TextLabel139.ZIndex = 4
  4019. TextLabel139.Font = Enum.Font.SourceSansItalic
  4020. TextLabel139.FontSize = Enum.FontSize.Size28
  4021. TextLabel139.Text = "[Press a key to assign or Enter to cancel]"
  4022. TextLabel139.TextColor = BrickColor.new("Institutional white")
  4023. TextLabel139.TextColor3 = Color3.new(1, 1, 1)
  4024. TextLabel139.TextSize = 28
  4025. TextLabel139.TextStrokeColor3 = Color3.new(0.184314, 0.184314, 0.184314)
  4026. TextLabel139.TextStrokeTransparency = 0
  4027. TextLabel140.Name = "Error"
  4028. TextLabel140.Parent = Frame138
  4029. TextLabel140.Position = UDim2.new(0.5, 0, 0, 20)
  4030. TextLabel140.Visible = false
  4031. TextLabel140.BackgroundColor = BrickColor.new("Institutional white")
  4032. TextLabel140.BackgroundColor3 = Color3.new(1, 1, 1)
  4033. TextLabel140.BackgroundTransparency = 1
  4034. TextLabel140.BorderSizePixel = 0
  4035. TextLabel140.ZIndex = 3
  4036. TextLabel140.Font = Enum.Font.SourceSansItalic
  4037. TextLabel140.FontSize = Enum.FontSize.Size18
  4038. TextLabel140.Text = "Invalid Input"
  4039. TextLabel140.TextColor = BrickColor.new("Really red")
  4040. TextLabel140.TextColor3 = Color3.new(1, 0, 0)
  4041. TextLabel140.TextSize = 18
  4042. TextLabel140.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4043. TextLabel140.TextStrokeTransparency = 0.94999998807907
  4044. TextLabel141.Name = "//INSPARE"
  4045. TextLabel141.Parent = Frame138
  4046. TextLabel141.Position = UDim2.new(1, -20, 0, 20)
  4047. TextLabel141.BackgroundColor = BrickColor.new("Institutional white")
  4048. TextLabel141.BackgroundColor3 = Color3.new(1, 1, 1)
  4049. TextLabel141.BackgroundTransparency = 1
  4050. TextLabel141.BorderSizePixel = 0
  4051. TextLabel141.ZIndex = 3
  4052. TextLabel141.Font = Enum.Font.SourceSansLight
  4053. TextLabel141.FontSize = Enum.FontSize.Size14
  4054. TextLabel141.Text = "A-Chassis 6 by //INSPARE"
  4055. TextLabel141.TextColor = BrickColor.new("Institutional white")
  4056. TextLabel141.TextColor3 = Color3.new(1, 1, 1)
  4057. TextLabel141.TextSize = 14
  4058. TextLabel141.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4059. TextLabel141.TextStrokeTransparency = 0.94999998807907
  4060. TextLabel141.TextXAlignment = Enum.TextXAlignment.Right
  4061. TextLabel142.Name = "Header"
  4062. TextLabel142.Parent = Frame138
  4063. TextLabel142.Position = UDim2.new(0, 10, 0, 20)
  4064. TextLabel142.BackgroundColor = BrickColor.new("Institutional white")
  4065. TextLabel142.BackgroundColor3 = Color3.new(1, 1, 1)
  4066. TextLabel142.BackgroundTransparency = 1
  4067. TextLabel142.BorderSizePixel = 0
  4068. TextLabel142.ZIndex = 3
  4069. TextLabel142.Font = Enum.Font.SourceSansLight
  4070. TextLabel142.FontSize = Enum.FontSize.Size32
  4071. TextLabel142.Text = "Controls"
  4072. TextLabel142.TextColor = BrickColor.new("Institutional white")
  4073. TextLabel142.TextColor3 = Color3.new(1, 1, 1)
  4074. TextLabel142.TextSize = 32
  4075. TextLabel142.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4076. TextLabel142.TextStrokeTransparency = 0.94999998807907
  4077. TextLabel142.TextXAlignment = Enum.TextXAlignment.Left
  4078. Frame143.Name = "Tabs"
  4079. Frame143.Parent = Frame138
  4080. Frame143.Position = UDim2.new(0, 5, 0, 40)
  4081. Frame143.Size = UDim2.new(0, 490, 0, 20)
  4082. Frame143.BackgroundColor = BrickColor.new("Institutional white")
  4083. Frame143.BackgroundColor3 = Color3.new(1, 1, 1)
  4084. Frame143.BackgroundTransparency = 1
  4085. Frame143.BorderSizePixel = 0
  4086. Frame143.ClipsDescendants = true
  4087. Frame143.ZIndex = 3
  4088. TextButton144.Name = "Controller"
  4089. TextButton144.Parent = Frame143
  4090. TextButton144.Position = UDim2.new(0, 235, 0, -5)
  4091. TextButton144.Size = UDim2.new(0, 100, 0, 20)
  4092. TextButton144.BackgroundColor = BrickColor.new("Institutional white")
  4093. TextButton144.BackgroundColor3 = Color3.new(1, 1, 1)
  4094. TextButton144.BorderSizePixel = 0
  4095. TextButton144.ZIndex = 3
  4096. TextButton144.Font = Enum.Font.SourceSans
  4097. TextButton144.FontSize = Enum.FontSize.Size14
  4098. TextButton144.Text = "Controller"
  4099. TextButton144.TextColor = BrickColor.new("Dark stone grey")
  4100. TextButton144.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4101. TextButton144.TextSize = 14
  4102. TextButton144.TextStrokeTransparency = 0.94999998807907
  4103. TextButton144.TextYAlignment = Enum.TextYAlignment.Bottom
  4104. TextButton145.Name = "Mouse"
  4105. TextButton145.Parent = Frame143
  4106. TextButton145.Position = UDim2.new(0, 120, 0, -5)
  4107. TextButton145.Size = UDim2.new(0, 100, 0, 20)
  4108. TextButton145.BackgroundColor = BrickColor.new("Institutional white")
  4109. TextButton145.BackgroundColor3 = Color3.new(1, 1, 1)
  4110. TextButton145.BorderSizePixel = 0
  4111. TextButton145.ZIndex = 3
  4112. TextButton145.Font = Enum.Font.SourceSans
  4113. TextButton145.FontSize = Enum.FontSize.Size14
  4114. TextButton145.Text = "Mouse"
  4115. TextButton145.TextColor = BrickColor.new("Dark stone grey")
  4116. TextButton145.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4117. TextButton145.TextSize = 14
  4118. TextButton145.TextStrokeTransparency = 0.94999998807907
  4119. TextButton145.TextYAlignment = Enum.TextYAlignment.Bottom
  4120. TextButton146.Name = "Keyboard"
  4121. TextButton146.Parent = Frame143
  4122. TextButton146.Position = UDim2.new(0, 5, 0, 0)
  4123. TextButton146.Size = UDim2.new(0, 100, 0, 20)
  4124. TextButton146.BackgroundColor = BrickColor.new("Institutional white")
  4125. TextButton146.BackgroundColor3 = Color3.new(1, 1, 1)
  4126. TextButton146.BorderSizePixel = 0
  4127. TextButton146.ZIndex = 3
  4128. TextButton146.Font = Enum.Font.SourceSans
  4129. TextButton146.FontSize = Enum.FontSize.Size14
  4130. TextButton146.Text = "Keyboard"
  4131. TextButton146.TextColor = BrickColor.new("Dark stone grey")
  4132. TextButton146.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4133. TextButton146.TextSize = 14
  4134. TextButton146.TextStrokeTransparency = 0.94999998807907
  4135. TextButton146.TextYAlignment = Enum.TextYAlignment.Bottom
  4136. Frame147.Name = "Line"
  4137. Frame147.Parent = Frame143
  4138. Frame147.Size = UDim2.new(1, 0, 0, 2)
  4139. Frame147.BackgroundColor = BrickColor.new("Institutional white")
  4140. Frame147.BackgroundColor3 = Color3.new(1, 1, 1)
  4141. Frame147.BorderSizePixel = 0
  4142. Frame147.ZIndex = 3
  4143. Frame148.Name = "Content"
  4144. Frame148.Parent = Frame138
  4145. Frame148.Position = UDim2.new(0, 0, 0, 60)
  4146. Frame148.Size = UDim2.new(1, 0, 1, -60)
  4147. Frame148.BackgroundColor = BrickColor.new("Institutional white")
  4148. Frame148.BackgroundColor3 = Color3.new(1, 1, 1)
  4149. Frame148.BackgroundTransparency = 1
  4150. Frame148.BorderSizePixel = 0
  4151. Frame148.ZIndex = 3
  4152. TextLabel149.Name = "ControlRDZone"
  4153. TextLabel149.Parent = Frame148
  4154. TextLabel149.Position = UDim2.new(2, 200, 0, 240)
  4155. TextLabel149.BackgroundColor = BrickColor.new("Institutional white")
  4156. TextLabel149.BackgroundColor3 = Color3.new(1, 1, 1)
  4157. TextLabel149.BackgroundTransparency = 1
  4158. TextLabel149.BorderSizePixel = 0
  4159. TextLabel149.ZIndex = 3
  4160. TextLabel149.Font = Enum.Font.SourceSansItalic
  4161. TextLabel149.FontSize = Enum.FontSize.Size18
  4162. TextLabel149.Text = "100%"
  4163. TextLabel149.TextColor = BrickColor.new("Institutional white")
  4164. TextLabel149.TextColor3 = Color3.new(1, 1, 1)
  4165. TextLabel149.TextSize = 18
  4166. TextLabel149.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4167. TextLabel149.TextStrokeTransparency = 0.94999998807907
  4168. TextLabel149.TextXAlignment = Enum.TextXAlignment.Right
  4169. ScrollingFrame150.Name = "S"
  4170. ScrollingFrame150.Parent = TextLabel149
  4171. ScrollingFrame150.Position = UDim2.new(0, 10, 0, 2)
  4172. ScrollingFrame150.Size = UDim2.new(0, 260, 0, 3)
  4173. ScrollingFrame150.BackgroundColor = BrickColor.new("Really black")
  4174. ScrollingFrame150.BackgroundColor3 = Color3.new(0, 0, 0)
  4175. ScrollingFrame150.BackgroundTransparency = 0.5
  4176. ScrollingFrame150.BorderSizePixel = 0
  4177. ScrollingFrame150.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  4178. ScrollingFrame150.CanvasSize = UDim2.new(0, 5200, 0, 0)
  4179. ScrollingFrame150.ScrollBarThickness = 8
  4180. ScrollingFrame150.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  4181. TextLabel151.Name = "ControlLDZone"
  4182. TextLabel151.Parent = Frame148
  4183. TextLabel151.Position = UDim2.new(2, 200, 0, 220)
  4184. TextLabel151.BackgroundColor = BrickColor.new("Institutional white")
  4185. TextLabel151.BackgroundColor3 = Color3.new(1, 1, 1)
  4186. TextLabel151.BackgroundTransparency = 1
  4187. TextLabel151.BorderSizePixel = 0
  4188. TextLabel151.ZIndex = 3
  4189. TextLabel151.Font = Enum.Font.SourceSansItalic
  4190. TextLabel151.FontSize = Enum.FontSize.Size18
  4191. TextLabel151.Text = "100%"
  4192. TextLabel151.TextColor = BrickColor.new("Institutional white")
  4193. TextLabel151.TextColor3 = Color3.new(1, 1, 1)
  4194. TextLabel151.TextSize = 18
  4195. TextLabel151.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4196. TextLabel151.TextStrokeTransparency = 0.94999998807907
  4197. TextLabel151.TextXAlignment = Enum.TextXAlignment.Right
  4198. ScrollingFrame152.Name = "S"
  4199. ScrollingFrame152.Parent = TextLabel151
  4200. ScrollingFrame152.Position = UDim2.new(0, 10, 0, 2)
  4201. ScrollingFrame152.Size = UDim2.new(0, 260, 0, 3)
  4202. ScrollingFrame152.BackgroundColor = BrickColor.new("Really black")
  4203. ScrollingFrame152.BackgroundColor3 = Color3.new(0, 0, 0)
  4204. ScrollingFrame152.BackgroundTransparency = 0.5
  4205. ScrollingFrame152.BorderSizePixel = 0
  4206. ScrollingFrame152.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  4207. ScrollingFrame152.CanvasSize = UDim2.new(0, 5200, 0, 0)
  4208. ScrollingFrame152.ScrollBarThickness = 8
  4209. ScrollingFrame152.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  4210. TextLabel153.Name = "MSteerWidth"
  4211. TextLabel153.Parent = Frame148
  4212. TextLabel153.Position = UDim2.new(1, 200, 0, 180)
  4213. TextLabel153.BackgroundColor = BrickColor.new("Institutional white")
  4214. TextLabel153.BackgroundColor3 = Color3.new(1, 1, 1)
  4215. TextLabel153.BackgroundTransparency = 1
  4216. TextLabel153.BorderSizePixel = 0
  4217. TextLabel153.ZIndex = 3
  4218. TextLabel153.Font = Enum.Font.SourceSansItalic
  4219. TextLabel153.FontSize = Enum.FontSize.Size18
  4220. TextLabel153.Text = "100%"
  4221. TextLabel153.TextColor = BrickColor.new("Institutional white")
  4222. TextLabel153.TextColor3 = Color3.new(1, 1, 1)
  4223. TextLabel153.TextSize = 18
  4224. TextLabel153.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4225. TextLabel153.TextStrokeTransparency = 0.94999998807907
  4226. TextLabel153.TextXAlignment = Enum.TextXAlignment.Right
  4227. ScrollingFrame154.Name = "S"
  4228. ScrollingFrame154.Parent = TextLabel153
  4229. ScrollingFrame154.Position = UDim2.new(0, 10, 0, 2)
  4230. ScrollingFrame154.Size = UDim2.new(0, 260, 0, 3)
  4231. ScrollingFrame154.BackgroundColor = BrickColor.new("Really black")
  4232. ScrollingFrame154.BackgroundColor3 = Color3.new(0, 0, 0)
  4233. ScrollingFrame154.BackgroundTransparency = 0.5
  4234. ScrollingFrame154.BorderSizePixel = 0
  4235. ScrollingFrame154.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  4236. ScrollingFrame154.CanvasSize = UDim2.new(0, 5200, 0, 0)
  4237. ScrollingFrame154.ScrollBarThickness = 8
  4238. ScrollingFrame154.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  4239. TextLabel155.Name = "MSteerDZone"
  4240. TextLabel155.Parent = Frame148
  4241. TextLabel155.Position = UDim2.new(1, 200, 0, 160)
  4242. TextLabel155.BackgroundColor = BrickColor.new("Institutional white")
  4243. TextLabel155.BackgroundColor3 = Color3.new(1, 1, 1)
  4244. TextLabel155.BackgroundTransparency = 1
  4245. TextLabel155.BorderSizePixel = 0
  4246. TextLabel155.ZIndex = 3
  4247. TextLabel155.Font = Enum.Font.SourceSansItalic
  4248. TextLabel155.FontSize = Enum.FontSize.Size18
  4249. TextLabel155.Text = "100%"
  4250. TextLabel155.TextColor = BrickColor.new("Institutional white")
  4251. TextLabel155.TextColor3 = Color3.new(1, 1, 1)
  4252. TextLabel155.TextSize = 18
  4253. TextLabel155.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4254. TextLabel155.TextStrokeTransparency = 0.94999998807907
  4255. TextLabel155.TextXAlignment = Enum.TextXAlignment.Right
  4256. ScrollingFrame156.Name = "S"
  4257. ScrollingFrame156.Parent = TextLabel155
  4258. ScrollingFrame156.Position = UDim2.new(0, 10, 0, 2)
  4259. ScrollingFrame156.Size = UDim2.new(0, 260, 0, 3)
  4260. ScrollingFrame156.BackgroundColor = BrickColor.new("Really black")
  4261. ScrollingFrame156.BackgroundColor3 = Color3.new(0, 0, 0)
  4262. ScrollingFrame156.BackgroundTransparency = 0.5
  4263. ScrollingFrame156.BorderSizePixel = 0
  4264. ScrollingFrame156.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  4265. ScrollingFrame156.CanvasSize = UDim2.new(0, 5200, 0, 0)
  4266. ScrollingFrame156.ScrollBarThickness = 8
  4267. ScrollingFrame156.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  4268. TextLabel157.Name = "T"
  4269. TextLabel157.Parent = Frame148
  4270. TextLabel157.Position = UDim2.new(2, 150, 0, 240)
  4271. TextLabel157.BackgroundColor = BrickColor.new("Institutional white")
  4272. TextLabel157.BackgroundColor3 = Color3.new(1, 1, 1)
  4273. TextLabel157.BackgroundTransparency = 1
  4274. TextLabel157.BorderSizePixel = 0
  4275. TextLabel157.ZIndex = 3
  4276. TextLabel157.Font = Enum.Font.SourceSansItalic
  4277. TextLabel157.FontSize = Enum.FontSize.Size18
  4278. TextLabel157.Text = "Right Deadzone"
  4279. TextLabel157.TextColor = BrickColor.new("Institutional white")
  4280. TextLabel157.TextColor3 = Color3.new(1, 1, 1)
  4281. TextLabel157.TextSize = 18
  4282. TextLabel157.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4283. TextLabel157.TextStrokeTransparency = 0.94999998807907
  4284. TextLabel157.TextXAlignment = Enum.TextXAlignment.Right
  4285. TextLabel158.Name = "T"
  4286. TextLabel158.Parent = Frame148
  4287. TextLabel158.Position = UDim2.new(2, 150, 0, 220)
  4288. TextLabel158.BackgroundColor = BrickColor.new("Institutional white")
  4289. TextLabel158.BackgroundColor3 = Color3.new(1, 1, 1)
  4290. TextLabel158.BackgroundTransparency = 1
  4291. TextLabel158.BorderSizePixel = 0
  4292. TextLabel158.ZIndex = 3
  4293. TextLabel158.Font = Enum.Font.SourceSansItalic
  4294. TextLabel158.FontSize = Enum.FontSize.Size18
  4295. TextLabel158.Text = "Left Deadzone"
  4296. TextLabel158.TextColor = BrickColor.new("Institutional white")
  4297. TextLabel158.TextColor3 = Color3.new(1, 1, 1)
  4298. TextLabel158.TextSize = 18
  4299. TextLabel158.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4300. TextLabel158.TextStrokeTransparency = 0.94999998807907
  4301. TextLabel158.TextXAlignment = Enum.TextXAlignment.Right
  4302. TextLabel159.Name = "T"
  4303. TextLabel159.Parent = Frame148
  4304. TextLabel159.Position = UDim2.new(1, 150, 0, 180)
  4305. TextLabel159.BackgroundColor = BrickColor.new("Institutional white")
  4306. TextLabel159.BackgroundColor3 = Color3.new(1, 1, 1)
  4307. TextLabel159.BackgroundTransparency = 1
  4308. TextLabel159.BorderSizePixel = 0
  4309. TextLabel159.ZIndex = 3
  4310. TextLabel159.Font = Enum.Font.SourceSansItalic
  4311. TextLabel159.FontSize = Enum.FontSize.Size18
  4312. TextLabel159.Text = "Control Width"
  4313. TextLabel159.TextColor = BrickColor.new("Institutional white")
  4314. TextLabel159.TextColor3 = Color3.new(1, 1, 1)
  4315. TextLabel159.TextSize = 18
  4316. TextLabel159.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4317. TextLabel159.TextStrokeTransparency = 0.94999998807907
  4318. TextLabel159.TextXAlignment = Enum.TextXAlignment.Right
  4319. TextLabel160.Name = "T"
  4320. TextLabel160.Parent = Frame148
  4321. TextLabel160.Position = UDim2.new(1, 150, 0, 160)
  4322. TextLabel160.BackgroundColor = BrickColor.new("Institutional white")
  4323. TextLabel160.BackgroundColor3 = Color3.new(1, 1, 1)
  4324. TextLabel160.BackgroundTransparency = 1
  4325. TextLabel160.BorderSizePixel = 0
  4326. TextLabel160.ZIndex = 3
  4327. TextLabel160.Font = Enum.Font.SourceSansItalic
  4328. TextLabel160.FontSize = Enum.FontSize.Size18
  4329. TextLabel160.Text = "Deadzone"
  4330. TextLabel160.TextColor = BrickColor.new("Institutional white")
  4331. TextLabel160.TextColor3 = Color3.new(1, 1, 1)
  4332. TextLabel160.TextSize = 18
  4333. TextLabel160.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4334. TextLabel160.TextStrokeTransparency = 0.94999998807907
  4335. TextLabel160.TextXAlignment = Enum.TextXAlignment.Right
  4336. TextButton161.Name = "ContlrToggleTCS"
  4337. TextButton161.Parent = Frame148
  4338. TextButton161.Position = UDim2.new(2, 170, 0, 173)
  4339. TextButton161.Size = UDim2.new(0, 300, 0, 15)
  4340. TextButton161.BackgroundColor = BrickColor.new("Really black")
  4341. TextButton161.BackgroundColor3 = Color3.new(0, 0, 0)
  4342. TextButton161.BackgroundTransparency = 0.5
  4343. TextButton161.BorderSizePixel = 0
  4344. TextButton161.ZIndex = 3
  4345. TextButton161.Font = Enum.Font.SourceSans
  4346. TextButton161.FontSize = Enum.FontSize.Size14
  4347. TextButton161.TextColor = BrickColor.new("Institutional white")
  4348. TextButton161.TextColor3 = Color3.new(1, 1, 1)
  4349. TextButton161.TextSize = 14
  4350. TextButton162.Name = "ContlrToggleTMode"
  4351. TextButton162.Parent = Frame148
  4352. TextButton162.Position = UDim2.new(2, 170, 0, 153)
  4353. TextButton162.Size = UDim2.new(0, 300, 0, 15)
  4354. TextButton162.BackgroundColor = BrickColor.new("Really black")
  4355. TextButton162.BackgroundColor3 = Color3.new(0, 0, 0)
  4356. TextButton162.BackgroundTransparency = 0.5
  4357. TextButton162.BorderSizePixel = 0
  4358. TextButton162.ZIndex = 3
  4359. TextButton162.Font = Enum.Font.SourceSans
  4360. TextButton162.FontSize = Enum.FontSize.Size14
  4361. TextButton162.TextColor = BrickColor.new("Institutional white")
  4362. TextButton162.TextColor3 = Color3.new(1, 1, 1)
  4363. TextButton162.TextSize = 14
  4364. TextButton163.Name = "ContlrPBrake"
  4365. TextButton163.Parent = Frame148
  4366. TextButton163.Position = UDim2.new(2, 170, 0, 133)
  4367. TextButton163.Size = UDim2.new(0, 300, 0, 15)
  4368. TextButton163.BackgroundColor = BrickColor.new("Really black")
  4369. TextButton163.BackgroundColor3 = Color3.new(0, 0, 0)
  4370. TextButton163.BackgroundTransparency = 0.5
  4371. TextButton163.BorderSizePixel = 0
  4372. TextButton163.ZIndex = 3
  4373. TextButton163.Font = Enum.Font.SourceSans
  4374. TextButton163.FontSize = Enum.FontSize.Size14
  4375. TextButton163.TextColor = BrickColor.new("Institutional white")
  4376. TextButton163.TextColor3 = Color3.new(1, 1, 1)
  4377. TextButton163.TextSize = 14
  4378. TextButton164.Name = "ContlrClutch"
  4379. TextButton164.Parent = Frame148
  4380. TextButton164.Position = UDim2.new(2, 170, 0, 113)
  4381. TextButton164.Size = UDim2.new(0, 300, 0, 15)
  4382. TextButton164.BackgroundColor = BrickColor.new("Really black")
  4383. TextButton164.BackgroundColor3 = Color3.new(0, 0, 0)
  4384. TextButton164.BackgroundTransparency = 0.5
  4385. TextButton164.BorderSizePixel = 0
  4386. TextButton164.ZIndex = 3
  4387. TextButton164.Font = Enum.Font.SourceSans
  4388. TextButton164.FontSize = Enum.FontSize.Size14
  4389. TextButton164.TextColor = BrickColor.new("Institutional white")
  4390. TextButton164.TextColor3 = Color3.new(1, 1, 1)
  4391. TextButton164.TextSize = 14
  4392. TextButton165.Name = "ContlrShiftDown"
  4393. TextButton165.Parent = Frame148
  4394. TextButton165.Position = UDim2.new(2, 170, 0, 93)
  4395. TextButton165.Size = UDim2.new(0, 300, 0, 15)
  4396. TextButton165.BackgroundColor = BrickColor.new("Really black")
  4397. TextButton165.BackgroundColor3 = Color3.new(0, 0, 0)
  4398. TextButton165.BackgroundTransparency = 0.5
  4399. TextButton165.BorderSizePixel = 0
  4400. TextButton165.ZIndex = 3
  4401. TextButton165.Font = Enum.Font.SourceSans
  4402. TextButton165.FontSize = Enum.FontSize.Size14
  4403. TextButton165.TextColor = BrickColor.new("Institutional white")
  4404. TextButton165.TextColor3 = Color3.new(1, 1, 1)
  4405. TextButton165.TextSize = 14
  4406. TextButton166.Name = "ContlrShiftUp"
  4407. TextButton166.Parent = Frame148
  4408. TextButton166.Position = UDim2.new(2, 170, 0, 73)
  4409. TextButton166.Size = UDim2.new(0, 300, 0, 15)
  4410. TextButton166.BackgroundColor = BrickColor.new("Really black")
  4411. TextButton166.BackgroundColor3 = Color3.new(0, 0, 0)
  4412. TextButton166.BackgroundTransparency = 0.5
  4413. TextButton166.BorderSizePixel = 0
  4414. TextButton166.ZIndex = 3
  4415. TextButton166.Font = Enum.Font.SourceSans
  4416. TextButton166.FontSize = Enum.FontSize.Size14
  4417. TextButton166.TextColor = BrickColor.new("Institutional white")
  4418. TextButton166.TextColor3 = Color3.new(1, 1, 1)
  4419. TextButton166.TextSize = 14
  4420. TextButton167.Name = "ContlrSteer"
  4421. TextButton167.Parent = Frame148
  4422. TextButton167.Position = UDim2.new(2, 170, 0, 53)
  4423. TextButton167.Size = UDim2.new(0, 300, 0, 15)
  4424. TextButton167.BackgroundColor = BrickColor.new("Really black")
  4425. TextButton167.BackgroundColor3 = Color3.new(0, 0, 0)
  4426. TextButton167.BackgroundTransparency = 0.5
  4427. TextButton167.BorderSizePixel = 0
  4428. TextButton167.ZIndex = 3
  4429. TextButton167.Font = Enum.Font.SourceSans
  4430. TextButton167.FontSize = Enum.FontSize.Size14
  4431. TextButton167.TextColor = BrickColor.new("Institutional white")
  4432. TextButton167.TextColor3 = Color3.new(1, 1, 1)
  4433. TextButton167.TextSize = 14
  4434. TextButton168.Name = "ContlrBrake"
  4435. TextButton168.Parent = Frame148
  4436. TextButton168.Position = UDim2.new(2, 170, 0, 33)
  4437. TextButton168.Size = UDim2.new(0, 300, 0, 15)
  4438. TextButton168.BackgroundColor = BrickColor.new("Really black")
  4439. TextButton168.BackgroundColor3 = Color3.new(0, 0, 0)
  4440. TextButton168.BackgroundTransparency = 0.5
  4441. TextButton168.BorderSizePixel = 0
  4442. TextButton168.ZIndex = 3
  4443. TextButton168.Font = Enum.Font.SourceSans
  4444. TextButton168.FontSize = Enum.FontSize.Size14
  4445. TextButton168.TextColor = BrickColor.new("Institutional white")
  4446. TextButton168.TextColor3 = Color3.new(1, 1, 1)
  4447. TextButton168.TextSize = 14
  4448. TextButton169.Name = "ContlrThrottle"
  4449. TextButton169.Parent = Frame148
  4450. TextButton169.Position = UDim2.new(2, 170, 0, 13)
  4451. TextButton169.Size = UDim2.new(0, 300, 0, 15)
  4452. TextButton169.BackgroundColor = BrickColor.new("Really black")
  4453. TextButton169.BackgroundColor3 = Color3.new(0, 0, 0)
  4454. TextButton169.BackgroundTransparency = 0.5
  4455. TextButton169.BorderSizePixel = 0
  4456. TextButton169.ZIndex = 3
  4457. TextButton169.Font = Enum.Font.SourceSans
  4458. TextButton169.FontSize = Enum.FontSize.Size14
  4459. TextButton169.TextColor = BrickColor.new("Institutional white")
  4460. TextButton169.TextColor3 = Color3.new(1, 1, 1)
  4461. TextButton169.TextSize = 14
  4462. TextLabel170.Name = "T"
  4463. TextLabel170.Parent = Frame148
  4464. TextLabel170.Position = UDim2.new(2, 150, 0, 160)
  4465. TextLabel170.BackgroundColor = BrickColor.new("Institutional white")
  4466. TextLabel170.BackgroundColor3 = Color3.new(1, 1, 1)
  4467. TextLabel170.BackgroundTransparency = 1
  4468. TextLabel170.BorderSizePixel = 0
  4469. TextLabel170.ZIndex = 3
  4470. TextLabel170.Font = Enum.Font.SourceSansItalic
  4471. TextLabel170.FontSize = Enum.FontSize.Size18
  4472. TextLabel170.Text = "Transmission Mode"
  4473. TextLabel170.TextColor = BrickColor.new("Institutional white")
  4474. TextLabel170.TextColor3 = Color3.new(1, 1, 1)
  4475. TextLabel170.TextSize = 18
  4476. TextLabel170.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4477. TextLabel170.TextStrokeTransparency = 0.94999998807907
  4478. TextLabel170.TextXAlignment = Enum.TextXAlignment.Right
  4479. TextLabel171.Name = "T"
  4480. TextLabel171.Parent = Frame148
  4481. TextLabel171.Position = UDim2.new(2, 150, 0, 180)
  4482. TextLabel171.BackgroundColor = BrickColor.new("Institutional white")
  4483. TextLabel171.BackgroundColor3 = Color3.new(1, 1, 1)
  4484. TextLabel171.BackgroundTransparency = 1
  4485. TextLabel171.BorderSizePixel = 0
  4486. TextLabel171.ZIndex = 3
  4487. TextLabel171.Font = Enum.Font.SourceSansItalic
  4488. TextLabel171.FontSize = Enum.FontSize.Size18
  4489. TextLabel171.Text = "Toggle TCS"
  4490. TextLabel171.TextColor = BrickColor.new("Institutional white")
  4491. TextLabel171.TextColor3 = Color3.new(1, 1, 1)
  4492. TextLabel171.TextSize = 18
  4493. TextLabel171.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4494. TextLabel171.TextStrokeTransparency = 0.94999998807907
  4495. TextLabel171.TextXAlignment = Enum.TextXAlignment.Right
  4496. TextLabel172.Name = "T"
  4497. TextLabel172.Parent = Frame148
  4498. TextLabel172.Position = UDim2.new(2, 150, 0, 140)
  4499. TextLabel172.BackgroundColor = BrickColor.new("Institutional white")
  4500. TextLabel172.BackgroundColor3 = Color3.new(1, 1, 1)
  4501. TextLabel172.BackgroundTransparency = 1
  4502. TextLabel172.BorderSizePixel = 0
  4503. TextLabel172.ZIndex = 3
  4504. TextLabel172.Font = Enum.Font.SourceSansItalic
  4505. TextLabel172.FontSize = Enum.FontSize.Size18
  4506. TextLabel172.Text = "Handbrake"
  4507. TextLabel172.TextColor = BrickColor.new("Institutional white")
  4508. TextLabel172.TextColor3 = Color3.new(1, 1, 1)
  4509. TextLabel172.TextSize = 18
  4510. TextLabel172.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4511. TextLabel172.TextStrokeTransparency = 0.94999998807907
  4512. TextLabel172.TextXAlignment = Enum.TextXAlignment.Right
  4513. TextLabel173.Name = "T"
  4514. TextLabel173.Parent = Frame148
  4515. TextLabel173.Position = UDim2.new(2, 150, 0, 120)
  4516. TextLabel173.BackgroundColor = BrickColor.new("Institutional white")
  4517. TextLabel173.BackgroundColor3 = Color3.new(1, 1, 1)
  4518. TextLabel173.BackgroundTransparency = 1
  4519. TextLabel173.BorderSizePixel = 0
  4520. TextLabel173.ZIndex = 3
  4521. TextLabel173.Font = Enum.Font.SourceSansItalic
  4522. TextLabel173.FontSize = Enum.FontSize.Size18
  4523. TextLabel173.Text = "Clutch"
  4524. TextLabel173.TextColor = BrickColor.new("Institutional white")
  4525. TextLabel173.TextColor3 = Color3.new(1, 1, 1)
  4526. TextLabel173.TextSize = 18
  4527. TextLabel173.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4528. TextLabel173.TextStrokeTransparency = 0.94999998807907
  4529. TextLabel173.TextXAlignment = Enum.TextXAlignment.Right
  4530. TextLabel174.Name = "T"
  4531. TextLabel174.Parent = Frame148
  4532. TextLabel174.Position = UDim2.new(2, 150, 0, 100)
  4533. TextLabel174.BackgroundColor = BrickColor.new("Institutional white")
  4534. TextLabel174.BackgroundColor3 = Color3.new(1, 1, 1)
  4535. TextLabel174.BackgroundTransparency = 1
  4536. TextLabel174.BorderSizePixel = 0
  4537. TextLabel174.ZIndex = 3
  4538. TextLabel174.Font = Enum.Font.SourceSansItalic
  4539. TextLabel174.FontSize = Enum.FontSize.Size18
  4540. TextLabel174.Text = "Shift Down"
  4541. TextLabel174.TextColor = BrickColor.new("Institutional white")
  4542. TextLabel174.TextColor3 = Color3.new(1, 1, 1)
  4543. TextLabel174.TextSize = 18
  4544. TextLabel174.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4545. TextLabel174.TextStrokeTransparency = 0.94999998807907
  4546. TextLabel174.TextXAlignment = Enum.TextXAlignment.Right
  4547. TextLabel175.Name = "T"
  4548. TextLabel175.Parent = Frame148
  4549. TextLabel175.Position = UDim2.new(2, 150, 0, 80)
  4550. TextLabel175.BackgroundColor = BrickColor.new("Institutional white")
  4551. TextLabel175.BackgroundColor3 = Color3.new(1, 1, 1)
  4552. TextLabel175.BackgroundTransparency = 1
  4553. TextLabel175.BorderSizePixel = 0
  4554. TextLabel175.ZIndex = 3
  4555. TextLabel175.Font = Enum.Font.SourceSansItalic
  4556. TextLabel175.FontSize = Enum.FontSize.Size18
  4557. TextLabel175.Text = "Shift Up"
  4558. TextLabel175.TextColor = BrickColor.new("Institutional white")
  4559. TextLabel175.TextColor3 = Color3.new(1, 1, 1)
  4560. TextLabel175.TextSize = 18
  4561. TextLabel175.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4562. TextLabel175.TextStrokeTransparency = 0.94999998807907
  4563. TextLabel175.TextXAlignment = Enum.TextXAlignment.Right
  4564. TextLabel176.Name = "T"
  4565. TextLabel176.Parent = Frame148
  4566. TextLabel176.Position = UDim2.new(2, 150, 0, 60)
  4567. TextLabel176.BackgroundColor = BrickColor.new("Institutional white")
  4568. TextLabel176.BackgroundColor3 = Color3.new(1, 1, 1)
  4569. TextLabel176.BackgroundTransparency = 1
  4570. TextLabel176.BorderSizePixel = 0
  4571. TextLabel176.ZIndex = 3
  4572. TextLabel176.Font = Enum.Font.SourceSansItalic
  4573. TextLabel176.FontSize = Enum.FontSize.Size18
  4574. TextLabel176.Text = "Steer"
  4575. TextLabel176.TextColor = BrickColor.new("Institutional white")
  4576. TextLabel176.TextColor3 = Color3.new(1, 1, 1)
  4577. TextLabel176.TextSize = 18
  4578. TextLabel176.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4579. TextLabel176.TextStrokeTransparency = 0.94999998807907
  4580. TextLabel176.TextXAlignment = Enum.TextXAlignment.Right
  4581. TextLabel177.Name = "T"
  4582. TextLabel177.Parent = Frame148
  4583. TextLabel177.Position = UDim2.new(2, 150, 0, 40)
  4584. TextLabel177.BackgroundColor = BrickColor.new("Institutional white")
  4585. TextLabel177.BackgroundColor3 = Color3.new(1, 1, 1)
  4586. TextLabel177.BackgroundTransparency = 1
  4587. TextLabel177.BorderSizePixel = 0
  4588. TextLabel177.ZIndex = 3
  4589. TextLabel177.Font = Enum.Font.SourceSansItalic
  4590. TextLabel177.FontSize = Enum.FontSize.Size18
  4591. TextLabel177.Text = "Brakes"
  4592. TextLabel177.TextColor = BrickColor.new("Institutional white")
  4593. TextLabel177.TextColor3 = Color3.new(1, 1, 1)
  4594. TextLabel177.TextSize = 18
  4595. TextLabel177.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4596. TextLabel177.TextStrokeTransparency = 0.94999998807907
  4597. TextLabel177.TextXAlignment = Enum.TextXAlignment.Right
  4598. TextLabel178.Name = "T"
  4599. TextLabel178.Parent = Frame148
  4600. TextLabel178.Position = UDim2.new(2, 150, 0, 20)
  4601. TextLabel178.BackgroundColor = BrickColor.new("Institutional white")
  4602. TextLabel178.BackgroundColor3 = Color3.new(1, 1, 1)
  4603. TextLabel178.BackgroundTransparency = 1
  4604. TextLabel178.BorderSizePixel = 0
  4605. TextLabel178.ZIndex = 3
  4606. TextLabel178.Font = Enum.Font.SourceSansItalic
  4607. TextLabel178.FontSize = Enum.FontSize.Size18
  4608. TextLabel178.Text = "Throttle"
  4609. TextLabel178.TextColor = BrickColor.new("Institutional white")
  4610. TextLabel178.TextColor3 = Color3.new(1, 1, 1)
  4611. TextLabel178.TextSize = 18
  4612. TextLabel178.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4613. TextLabel178.TextStrokeTransparency = 0.94999998807907
  4614. TextLabel178.TextXAlignment = Enum.TextXAlignment.Right
  4615. TextButton179.Name = "MousePBrake"
  4616. TextButton179.Parent = Frame148
  4617. TextButton179.Position = UDim2.new(1, 170, 0, 133)
  4618. TextButton179.Size = UDim2.new(0, 300, 0, 15)
  4619. TextButton179.Active = false
  4620. TextButton179.BackgroundColor = BrickColor.new("Really black")
  4621. TextButton179.BackgroundColor3 = Color3.new(0, 0, 0)
  4622. TextButton179.BackgroundTransparency = 0.5
  4623. TextButton179.BorderSizePixel = 0
  4624. TextButton179.Selectable = false
  4625. TextButton179.ZIndex = 3
  4626. TextButton179.Font = Enum.Font.SourceSans
  4627. TextButton179.FontSize = Enum.FontSize.Size14
  4628. TextButton179.TextColor = BrickColor.new("Institutional white")
  4629. TextButton179.TextColor3 = Color3.new(1, 1, 1)
  4630. TextButton179.TextSize = 14
  4631. TextButton180.Name = "MouseClutch"
  4632. TextButton180.Parent = Frame148
  4633. TextButton180.Position = UDim2.new(1, 170, 0, 113)
  4634. TextButton180.Size = UDim2.new(0, 300, 0, 15)
  4635. TextButton180.Active = false
  4636. TextButton180.BackgroundColor = BrickColor.new("Really black")
  4637. TextButton180.BackgroundColor3 = Color3.new(0, 0, 0)
  4638. TextButton180.BackgroundTransparency = 0.5
  4639. TextButton180.BorderSizePixel = 0
  4640. TextButton180.Selectable = false
  4641. TextButton180.ZIndex = 3
  4642. TextButton180.Font = Enum.Font.SourceSans
  4643. TextButton180.FontSize = Enum.FontSize.Size14
  4644. TextButton180.TextColor = BrickColor.new("Institutional white")
  4645. TextButton180.TextColor3 = Color3.new(1, 1, 1)
  4646. TextButton180.TextSize = 14
  4647. TextButton181.Name = "MouseShiftDown"
  4648. TextButton181.Parent = Frame148
  4649. TextButton181.Position = UDim2.new(1, 170, 0, 93)
  4650. TextButton181.Size = UDim2.new(0, 300, 0, 15)
  4651. TextButton181.Active = false
  4652. TextButton181.BackgroundColor = BrickColor.new("Really black")
  4653. TextButton181.BackgroundColor3 = Color3.new(0, 0, 0)
  4654. TextButton181.BackgroundTransparency = 0.5
  4655. TextButton181.BorderSizePixel = 0
  4656. TextButton181.Selectable = false
  4657. TextButton181.ZIndex = 3
  4658. TextButton181.Font = Enum.Font.SourceSans
  4659. TextButton181.FontSize = Enum.FontSize.Size14
  4660. TextButton181.TextColor = BrickColor.new("Institutional white")
  4661. TextButton181.TextColor3 = Color3.new(1, 1, 1)
  4662. TextButton181.TextSize = 14
  4663. TextButton182.Name = "MouseShiftUp"
  4664. TextButton182.Parent = Frame148
  4665. TextButton182.Position = UDim2.new(1, 170, 0, 73)
  4666. TextButton182.Size = UDim2.new(0, 300, 0, 15)
  4667. TextButton182.Active = false
  4668. TextButton182.BackgroundColor = BrickColor.new("Really black")
  4669. TextButton182.BackgroundColor3 = Color3.new(0, 0, 0)
  4670. TextButton182.BackgroundTransparency = 0.5
  4671. TextButton182.BorderSizePixel = 0
  4672. TextButton182.Selectable = false
  4673. TextButton182.ZIndex = 3
  4674. TextButton182.Font = Enum.Font.SourceSans
  4675. TextButton182.FontSize = Enum.FontSize.Size14
  4676. TextButton182.TextColor = BrickColor.new("Institutional white")
  4677. TextButton182.TextColor3 = Color3.new(1, 1, 1)
  4678. TextButton182.TextSize = 14
  4679. TextButton183.Name = "MouseSteer"
  4680. TextButton183.Parent = Frame148
  4681. TextButton183.Position = UDim2.new(1, 170, 0, 53)
  4682. TextButton183.Size = UDim2.new(0, 300, 0, 15)
  4683. TextButton183.Active = false
  4684. TextButton183.BackgroundColor = BrickColor.new("Black")
  4685. TextButton183.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  4686. TextButton183.BackgroundTransparency = 0.5
  4687. TextButton183.BorderSizePixel = 0
  4688. TextButton183.Selectable = false
  4689. TextButton183.ZIndex = 3
  4690. TextButton183.Font = Enum.Font.SourceSans
  4691. TextButton183.FontSize = Enum.FontSize.Size14
  4692. TextButton183.Text = "MouseMove"
  4693. TextButton183.TextColor = BrickColor.new("Light grey metallic")
  4694. TextButton183.TextColor3 = Color3.new(0.690196, 0.690196, 0.690196)
  4695. TextButton183.TextSize = 14
  4696. TextButton184.Name = "MouseBrake"
  4697. TextButton184.Parent = Frame148
  4698. TextButton184.Position = UDim2.new(1, 170, 0, 33)
  4699. TextButton184.Size = UDim2.new(0, 300, 0, 15)
  4700. TextButton184.BackgroundColor = BrickColor.new("Really black")
  4701. TextButton184.BackgroundColor3 = Color3.new(0, 0, 0)
  4702. TextButton184.BackgroundTransparency = 0.5
  4703. TextButton184.BorderSizePixel = 0
  4704. TextButton184.ZIndex = 3
  4705. TextButton184.Font = Enum.Font.SourceSans
  4706. TextButton184.FontSize = Enum.FontSize.Size14
  4707. TextButton184.TextColor = BrickColor.new("Institutional white")
  4708. TextButton184.TextColor3 = Color3.new(1, 1, 1)
  4709. TextButton184.TextSize = 14
  4710. TextButton185.Name = "MouseThrottle"
  4711. TextButton185.Parent = Frame148
  4712. TextButton185.Position = UDim2.new(1, 170, 0, 13)
  4713. TextButton185.Size = UDim2.new(0, 300, 0, 15)
  4714. TextButton185.BackgroundColor = BrickColor.new("Really black")
  4715. TextButton185.BackgroundColor3 = Color3.new(0, 0, 0)
  4716. TextButton185.BackgroundTransparency = 0.5
  4717. TextButton185.BorderSizePixel = 0
  4718. TextButton185.ZIndex = 3
  4719. TextButton185.Font = Enum.Font.SourceSans
  4720. TextButton185.FontSize = Enum.FontSize.Size14
  4721. TextButton185.TextColor = BrickColor.new("Institutional white")
  4722. TextButton185.TextColor3 = Color3.new(1, 1, 1)
  4723. TextButton185.TextSize = 14
  4724. TextLabel186.Name = "T"
  4725. TextLabel186.Parent = Frame148
  4726. TextLabel186.Position = UDim2.new(1, 150, 0, 140)
  4727. TextLabel186.BackgroundColor = BrickColor.new("Institutional white")
  4728. TextLabel186.BackgroundColor3 = Color3.new(1, 1, 1)
  4729. TextLabel186.BackgroundTransparency = 1
  4730. TextLabel186.BorderSizePixel = 0
  4731. TextLabel186.ZIndex = 3
  4732. TextLabel186.Font = Enum.Font.SourceSansItalic
  4733. TextLabel186.FontSize = Enum.FontSize.Size18
  4734. TextLabel186.Text = "Handbrake"
  4735. TextLabel186.TextColor = BrickColor.new("Institutional white")
  4736. TextLabel186.TextColor3 = Color3.new(1, 1, 1)
  4737. TextLabel186.TextSize = 18
  4738. TextLabel186.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4739. TextLabel186.TextStrokeTransparency = 0.94999998807907
  4740. TextLabel186.TextXAlignment = Enum.TextXAlignment.Right
  4741. TextLabel187.Name = "T"
  4742. TextLabel187.Parent = Frame148
  4743. TextLabel187.Position = UDim2.new(1, 150, 0, 120)
  4744. TextLabel187.BackgroundColor = BrickColor.new("Institutional white")
  4745. TextLabel187.BackgroundColor3 = Color3.new(1, 1, 1)
  4746. TextLabel187.BackgroundTransparency = 1
  4747. TextLabel187.BorderSizePixel = 0
  4748. TextLabel187.ZIndex = 3
  4749. TextLabel187.Font = Enum.Font.SourceSansItalic
  4750. TextLabel187.FontSize = Enum.FontSize.Size18
  4751. TextLabel187.Text = "Clutch"
  4752. TextLabel187.TextColor = BrickColor.new("Institutional white")
  4753. TextLabel187.TextColor3 = Color3.new(1, 1, 1)
  4754. TextLabel187.TextSize = 18
  4755. TextLabel187.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4756. TextLabel187.TextStrokeTransparency = 0.94999998807907
  4757. TextLabel187.TextXAlignment = Enum.TextXAlignment.Right
  4758. TextLabel188.Name = "T"
  4759. TextLabel188.Parent = Frame148
  4760. TextLabel188.Position = UDim2.new(1, 150, 0, 100)
  4761. TextLabel188.BackgroundColor = BrickColor.new("Institutional white")
  4762. TextLabel188.BackgroundColor3 = Color3.new(1, 1, 1)
  4763. TextLabel188.BackgroundTransparency = 1
  4764. TextLabel188.BorderSizePixel = 0
  4765. TextLabel188.ZIndex = 3
  4766. TextLabel188.Font = Enum.Font.SourceSansItalic
  4767. TextLabel188.FontSize = Enum.FontSize.Size18
  4768. TextLabel188.Text = "Shift Down"
  4769. TextLabel188.TextColor = BrickColor.new("Institutional white")
  4770. TextLabel188.TextColor3 = Color3.new(1, 1, 1)
  4771. TextLabel188.TextSize = 18
  4772. TextLabel188.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4773. TextLabel188.TextStrokeTransparency = 0.94999998807907
  4774. TextLabel188.TextXAlignment = Enum.TextXAlignment.Right
  4775. TextLabel189.Name = "T"
  4776. TextLabel189.Parent = Frame148
  4777. TextLabel189.Position = UDim2.new(1, 150, 0, 80)
  4778. TextLabel189.BackgroundColor = BrickColor.new("Institutional white")
  4779. TextLabel189.BackgroundColor3 = Color3.new(1, 1, 1)
  4780. TextLabel189.BackgroundTransparency = 1
  4781. TextLabel189.BorderSizePixel = 0
  4782. TextLabel189.ZIndex = 3
  4783. TextLabel189.Font = Enum.Font.SourceSansItalic
  4784. TextLabel189.FontSize = Enum.FontSize.Size18
  4785. TextLabel189.Text = "Shift Up"
  4786. TextLabel189.TextColor = BrickColor.new("Institutional white")
  4787. TextLabel189.TextColor3 = Color3.new(1, 1, 1)
  4788. TextLabel189.TextSize = 18
  4789. TextLabel189.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4790. TextLabel189.TextStrokeTransparency = 0.94999998807907
  4791. TextLabel189.TextXAlignment = Enum.TextXAlignment.Right
  4792. TextLabel190.Name = "T"
  4793. TextLabel190.Parent = Frame148
  4794. TextLabel190.Position = UDim2.new(1, 150, 0, 60)
  4795. TextLabel190.BackgroundColor = BrickColor.new("Institutional white")
  4796. TextLabel190.BackgroundColor3 = Color3.new(1, 1, 1)
  4797. TextLabel190.BackgroundTransparency = 1
  4798. TextLabel190.BorderSizePixel = 0
  4799. TextLabel190.ZIndex = 3
  4800. TextLabel190.Font = Enum.Font.SourceSansItalic
  4801. TextLabel190.FontSize = Enum.FontSize.Size18
  4802. TextLabel190.Text = "Steer"
  4803. TextLabel190.TextColor = BrickColor.new("Institutional white")
  4804. TextLabel190.TextColor3 = Color3.new(1, 1, 1)
  4805. TextLabel190.TextSize = 18
  4806. TextLabel190.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4807. TextLabel190.TextStrokeTransparency = 0.94999998807907
  4808. TextLabel190.TextXAlignment = Enum.TextXAlignment.Right
  4809. TextLabel191.Name = "T"
  4810. TextLabel191.Parent = Frame148
  4811. TextLabel191.Position = UDim2.new(1, 150, 0, 40)
  4812. TextLabel191.BackgroundColor = BrickColor.new("Institutional white")
  4813. TextLabel191.BackgroundColor3 = Color3.new(1, 1, 1)
  4814. TextLabel191.BackgroundTransparency = 1
  4815. TextLabel191.BorderSizePixel = 0
  4816. TextLabel191.ZIndex = 3
  4817. TextLabel191.Font = Enum.Font.SourceSansItalic
  4818. TextLabel191.FontSize = Enum.FontSize.Size18
  4819. TextLabel191.Text = "Brakes"
  4820. TextLabel191.TextColor = BrickColor.new("Institutional white")
  4821. TextLabel191.TextColor3 = Color3.new(1, 1, 1)
  4822. TextLabel191.TextSize = 18
  4823. TextLabel191.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4824. TextLabel191.TextStrokeTransparency = 0.94999998807907
  4825. TextLabel191.TextXAlignment = Enum.TextXAlignment.Right
  4826. TextLabel192.Name = "T"
  4827. TextLabel192.Parent = Frame148
  4828. TextLabel192.Position = UDim2.new(1, 150, 0, 20)
  4829. TextLabel192.BackgroundColor = BrickColor.new("Institutional white")
  4830. TextLabel192.BackgroundColor3 = Color3.new(1, 1, 1)
  4831. TextLabel192.BackgroundTransparency = 1
  4832. TextLabel192.BorderSizePixel = 0
  4833. TextLabel192.ZIndex = 3
  4834. TextLabel192.Font = Enum.Font.SourceSansItalic
  4835. TextLabel192.FontSize = Enum.FontSize.Size18
  4836. TextLabel192.Text = "Throttle"
  4837. TextLabel192.TextColor = BrickColor.new("Institutional white")
  4838. TextLabel192.TextColor3 = Color3.new(1, 1, 1)
  4839. TextLabel192.TextSize = 18
  4840. TextLabel192.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  4841. TextLabel192.TextStrokeTransparency = 0.94999998807907
  4842. TextLabel192.TextXAlignment = Enum.TextXAlignment.Right
  4843. TextButton193.Name = "ToggleABS"
  4844. TextButton193.Parent = Frame148
  4845. TextButton193.Position = UDim2.new(0, 170, 0, 293)
  4846. TextButton193.Size = UDim2.new(0, 300, 0, 15)
  4847. TextButton193.BackgroundColor = BrickColor.new("Really black")
  4848. TextButton193.BackgroundColor3 = Color3.new(0, 0, 0)
  4849. TextButton193.BackgroundTransparency = 0.5
  4850. TextButton193.BorderSizePixel = 0
  4851. TextButton193.ZIndex = 3
  4852. TextButton193.Font = Enum.Font.SourceSans
  4853. TextButton193.FontSize = Enum.FontSize.Size14
  4854. TextButton193.TextColor = BrickColor.new("Institutional white")
  4855. TextButton193.TextColor3 = Color3.new(1, 1, 1)
  4856. TextButton193.TextSize = 14
  4857. TextButton194.Name = "ToggleTCS"
  4858. TextButton194.Parent = Frame148
  4859. TextButton194.Position = UDim2.new(0, 170, 0, 273)
  4860. TextButton194.Size = UDim2.new(0, 300, 0, 15)
  4861. TextButton194.BackgroundColor = BrickColor.new("Really black")
  4862. TextButton194.BackgroundColor3 = Color3.new(0, 0, 0)
  4863. TextButton194.BackgroundTransparency = 0.5
  4864. TextButton194.BorderSizePixel = 0
  4865. TextButton194.ZIndex = 3
  4866. TextButton194.Font = Enum.Font.SourceSans
  4867. TextButton194.FontSize = Enum.FontSize.Size14
  4868. TextButton194.TextColor = BrickColor.new("Institutional white")
  4869. TextButton194.TextColor3 = Color3.new(1, 1, 1)
  4870. TextButton194.TextSize = 14
  4871. TextButton195.Name = "ToggleTransMode"
  4872. TextButton195.Parent = Frame148
  4873. TextButton195.Position = UDim2.new(0, 170, 0, 253)
  4874. TextButton195.Size = UDim2.new(0, 300, 0, 15)
  4875. TextButton195.BackgroundColor = BrickColor.new("Really black")
  4876. TextButton195.BackgroundColor3 = Color3.new(0, 0, 0)
  4877. TextButton195.BackgroundTransparency = 0.5
  4878. TextButton195.BorderSizePixel = 0
  4879. TextButton195.ZIndex = 3
  4880. TextButton195.Font = Enum.Font.SourceSans
  4881. TextButton195.FontSize = Enum.FontSize.Size14
  4882. TextButton195.TextColor = BrickColor.new("Institutional white")
  4883. TextButton195.TextColor3 = Color3.new(1, 1, 1)
  4884. TextButton195.TextSize = 14
  4885. TextButton196.Name = "PBrake"
  4886. TextButton196.Parent = Frame148
  4887. TextButton196.Position = UDim2.new(0, 170, 0, 233)
  4888. TextButton196.Size = UDim2.new(0, 300, 0, 15)
  4889. TextButton196.BackgroundColor = BrickColor.new("Really black")
  4890. TextButton196.BackgroundColor3 = Color3.new(0, 0, 0)
  4891. TextButton196.BackgroundTransparency = 0.5
  4892. TextButton196.BorderSizePixel = 0
  4893. TextButton196.ZIndex = 3
  4894. TextButton196.Font = Enum.Font.SourceSans
  4895. TextButton196.FontSize = Enum.FontSize.Size14
  4896. TextButton196.TextColor = BrickColor.new("Institutional white")
  4897. TextButton196.TextColor3 = Color3.new(1, 1, 1)
  4898. TextButton196.TextSize = 14
  4899. TextButton197.Name = "Clutch"
  4900. TextButton197.Parent = Frame148
  4901. TextButton197.Position = UDim2.new(0, 170, 0, 213)
  4902. TextButton197.Size = UDim2.new(0, 300, 0, 15)
  4903. TextButton197.BackgroundColor = BrickColor.new("Really black")
  4904. TextButton197.BackgroundColor3 = Color3.new(0, 0, 0)
  4905. TextButton197.BackgroundTransparency = 0.5
  4906. TextButton197.BorderSizePixel = 0
  4907. TextButton197.ZIndex = 3
  4908. TextButton197.Font = Enum.Font.SourceSans
  4909. TextButton197.FontSize = Enum.FontSize.Size14
  4910. TextButton197.TextColor = BrickColor.new("Institutional white")
  4911. TextButton197.TextColor3 = Color3.new(1, 1, 1)
  4912. TextButton197.TextSize = 14
  4913. TextButton198.Name = "ShiftDown"
  4914. TextButton198.Parent = Frame148
  4915. TextButton198.Position = UDim2.new(0, 170, 0, 193)
  4916. TextButton198.Size = UDim2.new(0, 300, 0, 15)
  4917. TextButton198.BackgroundColor = BrickColor.new("Really black")
  4918. TextButton198.BackgroundColor3 = Color3.new(0, 0, 0)
  4919. TextButton198.BackgroundTransparency = 0.5
  4920. TextButton198.BorderSizePixel = 0
  4921. TextButton198.ZIndex = 3
  4922. TextButton198.Font = Enum.Font.SourceSans
  4923. TextButton198.FontSize = Enum.FontSize.Size14
  4924. TextButton198.TextColor = BrickColor.new("Institutional white")
  4925. TextButton198.TextColor3 = Color3.new(1, 1, 1)
  4926. TextButton198.TextSize = 14
  4927. TextButton199.Name = "ShiftUp"
  4928. TextButton199.Parent = Frame148
  4929. TextButton199.Position = UDim2.new(0, 170, 0, 173)
  4930. TextButton199.Size = UDim2.new(0, 300, 0, 15)
  4931. TextButton199.BackgroundColor = BrickColor.new("Really black")
  4932. TextButton199.BackgroundColor3 = Color3.new(0, 0, 0)
  4933. TextButton199.BackgroundTransparency = 0.5
  4934. TextButton199.BorderSizePixel = 0
  4935. TextButton199.ZIndex = 3
  4936. TextButton199.Font = Enum.Font.SourceSans
  4937. TextButton199.FontSize = Enum.FontSize.Size14
  4938. TextButton199.TextColor = BrickColor.new("Institutional white")
  4939. TextButton199.TextColor3 = Color3.new(1, 1, 1)
  4940. TextButton199.TextSize = 14
  4941. TextButton200.Name = "SteerRight2"
  4942. TextButton200.Parent = Frame148
  4943. TextButton200.Position = UDim2.new(0, 170, 0, 153)
  4944. TextButton200.Size = UDim2.new(0, 300, 0, 15)
  4945. TextButton200.BackgroundColor = BrickColor.new("Really black")
  4946. TextButton200.BackgroundColor3 = Color3.new(0, 0, 0)
  4947. TextButton200.BackgroundTransparency = 0.5
  4948. TextButton200.BorderSizePixel = 0
  4949. TextButton200.ZIndex = 3
  4950. TextButton200.Font = Enum.Font.SourceSans
  4951. TextButton200.FontSize = Enum.FontSize.Size14
  4952. TextButton200.TextColor = BrickColor.new("Institutional white")
  4953. TextButton200.TextColor3 = Color3.new(1, 1, 1)
  4954. TextButton200.TextSize = 14
  4955. TextButton201.Name = "SteerLeft2"
  4956. TextButton201.Parent = Frame148
  4957. TextButton201.Position = UDim2.new(0, 170, 0, 133)
  4958. TextButton201.Size = UDim2.new(0, 300, 0, 15)
  4959. TextButton201.BackgroundColor = BrickColor.new("Really black")
  4960. TextButton201.BackgroundColor3 = Color3.new(0, 0, 0)
  4961. TextButton201.BackgroundTransparency = 0.5
  4962. TextButton201.BorderSizePixel = 0
  4963. TextButton201.ZIndex = 3
  4964. TextButton201.Font = Enum.Font.SourceSans
  4965. TextButton201.FontSize = Enum.FontSize.Size14
  4966. TextButton201.TextColor = BrickColor.new("Institutional white")
  4967. TextButton201.TextColor3 = Color3.new(1, 1, 1)
  4968. TextButton201.TextSize = 14
  4969. TextButton202.Name = "Brake2"
  4970. TextButton202.Parent = Frame148
  4971. TextButton202.Position = UDim2.new(0, 170, 0, 113)
  4972. TextButton202.Size = UDim2.new(0, 300, 0, 15)
  4973. TextButton202.BackgroundColor = BrickColor.new("Really black")
  4974. TextButton202.BackgroundColor3 = Color3.new(0, 0, 0)
  4975. TextButton202.BackgroundTransparency = 0.5
  4976. TextButton202.BorderSizePixel = 0
  4977. TextButton202.ZIndex = 3
  4978. TextButton202.Font = Enum.Font.SourceSans
  4979. TextButton202.FontSize = Enum.FontSize.Size14
  4980. TextButton202.TextColor = BrickColor.new("Institutional white")
  4981. TextButton202.TextColor3 = Color3.new(1, 1, 1)
  4982. TextButton202.TextSize = 14
  4983. TextButton203.Name = "Throttle2"
  4984. TextButton203.Parent = Frame148
  4985. TextButton203.Position = UDim2.new(0, 170, 0, 93)
  4986. TextButton203.Size = UDim2.new(0, 300, 0, 15)
  4987. TextButton203.BackgroundColor = BrickColor.new("Really black")
  4988. TextButton203.BackgroundColor3 = Color3.new(0, 0, 0)
  4989. TextButton203.BackgroundTransparency = 0.5
  4990. TextButton203.BorderSizePixel = 0
  4991. TextButton203.ZIndex = 3
  4992. TextButton203.Font = Enum.Font.SourceSans
  4993. TextButton203.FontSize = Enum.FontSize.Size14
  4994. TextButton203.TextColor = BrickColor.new("Institutional white")
  4995. TextButton203.TextColor3 = Color3.new(1, 1, 1)
  4996. TextButton203.TextSize = 14
  4997. TextButton204.Name = "SteerRight"
  4998. TextButton204.Parent = Frame148
  4999. TextButton204.Position = UDim2.new(0, 170, 0, 73)
  5000. TextButton204.Size = UDim2.new(0, 300, 0, 15)
  5001. TextButton204.BackgroundColor = BrickColor.new("Really black")
  5002. TextButton204.BackgroundColor3 = Color3.new(0, 0, 0)
  5003. TextButton204.BackgroundTransparency = 0.5
  5004. TextButton204.BorderSizePixel = 0
  5005. TextButton204.ZIndex = 3
  5006. TextButton204.Font = Enum.Font.SourceSans
  5007. TextButton204.FontSize = Enum.FontSize.Size14
  5008. TextButton204.TextColor = BrickColor.new("Institutional white")
  5009. TextButton204.TextColor3 = Color3.new(1, 1, 1)
  5010. TextButton204.TextSize = 14
  5011. TextButton205.Name = "SteerLeft"
  5012. TextButton205.Parent = Frame148
  5013. TextButton205.Position = UDim2.new(0, 170, 0, 53)
  5014. TextButton205.Size = UDim2.new(0, 300, 0, 15)
  5015. TextButton205.BackgroundColor = BrickColor.new("Really black")
  5016. TextButton205.BackgroundColor3 = Color3.new(0, 0, 0)
  5017. TextButton205.BackgroundTransparency = 0.5
  5018. TextButton205.BorderSizePixel = 0
  5019. TextButton205.ZIndex = 3
  5020. TextButton205.Font = Enum.Font.SourceSans
  5021. TextButton205.FontSize = Enum.FontSize.Size14
  5022. TextButton205.TextColor = BrickColor.new("Institutional white")
  5023. TextButton205.TextColor3 = Color3.new(1, 1, 1)
  5024. TextButton205.TextSize = 14
  5025. TextButton206.Name = "Brake"
  5026. TextButton206.Parent = Frame148
  5027. TextButton206.Position = UDim2.new(0, 170, 0, 33)
  5028. TextButton206.Size = UDim2.new(0, 300, 0, 15)
  5029. TextButton206.BackgroundColor = BrickColor.new("Really black")
  5030. TextButton206.BackgroundColor3 = Color3.new(0, 0, 0)
  5031. TextButton206.BackgroundTransparency = 0.5
  5032. TextButton206.BorderSizePixel = 0
  5033. TextButton206.ZIndex = 3
  5034. TextButton206.Font = Enum.Font.SourceSans
  5035. TextButton206.FontSize = Enum.FontSize.Size14
  5036. TextButton206.TextColor = BrickColor.new("Institutional white")
  5037. TextButton206.TextColor3 = Color3.new(1, 1, 1)
  5038. TextButton206.TextSize = 14
  5039. TextButton207.Name = "Throttle"
  5040. TextButton207.Parent = Frame148
  5041. TextButton207.Position = UDim2.new(0, 170, 0, 13)
  5042. TextButton207.Size = UDim2.new(0, 300, 0, 15)
  5043. TextButton207.BackgroundColor = BrickColor.new("Really black")
  5044. TextButton207.BackgroundColor3 = Color3.new(0, 0, 0)
  5045. TextButton207.BackgroundTransparency = 0.5
  5046. TextButton207.BorderSizePixel = 0
  5047. TextButton207.ZIndex = 3
  5048. TextButton207.Font = Enum.Font.SourceSans
  5049. TextButton207.FontSize = Enum.FontSize.Size14
  5050. TextButton207.TextColor = BrickColor.new("Institutional white")
  5051. TextButton207.TextColor3 = Color3.new(1, 1, 1)
  5052. TextButton207.TextSize = 14
  5053. TextLabel208.Name = "T"
  5054. TextLabel208.Parent = Frame148
  5055. TextLabel208.Position = UDim2.new(0, 150, 0, 300)
  5056. TextLabel208.BackgroundColor = BrickColor.new("Institutional white")
  5057. TextLabel208.BackgroundColor3 = Color3.new(1, 1, 1)
  5058. TextLabel208.BackgroundTransparency = 1
  5059. TextLabel208.BorderSizePixel = 0
  5060. TextLabel208.ZIndex = 3
  5061. TextLabel208.Font = Enum.Font.SourceSansItalic
  5062. TextLabel208.FontSize = Enum.FontSize.Size18
  5063. TextLabel208.Text = "Toggle ABS"
  5064. TextLabel208.TextColor = BrickColor.new("Institutional white")
  5065. TextLabel208.TextColor3 = Color3.new(1, 1, 1)
  5066. TextLabel208.TextSize = 18
  5067. TextLabel208.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5068. TextLabel208.TextStrokeTransparency = 0.94999998807907
  5069. TextLabel208.TextXAlignment = Enum.TextXAlignment.Right
  5070. TextLabel209.Name = "T"
  5071. TextLabel209.Parent = Frame148
  5072. TextLabel209.Position = UDim2.new(0, 150, 0, 280)
  5073. TextLabel209.BackgroundColor = BrickColor.new("Institutional white")
  5074. TextLabel209.BackgroundColor3 = Color3.new(1, 1, 1)
  5075. TextLabel209.BackgroundTransparency = 1
  5076. TextLabel209.BorderSizePixel = 0
  5077. TextLabel209.ZIndex = 3
  5078. TextLabel209.Font = Enum.Font.SourceSansItalic
  5079. TextLabel209.FontSize = Enum.FontSize.Size18
  5080. TextLabel209.Text = "Toggle TCS"
  5081. TextLabel209.TextColor = BrickColor.new("Institutional white")
  5082. TextLabel209.TextColor3 = Color3.new(1, 1, 1)
  5083. TextLabel209.TextSize = 18
  5084. TextLabel209.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5085. TextLabel209.TextStrokeTransparency = 0.94999998807907
  5086. TextLabel209.TextXAlignment = Enum.TextXAlignment.Right
  5087. TextLabel210.Name = "T"
  5088. TextLabel210.Parent = Frame148
  5089. TextLabel210.Position = UDim2.new(0, 150, 0, 260)
  5090. TextLabel210.BackgroundColor = BrickColor.new("Institutional white")
  5091. TextLabel210.BackgroundColor3 = Color3.new(1, 1, 1)
  5092. TextLabel210.BackgroundTransparency = 1
  5093. TextLabel210.BorderSizePixel = 0
  5094. TextLabel210.ZIndex = 3
  5095. TextLabel210.Font = Enum.Font.SourceSansItalic
  5096. TextLabel210.FontSize = Enum.FontSize.Size18
  5097. TextLabel210.Text = "Transmission Mode"
  5098. TextLabel210.TextColor = BrickColor.new("Institutional white")
  5099. TextLabel210.TextColor3 = Color3.new(1, 1, 1)
  5100. TextLabel210.TextSize = 18
  5101. TextLabel210.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5102. TextLabel210.TextStrokeTransparency = 0.94999998807907
  5103. TextLabel210.TextXAlignment = Enum.TextXAlignment.Right
  5104. TextLabel211.Name = "T"
  5105. TextLabel211.Parent = Frame148
  5106. TextLabel211.Position = UDim2.new(0, 150, 0, 240)
  5107. TextLabel211.BackgroundColor = BrickColor.new("Institutional white")
  5108. TextLabel211.BackgroundColor3 = Color3.new(1, 1, 1)
  5109. TextLabel211.BackgroundTransparency = 1
  5110. TextLabel211.BorderSizePixel = 0
  5111. TextLabel211.ZIndex = 3
  5112. TextLabel211.Font = Enum.Font.SourceSansItalic
  5113. TextLabel211.FontSize = Enum.FontSize.Size18
  5114. TextLabel211.Text = "Handbrake"
  5115. TextLabel211.TextColor = BrickColor.new("Institutional white")
  5116. TextLabel211.TextColor3 = Color3.new(1, 1, 1)
  5117. TextLabel211.TextSize = 18
  5118. TextLabel211.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5119. TextLabel211.TextStrokeTransparency = 0.94999998807907
  5120. TextLabel211.TextXAlignment = Enum.TextXAlignment.Right
  5121. TextLabel212.Name = "T"
  5122. TextLabel212.Parent = Frame148
  5123. TextLabel212.Position = UDim2.new(0, 150, 0, 220)
  5124. TextLabel212.BackgroundColor = BrickColor.new("Institutional white")
  5125. TextLabel212.BackgroundColor3 = Color3.new(1, 1, 1)
  5126. TextLabel212.BackgroundTransparency = 1
  5127. TextLabel212.BorderSizePixel = 0
  5128. TextLabel212.ZIndex = 3
  5129. TextLabel212.Font = Enum.Font.SourceSansItalic
  5130. TextLabel212.FontSize = Enum.FontSize.Size18
  5131. TextLabel212.Text = "Clutch"
  5132. TextLabel212.TextColor = BrickColor.new("Institutional white")
  5133. TextLabel212.TextColor3 = Color3.new(1, 1, 1)
  5134. TextLabel212.TextSize = 18
  5135. TextLabel212.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5136. TextLabel212.TextStrokeTransparency = 0.94999998807907
  5137. TextLabel212.TextXAlignment = Enum.TextXAlignment.Right
  5138. TextLabel213.Name = "T"
  5139. TextLabel213.Parent = Frame148
  5140. TextLabel213.Position = UDim2.new(0, 150, 0, 200)
  5141. TextLabel213.BackgroundColor = BrickColor.new("Institutional white")
  5142. TextLabel213.BackgroundColor3 = Color3.new(1, 1, 1)
  5143. TextLabel213.BackgroundTransparency = 1
  5144. TextLabel213.BorderSizePixel = 0
  5145. TextLabel213.ZIndex = 3
  5146. TextLabel213.Font = Enum.Font.SourceSansItalic
  5147. TextLabel213.FontSize = Enum.FontSize.Size18
  5148. TextLabel213.Text = "Shift Down"
  5149. TextLabel213.TextColor = BrickColor.new("Institutional white")
  5150. TextLabel213.TextColor3 = Color3.new(1, 1, 1)
  5151. TextLabel213.TextSize = 18
  5152. TextLabel213.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5153. TextLabel213.TextStrokeTransparency = 0.94999998807907
  5154. TextLabel213.TextXAlignment = Enum.TextXAlignment.Right
  5155. TextLabel214.Name = "T"
  5156. TextLabel214.Parent = Frame148
  5157. TextLabel214.Position = UDim2.new(0, 150, 0, 180)
  5158. TextLabel214.BackgroundColor = BrickColor.new("Institutional white")
  5159. TextLabel214.BackgroundColor3 = Color3.new(1, 1, 1)
  5160. TextLabel214.BackgroundTransparency = 1
  5161. TextLabel214.BorderSizePixel = 0
  5162. TextLabel214.ZIndex = 3
  5163. TextLabel214.Font = Enum.Font.SourceSansItalic
  5164. TextLabel214.FontSize = Enum.FontSize.Size18
  5165. TextLabel214.Text = "Shift Up"
  5166. TextLabel214.TextColor = BrickColor.new("Institutional white")
  5167. TextLabel214.TextColor3 = Color3.new(1, 1, 1)
  5168. TextLabel214.TextSize = 18
  5169. TextLabel214.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5170. TextLabel214.TextStrokeTransparency = 0.94999998807907
  5171. TextLabel214.TextXAlignment = Enum.TextXAlignment.Right
  5172. TextLabel215.Name = "T"
  5173. TextLabel215.Parent = Frame148
  5174. TextLabel215.Position = UDim2.new(0, 150, 0, 160)
  5175. TextLabel215.BackgroundColor = BrickColor.new("Institutional white")
  5176. TextLabel215.BackgroundColor3 = Color3.new(1, 1, 1)
  5177. TextLabel215.BackgroundTransparency = 1
  5178. TextLabel215.BorderSizePixel = 0
  5179. TextLabel215.ZIndex = 3
  5180. TextLabel215.Font = Enum.Font.SourceSansItalic
  5181. TextLabel215.FontSize = Enum.FontSize.Size18
  5182. TextLabel215.Text = "[Secondary] SteerRight"
  5183. TextLabel215.TextColor = BrickColor.new("Institutional white")
  5184. TextLabel215.TextColor3 = Color3.new(1, 1, 1)
  5185. TextLabel215.TextSize = 18
  5186. TextLabel215.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5187. TextLabel215.TextStrokeTransparency = 0.94999998807907
  5188. TextLabel215.TextXAlignment = Enum.TextXAlignment.Right
  5189. TextLabel216.Name = "T"
  5190. TextLabel216.Parent = Frame148
  5191. TextLabel216.Position = UDim2.new(0, 150, 0, 140)
  5192. TextLabel216.BackgroundColor = BrickColor.new("Institutional white")
  5193. TextLabel216.BackgroundColor3 = Color3.new(1, 1, 1)
  5194. TextLabel216.BackgroundTransparency = 1
  5195. TextLabel216.BorderSizePixel = 0
  5196. TextLabel216.ZIndex = 3
  5197. TextLabel216.Font = Enum.Font.SourceSansItalic
  5198. TextLabel216.FontSize = Enum.FontSize.Size18
  5199. TextLabel216.Text = "[Secondary] Steer Left"
  5200. TextLabel216.TextColor = BrickColor.new("Institutional white")
  5201. TextLabel216.TextColor3 = Color3.new(1, 1, 1)
  5202. TextLabel216.TextSize = 18
  5203. TextLabel216.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5204. TextLabel216.TextStrokeTransparency = 0.94999998807907
  5205. TextLabel216.TextXAlignment = Enum.TextXAlignment.Right
  5206. TextLabel217.Name = "T"
  5207. TextLabel217.Parent = Frame148
  5208. TextLabel217.Position = UDim2.new(0, 150, 0, 120)
  5209. TextLabel217.BackgroundColor = BrickColor.new("Institutional white")
  5210. TextLabel217.BackgroundColor3 = Color3.new(1, 1, 1)
  5211. TextLabel217.BackgroundTransparency = 1
  5212. TextLabel217.BorderSizePixel = 0
  5213. TextLabel217.ZIndex = 3
  5214. TextLabel217.Font = Enum.Font.SourceSansItalic
  5215. TextLabel217.FontSize = Enum.FontSize.Size18
  5216. TextLabel217.Text = "[Secondary] Brakes"
  5217. TextLabel217.TextColor = BrickColor.new("Institutional white")
  5218. TextLabel217.TextColor3 = Color3.new(1, 1, 1)
  5219. TextLabel217.TextSize = 18
  5220. TextLabel217.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5221. TextLabel217.TextStrokeTransparency = 0.94999998807907
  5222. TextLabel217.TextXAlignment = Enum.TextXAlignment.Right
  5223. TextLabel218.Name = "T"
  5224. TextLabel218.Parent = Frame148
  5225. TextLabel218.Position = UDim2.new(0, 150, 0, 100)
  5226. TextLabel218.BackgroundColor = BrickColor.new("Institutional white")
  5227. TextLabel218.BackgroundColor3 = Color3.new(1, 1, 1)
  5228. TextLabel218.BackgroundTransparency = 1
  5229. TextLabel218.BorderSizePixel = 0
  5230. TextLabel218.ZIndex = 3
  5231. TextLabel218.Font = Enum.Font.SourceSansItalic
  5232. TextLabel218.FontSize = Enum.FontSize.Size18
  5233. TextLabel218.Text = "[Secondary] Throttle"
  5234. TextLabel218.TextColor = BrickColor.new("Institutional white")
  5235. TextLabel218.TextColor3 = Color3.new(1, 1, 1)
  5236. TextLabel218.TextSize = 18
  5237. TextLabel218.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5238. TextLabel218.TextStrokeTransparency = 0.94999998807907
  5239. TextLabel218.TextXAlignment = Enum.TextXAlignment.Right
  5240. TextLabel219.Name = "T"
  5241. TextLabel219.Parent = Frame148
  5242. TextLabel219.Position = UDim2.new(0, 150, 0, 80)
  5243. TextLabel219.BackgroundColor = BrickColor.new("Institutional white")
  5244. TextLabel219.BackgroundColor3 = Color3.new(1, 1, 1)
  5245. TextLabel219.BackgroundTransparency = 1
  5246. TextLabel219.BorderSizePixel = 0
  5247. TextLabel219.ZIndex = 3
  5248. TextLabel219.Font = Enum.Font.SourceSansItalic
  5249. TextLabel219.FontSize = Enum.FontSize.Size18
  5250. TextLabel219.Text = "Steer Right"
  5251. TextLabel219.TextColor = BrickColor.new("Institutional white")
  5252. TextLabel219.TextColor3 = Color3.new(1, 1, 1)
  5253. TextLabel219.TextSize = 18
  5254. TextLabel219.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5255. TextLabel219.TextStrokeTransparency = 0.94999998807907
  5256. TextLabel219.TextXAlignment = Enum.TextXAlignment.Right
  5257. TextLabel220.Name = "T"
  5258. TextLabel220.Parent = Frame148
  5259. TextLabel220.Position = UDim2.new(0, 150, 0, 60)
  5260. TextLabel220.BackgroundColor = BrickColor.new("Institutional white")
  5261. TextLabel220.BackgroundColor3 = Color3.new(1, 1, 1)
  5262. TextLabel220.BackgroundTransparency = 1
  5263. TextLabel220.BorderSizePixel = 0
  5264. TextLabel220.ZIndex = 3
  5265. TextLabel220.Font = Enum.Font.SourceSansItalic
  5266. TextLabel220.FontSize = Enum.FontSize.Size18
  5267. TextLabel220.Text = "Steer Left"
  5268. TextLabel220.TextColor = BrickColor.new("Institutional white")
  5269. TextLabel220.TextColor3 = Color3.new(1, 1, 1)
  5270. TextLabel220.TextSize = 18
  5271. TextLabel220.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5272. TextLabel220.TextStrokeTransparency = 0.94999998807907
  5273. TextLabel220.TextXAlignment = Enum.TextXAlignment.Right
  5274. TextLabel221.Name = "T"
  5275. TextLabel221.Parent = Frame148
  5276. TextLabel221.Position = UDim2.new(0, 150, 0, 40)
  5277. TextLabel221.BackgroundColor = BrickColor.new("Institutional white")
  5278. TextLabel221.BackgroundColor3 = Color3.new(1, 1, 1)
  5279. TextLabel221.BackgroundTransparency = 1
  5280. TextLabel221.BorderSizePixel = 0
  5281. TextLabel221.ZIndex = 3
  5282. TextLabel221.Font = Enum.Font.SourceSansItalic
  5283. TextLabel221.FontSize = Enum.FontSize.Size18
  5284. TextLabel221.Text = "Brakes"
  5285. TextLabel221.TextColor = BrickColor.new("Institutional white")
  5286. TextLabel221.TextColor3 = Color3.new(1, 1, 1)
  5287. TextLabel221.TextSize = 18
  5288. TextLabel221.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5289. TextLabel221.TextStrokeTransparency = 0.94999998807907
  5290. TextLabel221.TextXAlignment = Enum.TextXAlignment.Right
  5291. TextLabel222.Name = "T"
  5292. TextLabel222.Parent = Frame148
  5293. TextLabel222.Position = UDim2.new(0, 150, 0, 20)
  5294. TextLabel222.BackgroundColor = BrickColor.new("Institutional white")
  5295. TextLabel222.BackgroundColor3 = Color3.new(1, 1, 1)
  5296. TextLabel222.BackgroundTransparency = 1
  5297. TextLabel222.BorderSizePixel = 0
  5298. TextLabel222.ZIndex = 3
  5299. TextLabel222.Font = Enum.Font.SourceSansItalic
  5300. TextLabel222.FontSize = Enum.FontSize.Size18
  5301. TextLabel222.Text = "Throttle"
  5302. TextLabel222.TextColor = BrickColor.new("Institutional white")
  5303. TextLabel222.TextColor3 = Color3.new(1, 1, 1)
  5304. TextLabel222.TextSize = 18
  5305. TextLabel222.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5306. TextLabel222.TextStrokeTransparency = 0.94999998807907
  5307. TextLabel222.TextXAlignment = Enum.TextXAlignment.Right
  5308. TextButton223.Name = "ToggleMouseDrive"
  5309. TextButton223.Parent = Frame148
  5310. TextButton223.Position = UDim2.new(0, 170, 0, 313)
  5311. TextButton223.Size = UDim2.new(0, 300, 0, 15)
  5312. TextButton223.BackgroundColor = BrickColor.new("Really black")
  5313. TextButton223.BackgroundColor3 = Color3.new(0, 0, 0)
  5314. TextButton223.BackgroundTransparency = 0.5
  5315. TextButton223.BorderSizePixel = 0
  5316. TextButton223.ZIndex = 3
  5317. TextButton223.Font = Enum.Font.SourceSans
  5318. TextButton223.FontSize = Enum.FontSize.Size14
  5319. TextButton223.TextColor = BrickColor.new("Institutional white")
  5320. TextButton223.TextColor3 = Color3.new(1, 1, 1)
  5321. TextButton223.TextSize = 14
  5322. TextLabel224.Name = "T"
  5323. TextLabel224.Parent = Frame148
  5324. TextLabel224.Position = UDim2.new(0, 150, 0, 320)
  5325. TextLabel224.BackgroundColor = BrickColor.new("Institutional white")
  5326. TextLabel224.BackgroundColor3 = Color3.new(1, 1, 1)
  5327. TextLabel224.BackgroundTransparency = 1
  5328. TextLabel224.BorderSizePixel = 0
  5329. TextLabel224.ZIndex = 3
  5330. TextLabel224.Font = Enum.Font.SourceSansItalic
  5331. TextLabel224.FontSize = Enum.FontSize.Size18
  5332. TextLabel224.Text = "Switch Mouse Control"
  5333. TextLabel224.TextColor = BrickColor.new("Institutional white")
  5334. TextLabel224.TextColor3 = Color3.new(1, 1, 1)
  5335. TextLabel224.TextSize = 18
  5336. TextLabel224.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5337. TextLabel224.TextStrokeTransparency = 0.94999998807907
  5338. TextLabel224.TextXAlignment = Enum.TextXAlignment.Right
  5339. TextLabel225.Name = "T"
  5340. TextLabel225.Parent = Frame148
  5341. TextLabel225.Position = UDim2.new(2, 150, 0, 200)
  5342. TextLabel225.BackgroundColor = BrickColor.new("Institutional white")
  5343. TextLabel225.BackgroundColor3 = Color3.new(1, 1, 1)
  5344. TextLabel225.BackgroundTransparency = 1
  5345. TextLabel225.BorderSizePixel = 0
  5346. TextLabel225.ZIndex = 3
  5347. TextLabel225.Font = Enum.Font.SourceSansItalic
  5348. TextLabel225.FontSize = Enum.FontSize.Size18
  5349. TextLabel225.Text = "Toggle ABS"
  5350. TextLabel225.TextColor = BrickColor.new("Institutional white")
  5351. TextLabel225.TextColor3 = Color3.new(1, 1, 1)
  5352. TextLabel225.TextSize = 18
  5353. TextLabel225.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  5354. TextLabel225.TextStrokeTransparency = 0.94999998807907
  5355. TextLabel225.TextXAlignment = Enum.TextXAlignment.Right
  5356. TextButton226.Name = "ContlrToggleABS"
  5357. TextButton226.Parent = Frame148
  5358. TextButton226.Position = UDim2.new(2, 170, 0, 193)
  5359. TextButton226.Size = UDim2.new(0, 300, 0, 15)
  5360. TextButton226.BackgroundColor = BrickColor.new("Really black")
  5361. TextButton226.BackgroundColor3 = Color3.new(0, 0, 0)
  5362. TextButton226.BackgroundTransparency = 0.5
  5363. TextButton226.BorderSizePixel = 0
  5364. TextButton226.ZIndex = 3
  5365. TextButton226.Font = Enum.Font.SourceSans
  5366. TextButton226.FontSize = Enum.FontSize.Size14
  5367. TextButton226.TextColor = BrickColor.new("Institutional white")
  5368. TextButton226.TextColor3 = Color3.new(1, 1, 1)
  5369. TextButton226.TextSize = 14
  5370. TextButton227.Name = "Toggle"
  5371. TextButton227.Parent = Frame136
  5372. TextButton227.Position = UDim2.new(0.5, -50, 1, 10)
  5373. TextButton227.Size = UDim2.new(0, 100, 0, 18)
  5374. TextButton227.BackgroundColor = BrickColor.new("Deep orange")
  5375. TextButton227.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  5376. TextButton227.BackgroundTransparency = 0.5
  5377. TextButton227.BorderColor = BrickColor.new("Sand violet metallic")
  5378. TextButton227.BorderColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  5379. TextButton227.BorderSizePixel = 0
  5380. TextButton227.ZIndex = 5
  5381. TextButton227.Font = Enum.Font.Arial
  5382. TextButton227.FontSize = Enum.FontSize.Size18
  5383. TextButton227.Text = "Controls"
  5384. TextButton227.TextColor = BrickColor.new("Institutional white")
  5385. TextButton227.TextColor3 = Color3.new(1, 1, 1)
  5386. TextButton227.TextSize = 16
  5387. TextButton227.TextStrokeColor3 = Color3.new(0.415686, 0.415686, 0.415686)
  5388. TextButton227.TextYAlignment = Enum.TextYAlignment.Bottom
  5389. LocalScript228.Name = "Smoke [FE+]"
  5390. LocalScript228.Parent = Folder100
  5391. table.insert(cors,sandbox(LocalScript228,function()
  5392. local FE = workspace.FilteringEnabled
  5393. local car = script.Parent.Car.Value
  5394. car.Wheels.RL.SQ:Play()
  5395. car.Wheels.RR.SQ:Play()
  5396. local handler = car:WaitForChild("Smoke_FE")
  5397.  
  5398. while wait(.2) do
  5399. local r1 = Ray.new(car.Wheels.RL.Position,(car.Wheels.RL.Arm.CFrame*CFrame.Angles(-math.pi/2,0,0)).lookVector*(.05+car.Wheels.RL.Size.x/2))
  5400. local r1hit = 0
  5401. if workspace:FindPartOnRay(r1,car)~=nil then r1hit=1 end
  5402.  
  5403. local r2 = Ray.new(car.Wheels.RL.Position,(car.Wheels.RR.Arm.CFrame*CFrame.Angles(-math.pi/2,0,0)).lookVector*(.05+car.Wheels.RR.Size.x/2))
  5404. local r2hit = 0
  5405. if workspace:FindPartOnRay(r2,car)~=nil then r2hit=1 end
  5406.  
  5407. local rl = math.min((math.max(math.abs((car.Wheels.RL.RotVelocity.Magnitude*car.Wheels.RL.Size.x/2) - (car.Wheels.RL.Velocity.Magnitude))-30,0)),50)*r1hit
  5408. local rr = math.min((math.max(math.abs((car.Wheels.RR.RotVelocity.Magnitude*car.Wheels.RR.Size.x/2) - (car.Wheels.RR.Velocity.Magnitude))-30,0)),50)*r2hit
  5409.  
  5410. if FE then
  5411. handler:FireServer("UpdateSmoke",rl,rr)
  5412. else
  5413. car.Wheels.RL.Smoke.Rate = rl
  5414. car.Wheels.RR.Smoke.Rate = rr
  5415. car.Wheels.RL.SQ.Volume = rl/50
  5416. car.Wheels.RR.SQ.Volume = rr/50
  5417. end
  5418. end
  5419.  
  5420. end))
  5421. RemoteEvent229.Name = "Smoke_FE"
  5422. RemoteEvent229.Parent = LocalScript228
  5423. Script230.Name = "Handler"
  5424. Script230.Parent = RemoteEvent229
  5425. table.insert(cors,sandbox(Script230,function()
  5426. local car = script.Parent.Parent
  5427. local F = {}
  5428.  
  5429. F.UpdateSmoke = function(rl,rr)
  5430. car.Wheels.RL.Smoke.Rate = rl
  5431. car.Wheels.RR.Smoke.Rate = rr
  5432. car.Wheels.RL.SQ.Volume = rl/50
  5433. car.Wheels.RR.SQ.Volume = rr/50
  5434. end
  5435.  
  5436. script.Parent.OnServerEvent:connect(function(pl,Fnc,...)
  5437. F[Fnc](...)
  5438. end)
  5439.  
  5440. car.DriveSeat.ChildRemoved:connect(function(child)
  5441. if child.Name=="SeatWeld" then
  5442. car.Wheels.RL.SQ:Stop()
  5443. car.Wheels.RR.SQ:Stop()
  5444. car.Wheels.RL.Smoke.Rate=0
  5445. car.Wheels.RR.Smoke.Rate=0
  5446. end
  5447. end)
  5448.  
  5449. for i,v in pairs(car.Wheels:GetChildren()) do
  5450. if v.Name=="RL" or v.Name=="RR" or v.Name=="R" then
  5451. local sq = script.Parent.SQ:Clone()
  5452. sq.Parent=v
  5453. local sm = script.Parent.Smoke:Clone()
  5454. sm.Parent=v
  5455. end
  5456. end
  5457. end))
  5458. Script230.Disabled = true
  5459. Sound231.Name = "SQ"
  5460. Sound231.Parent = RemoteEvent229
  5461. Sound231.Looped = true
  5462. Sound231.SoundId = "rbxassetid://201887209"
  5463. Sound231.Volume = 0
  5464. ParticleEmitter232.Name = "Smoke"
  5465. ParticleEmitter232.Parent = RemoteEvent229
  5466. ParticleEmitter232.Speed = NumberRange.new(-2, 0)
  5467. ParticleEmitter232.Color = ColorSequence.new(Color3.new(0.866667, 0.882353, 1),Color3.new(0.866667, 0.882353, 1))
  5468. ParticleEmitter232.Texture = "rbxassetid://982254017"
  5469. ParticleEmitter232.Transparency = NumberSequence.new(0.75,1)
  5470. ParticleEmitter232.Size = NumberSequence.new(3,7.8611102104187,9.3888902664185)
  5471. ParticleEmitter232.Acceleration = Vector3.new(0, 1, 0)
  5472. ParticleEmitter232.EmissionDirection = Enum.NormalId.Bottom
  5473. ParticleEmitter232.Lifetime = NumberRange.new(5, 5)
  5474. ParticleEmitter232.Rate = 0
  5475. ParticleEmitter232.RotSpeed = NumberRange.new(20, 100)
  5476. ParticleEmitter232.SpreadAngle = Vector2.new(20, 20)
  5477. ParticleEmitter232.VelocitySpread = 20
  5478. LocalScript233.Name = "Sounds"
  5479. LocalScript233.Parent = Folder100
  5480. table.insert(cors,sandbox(LocalScript233,function()
  5481. --[[
  5482. ___ _______ _
  5483. / _ |____/ ___/ / ___ ____ ___ (_)__
  5484. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
  5485. /_/ |_| \___/_//_/\_,_/___/___/_/___/
  5486. SecondLogic @ Inspare
  5487. ]]
  5488. local FE = workspace.FilteringEnabled
  5489. local car = script.Parent.Car.Value
  5490. local _Tune = require(car["A-Chassis Tune"])
  5491. local on = 0
  5492.  
  5493. script:WaitForChild("Rev")
  5494.  
  5495. if not FE then
  5496. for i,v in pairs(car.DriveSeat:GetChildren()) do
  5497. for _,a in pairs(script:GetChildren()) do
  5498. if v.Name==a.Name then v:Stop() wait() v:Destroy() end
  5499. end
  5500. end
  5501. for i,v in pairs(script:GetChildren()) do
  5502. v.Parent=car.DriveSeat
  5503. end
  5504.  
  5505. car.DriveSeat.Rev:Play()
  5506.  
  5507. while wait() do
  5508. local _RPM = script.Parent.Values.RPM.Value
  5509.  
  5510. if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
  5511. car.DriveSeat.Rev.Pitch = (car.DriveSeat.Rev.SetPitch.Value + car.DriveSeat.Rev.SetRev.Value*_RPM/_Tune.Redline)*on^2
  5512. end
  5513. else
  5514. local handler = car.AC6_FE_Sounds
  5515. handler:FireServer("newSound","Rev",car.DriveSeat,script.Rev.SoundId,0,script.Rev.Volume,true)
  5516. handler:FireServer("playSound","Rev")
  5517. local pitch=0
  5518. while wait() do
  5519. local _RPM = script.Parent.Values.RPM.Value
  5520.  
  5521. if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
  5522. pitch = (script.Rev.SetPitch.Value + script.Rev.SetRev.Value*_RPM/_Tune.Redline)*on^2
  5523. handler:FireServer("updateSound","Rev",script.Rev.SoundId,pitch,script.Rev.Volume)
  5524. end
  5525. end
  5526.  
  5527. end))
  5528. RemoteEvent234.Name = "AC6_FE_Sounds"
  5529. RemoteEvent234.Parent = LocalScript233
  5530. Script235.Name = "Handler"
  5531. Script235.Parent = RemoteEvent234
  5532. table.insert(cors,sandbox(Script235,function()
  5533. local Sounds = {}
  5534. local F = {}
  5535.  
  5536. F.newSound = function(name,par,id,pitch,volume,loop)
  5537. for i,v in pairs(Sounds) do
  5538. if i==name then
  5539. v:Stop()
  5540. v:Destroy()
  5541. end
  5542. end
  5543. local sn = Instance.new("Sound",par)
  5544. sn.Name = name
  5545. sn.SoundId = id
  5546. sn.Pitch = pitch
  5547. sn.Volume = volume
  5548. sn.Looped = loop
  5549. sn.AncestryChanged:connect(function(child,parent) print(parent) end)
  5550. Sounds[name]=sn
  5551. end
  5552.  
  5553. F.updateSound = function(sound,id,pit,vol)
  5554. local sn = Sounds[sound]
  5555. if id~=sn.SoundId then sn.SoundId = id end
  5556. if pit~=sn.Pitch then sn.Pitch = pit end
  5557. if vol~=sn.Volume then sn.Volume = vol end
  5558. end
  5559.  
  5560. F.playSound = function(sound)
  5561. Sounds[sound]:Play()
  5562. end
  5563.  
  5564. F.pauseSound = function(sound)
  5565. Sounds[sound]:Pause()
  5566. end
  5567.  
  5568. F.stopSound = function(sound)
  5569. Sounds[sound]:Stop()
  5570. end
  5571.  
  5572. F.removeSound = function(sound)
  5573. Sounds[sound]:Stop()
  5574. Sounds[sound]:Destroy()
  5575. Sounds[sound]=nil
  5576. end
  5577.  
  5578. script.Parent.OnServerEvent:connect(function(pl,Fnc,...)
  5579. F[Fnc](...)
  5580. end)
  5581. end))
  5582. Script235.Disabled = true
  5583. Sound236.Name = "Rev"
  5584. Sound236.Parent = LocalScript233
  5585. Sound236.Looped = true
  5586. Sound236.Pitch = 0
  5587. Sound236.PlaybackSpeed = 0
  5588. Sound236.SoundId = "rbxassetid://988907615"
  5589. Sound236.Volume = 9
  5590. NumberValue237.Name = "SetRev"
  5591. NumberValue237.Parent = Sound236
  5592. NumberValue237.Value = 0.95
  5593. NumberValue238.Name = "SetPitch"
  5594. NumberValue238.Parent = Sound236
  5595. NumberValue238.Value = 0.06
  5596. Camera239.Name = "ThumbnailCamera"
  5597. Camera239.Parent = Model0
  5598. Camera239.CFrame = CFrame.new(-13.5175266, 7.23358154, -2.35865545, -0.18066442, 0.0566165522, -0.981913924, -0, 0.998341858, 0.0575637743, 0.983544827, 0.0103997262, -0.180364832)
  5599. Camera239.CoordinateFrame = CFrame.new(-13.5175266, 7.23358154, -2.35865545, -0.18066442, 0.0566165522, -0.981913924, -0, 0.998341858, 0.0575637743, 0.983544827, 0.0103997262, -0.180364832)
  5600. Camera239.Focus = CFrame.new(-11.5536985, 7.11845398, -1.99792576, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5601. Camera239.focus = CFrame.new(-11.5536985, 7.11845398, -1.99792576, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5602. for i,v in pairs(mas:GetChildren()) do
  5603. v.Parent = workspace
  5604. pcall(function() v:MakeJoints() end)
  5605. end
  5606. mas:Destroy()
  5607. for i,v in pairs(cors) do
  5608. spawn(function()
  5609. pcall(v)
  5610. end)
  5611. end
  5612.  
Add Comment
Please, Sign In to add comment