Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Model")
- o2 = Instance.new("VehicleSeat")
- o3 = Instance.new("Sound")
- o4 = Instance.new("Sound")
- o5 = Instance.new("Sound")
- o6 = Instance.new("Script")
- o7 = Instance.new("ScreenGui")
- o8 = Instance.new("LocalScript")
- o9 = Instance.new("ObjectValue")
- o10 = Instance.new("Sound")
- o11 = Instance.new("Script")
- o12 = Instance.new("ScreenGui")
- o13 = Instance.new("LocalScript")
- o14 = Instance.new("ObjectValue")
- o15 = Instance.new("Sound")
- o16 = Instance.new("Script")
- o17 = Instance.new("ScreenGui")
- o18 = Instance.new("LocalScript")
- o19 = Instance.new("ObjectValue")
- o20 = Instance.new("Sound")
- o21 = Instance.new("Script")
- o22 = Instance.new("Script")
- o23 = Instance.new("Sound")
- o24 = Instance.new("BoolValue")
- o25 = Instance.new("BoolValue")
- o26 = Instance.new("ScreenGui")
- o28 = Instance.new("Folder")
- o29 = Instance.new("Frame")
- o30 = Instance.new("LocalScript")
- o31 = Instance.new("Frame")
- o32 = Instance.new("Frame")
- o33 = Instance.new("Frame")
- o34 = Instance.new("ImageLabel")
- o35 = Instance.new("Frame")
- o36 = Instance.new("Frame")
- o37 = Instance.new("ImageLabel")
- o38 = Instance.new("Frame")
- o39 = Instance.new("Frame")
- o40 = Instance.new("ImageLabel")
- o41 = Instance.new("Frame")
- o42 = Instance.new("Frame")
- o43 = Instance.new("ImageLabel")
- o44 = Instance.new("Frame")
- o45 = Instance.new("Frame")
- o46 = Instance.new("ImageLabel")
- o47 = Instance.new("TextLabel")
- o48 = Instance.new("TextLabel")
- o49 = Instance.new("Frame")
- o50 = Instance.new("TextButton")
- o51 = Instance.new("Frame")
- o52 = Instance.new("Frame")
- o53 = Instance.new("Frame")
- o54 = Instance.new("TextButton")
- o55 = Instance.new("TextButton")
- o56 = Instance.new("TextButton")
- o57 = Instance.new("TextLabel")
- o58 = Instance.new("TextLabel")
- o59 = Instance.new("Frame")
- o60 = Instance.new("TextLabel")
- o61 = Instance.new("TextLabel")
- o62 = Instance.new("TextLabel")
- o63 = Instance.new("TextLabel")
- o64 = Instance.new("TextLabel")
- o65 = Instance.new("TextLabel")
- o66 = Instance.new("TextLabel")
- o67 = Instance.new("TextLabel")
- o68 = Instance.new("TextLabel")
- o69 = Instance.new("TextLabel")
- o70 = Instance.new("TextLabel")
- o71 = Instance.new("TextLabel")
- o72 = Instance.new("TextLabel")
- o73 = Instance.new("TextLabel")
- o74 = Instance.new("TextLabel")
- o75 = Instance.new("TextButton")
- o76 = Instance.new("TextButton")
- o77 = Instance.new("TextButton")
- o78 = Instance.new("TextButton")
- o79 = Instance.new("TextButton")
- o80 = Instance.new("TextButton")
- o81 = Instance.new("TextButton")
- o82 = Instance.new("TextButton")
- o83 = Instance.new("TextButton")
- o84 = Instance.new("TextButton")
- o85 = Instance.new("TextButton")
- o86 = Instance.new("TextButton")
- o87 = Instance.new("TextButton")
- o88 = Instance.new("TextButton")
- o89 = Instance.new("TextButton")
- o90 = Instance.new("TextLabel")
- o91 = Instance.new("TextLabel")
- o92 = Instance.new("TextLabel")
- o93 = Instance.new("TextLabel")
- o94 = Instance.new("TextLabel")
- o95 = Instance.new("TextLabel")
- o96 = Instance.new("TextLabel")
- o97 = Instance.new("TextButton")
- o98 = Instance.new("TextButton")
- o99 = Instance.new("TextButton")
- o100 = Instance.new("TextButton")
- o101 = Instance.new("TextButton")
- o102 = Instance.new("TextButton")
- o103 = Instance.new("TextButton")
- o104 = Instance.new("TextLabel")
- o105 = Instance.new("TextLabel")
- o106 = Instance.new("TextLabel")
- o107 = Instance.new("TextLabel")
- o108 = Instance.new("TextLabel")
- o109 = Instance.new("TextLabel")
- o110 = Instance.new("TextLabel")
- o111 = Instance.new("TextLabel")
- o112 = Instance.new("TextLabel")
- o113 = Instance.new("TextButton")
- o114 = Instance.new("TextButton")
- o115 = Instance.new("TextButton")
- o116 = Instance.new("TextButton")
- o117 = Instance.new("TextButton")
- o118 = Instance.new("TextButton")
- o119 = Instance.new("TextButton")
- o120 = Instance.new("TextButton")
- o121 = Instance.new("TextButton")
- o122 = Instance.new("TextLabel")
- o123 = Instance.new("TextLabel")
- o124 = Instance.new("TextLabel")
- o125 = Instance.new("TextLabel")
- o126 = Instance.new("TextLabel")
- o127 = Instance.new("ScrollingFrame")
- o128 = Instance.new("TextLabel")
- o129 = Instance.new("ScrollingFrame")
- o130 = Instance.new("TextLabel")
- o131 = Instance.new("ScrollingFrame")
- o132 = Instance.new("TextLabel")
- o133 = Instance.new("ScrollingFrame")
- o134 = Instance.new("TextLabel")
- o135 = Instance.new("TextLabel")
- o136 = Instance.new("LocalScript")
- o137 = Instance.new("Frame")
- o138 = Instance.new("LocalScript")
- o139 = Instance.new("Frame")
- o140 = Instance.new("Frame")
- o141 = Instance.new("Frame")
- o142 = Instance.new("Frame")
- o143 = Instance.new("Frame")
- o144 = Instance.new("Frame")
- o145 = Instance.new("Frame")
- o146 = Instance.new("Frame")
- o147 = Instance.new("TextLabel")
- o148 = Instance.new("TextLabel")
- o149 = Instance.new("TextLabel")
- o150 = Instance.new("TextLabel")
- o151 = Instance.new("TextLabel")
- o152 = Instance.new("TextLabel")
- o153 = Instance.new("TextLabel")
- o154 = Instance.new("LocalScript")
- o155 = Instance.new("LocalScript")
- o156 = Instance.new("LocalScript")
- o157 = Instance.new("LocalScript")
- o158 = Instance.new("LocalScript")
- o159 = Instance.new("RemoteEvent")
- o160 = Instance.new("Script")
- o161 = Instance.new("Sound")
- o162 = Instance.new("NumberValue")
- o163 = Instance.new("NumberValue")
- o164 = Instance.new("LocalScript")
- o165 = Instance.new("Sound")
- o166 = Instance.new("Sound")
- o167 = Instance.new("ScreenGui")
- o168 = Instance.new("ObjectValue")
- o169 = Instance.new("Folder")
- o170 = Instance.new("NumberValue")
- o171 = Instance.new("NumberValue")
- o172 = Instance.new("NumberValue")
- o173 = Instance.new("StringValue")
- o174 = Instance.new("NumberValue")
- o175 = Instance.new("NumberValue")
- o176 = Instance.new("NumberValue")
- o177 = Instance.new("NumberValue")
- o178 = Instance.new("NumberValue")
- o179 = Instance.new("BoolValue")
- o180 = Instance.new("BoolValue")
- o181 = Instance.new("BoolValue")
- o182 = Instance.new("Vector3Value")
- o183 = Instance.new("BoolValue")
- o184 = Instance.new("BoolValue")
- o185 = Instance.new("LocalScript")
- o186 = Instance.new("Script")
- o189 = Instance.new("Sound")
- o190 = Instance.new("BoolValue")
- o191 = Instance.new("Script")
- o192 = Instance.new("Script")
- o193 = Instance.new("Sound")
- o194 = Instance.new("Sound")
- o195 = Instance.new("NumberValue")
- o196 = Instance.new("BoolValue")
- o197 = Instance.new("BoolValue")
- o198 = Instance.new("BoolValue")
- o199 = Instance.new("BoolValue")
- o200 = Instance.new("BoolValue")
- o201 = Instance.new("NumberValue")
- o203 = Instance.new("Folder")
- o204 = Instance.new("Frame")
- o205 = Instance.new("LocalScript")
- o206 = Instance.new("Frame")
- o207 = Instance.new("Frame")
- o208 = Instance.new("Frame")
- o209 = Instance.new("ImageLabel")
- o210 = Instance.new("Frame")
- o211 = Instance.new("Frame")
- o212 = Instance.new("ImageLabel")
- o213 = Instance.new("Frame")
- o214 = Instance.new("Frame")
- o215 = Instance.new("ImageLabel")
- o216 = Instance.new("Frame")
- o217 = Instance.new("Frame")
- o218 = Instance.new("ImageLabel")
- o219 = Instance.new("Frame")
- o220 = Instance.new("Frame")
- o221 = Instance.new("ImageLabel")
- o222 = Instance.new("TextLabel")
- o223 = Instance.new("TextLabel")
- o224 = Instance.new("Frame")
- o225 = Instance.new("TextButton")
- o226 = Instance.new("Frame")
- o227 = Instance.new("Frame")
- o228 = Instance.new("Frame")
- o229 = Instance.new("TextButton")
- o230 = Instance.new("TextButton")
- o231 = Instance.new("TextButton")
- o232 = Instance.new("TextLabel")
- o233 = Instance.new("TextLabel")
- o234 = Instance.new("Frame")
- o235 = Instance.new("TextLabel")
- o236 = Instance.new("TextLabel")
- o237 = Instance.new("TextLabel")
- o238 = Instance.new("TextLabel")
- o239 = Instance.new("TextLabel")
- o240 = Instance.new("TextLabel")
- o241 = Instance.new("TextLabel")
- o242 = Instance.new("TextLabel")
- o243 = Instance.new("TextLabel")
- o244 = Instance.new("TextLabel")
- o245 = Instance.new("TextLabel")
- o246 = Instance.new("TextLabel")
- o247 = Instance.new("TextLabel")
- o248 = Instance.new("TextLabel")
- o249 = Instance.new("TextLabel")
- o250 = Instance.new("TextButton")
- o251 = Instance.new("TextButton")
- o252 = Instance.new("TextButton")
- o253 = Instance.new("TextButton")
- o254 = Instance.new("TextButton")
- o255 = Instance.new("TextButton")
- o256 = Instance.new("TextButton")
- o257 = Instance.new("TextButton")
- o258 = Instance.new("TextButton")
- o259 = Instance.new("TextButton")
- o260 = Instance.new("TextButton")
- o261 = Instance.new("TextButton")
- o262 = Instance.new("TextButton")
- o263 = Instance.new("TextButton")
- o264 = Instance.new("TextButton")
- o265 = Instance.new("TextLabel")
- o266 = Instance.new("TextLabel")
- o267 = Instance.new("TextLabel")
- o268 = Instance.new("TextLabel")
- o269 = Instance.new("TextLabel")
- o270 = Instance.new("TextLabel")
- o271 = Instance.new("TextLabel")
- o272 = Instance.new("TextButton")
- o273 = Instance.new("TextButton")
- o274 = Instance.new("TextButton")
- o275 = Instance.new("TextButton")
- o276 = Instance.new("TextButton")
- o277 = Instance.new("TextButton")
- o278 = Instance.new("TextButton")
- o279 = Instance.new("TextLabel")
- o280 = Instance.new("TextLabel")
- o281 = Instance.new("TextLabel")
- o282 = Instance.new("TextLabel")
- o283 = Instance.new("TextLabel")
- o284 = Instance.new("TextLabel")
- o285 = Instance.new("TextLabel")
- o286 = Instance.new("TextLabel")
- o287 = Instance.new("TextLabel")
- o288 = Instance.new("TextButton")
- o289 = Instance.new("TextButton")
- o290 = Instance.new("TextButton")
- o291 = Instance.new("TextButton")
- o292 = Instance.new("TextButton")
- o293 = Instance.new("TextButton")
- o294 = Instance.new("TextButton")
- o295 = Instance.new("TextButton")
- o296 = Instance.new("TextButton")
- o297 = Instance.new("TextLabel")
- o298 = Instance.new("TextLabel")
- o299 = Instance.new("TextLabel")
- o300 = Instance.new("TextLabel")
- o301 = Instance.new("TextLabel")
- o302 = Instance.new("ScrollingFrame")
- o303 = Instance.new("TextLabel")
- o304 = Instance.new("ScrollingFrame")
- o305 = Instance.new("TextLabel")
- o306 = Instance.new("ScrollingFrame")
- o307 = Instance.new("TextLabel")
- o308 = Instance.new("ScrollingFrame")
- o309 = Instance.new("TextLabel")
- o310 = Instance.new("TextLabel")
- o311 = Instance.new("LocalScript")
- o312 = Instance.new("LocalScript")
- o313 = Instance.new("LocalScript")
- o314 = Instance.new("LocalScript")
- o315 = Instance.new("LocalScript")
- o316 = Instance.new("LocalScript")
- o317 = Instance.new("LocalScript")
- o318 = Instance.new("LocalScript")
- o319 = Instance.new("LocalScript")
- o320 = Instance.new("LocalScript")
- o321 = Instance.new("Sound")
- o322 = Instance.new("Sound")
- o323 = Instance.new("LocalScript")
- o324 = Instance.new("LocalScript")
- o325 = Instance.new("Sound")
- o326 = Instance.new("NumberValue")
- o327 = Instance.new("NumberValue")
- o328 = Instance.new("RemoteEvent")
- o329 = Instance.new("Script")
- o330 = Instance.new("LocalScript")
- o331 = Instance.new("Frame")
- o332 = Instance.new("LocalScript")
- o333 = Instance.new("Frame")
- o334 = Instance.new("Frame")
- o335 = Instance.new("Frame")
- o336 = Instance.new("Frame")
- o337 = Instance.new("Frame")
- o338 = Instance.new("Frame")
- o339 = Instance.new("Frame")
- o340 = Instance.new("Frame")
- o341 = Instance.new("TextLabel")
- o342 = Instance.new("TextLabel")
- o343 = Instance.new("TextLabel")
- o344 = Instance.new("TextLabel")
- o345 = Instance.new("TextLabel")
- o346 = Instance.new("TextLabel")
- o347 = Instance.new("TextLabel")
- o348 = Instance.new("ScreenGui")
- o349 = Instance.new("ObjectValue")
- o350 = Instance.new("Folder")
- o351 = Instance.new("NumberValue")
- o352 = Instance.new("NumberValue")
- o353 = Instance.new("NumberValue")
- o354 = Instance.new("StringValue")
- o355 = Instance.new("NumberValue")
- o356 = Instance.new("NumberValue")
- o357 = Instance.new("NumberValue")
- o358 = Instance.new("NumberValue")
- o359 = Instance.new("NumberValue")
- o360 = Instance.new("BoolValue")
- o361 = Instance.new("BoolValue")
- o362 = Instance.new("BoolValue")
- o363 = Instance.new("Vector3Value")
- o364 = Instance.new("BoolValue")
- o365 = Instance.new("BoolValue")
- o366 = Instance.new("LocalScript")
- o367 = Instance.new("Script")
- o370 = Instance.new("Humanoid")
- o371 = Instance.new("Model")
- o372 = Instance.new("Part")
- o373 = Instance.new("Model")
- o375 = Instance.new("Part")
- o376 = Instance.new("BlockMesh")
- o377 = Instance.new("Decal")
- o378 = Instance.new("Model")
- o381 = Instance.new("ParticleEmitter")
- o382 = Instance.new("Script")
- o385 = Instance.new("Part")
- o386 = Instance.new("Model")
- o388 = Instance.new("Part")
- o389 = Instance.new("BlockMesh")
- o390 = Instance.new("Decal")
- o391 = Instance.new("Model")
- o394 = Instance.new("ParticleEmitter")
- o395 = Instance.new("Script")
- o398 = Instance.new("Part")
- o399 = Instance.new("Model")
- o401 = Instance.new("Part")
- o402 = Instance.new("BlockMesh")
- o403 = Instance.new("Decal")
- o404 = Instance.new("Model")
- o408 = Instance.new("ParticleEmitter")
- o409 = Instance.new("Script")
- o411 = Instance.new("Part")
- o412 = Instance.new("Model")
- o414 = Instance.new("Part")
- o415 = Instance.new("BlockMesh")
- o416 = Instance.new("Decal")
- o417 = Instance.new("Model")
- o421 = Instance.new("ParticleEmitter")
- o422 = Instance.new("Script")
- o424 = Instance.new("Model")
- o425 = Instance.new("Model")
- o426 = Instance.new("Model")
- o427 = Instance.new("Model")
- o429 = Instance.new("Model")
- o431 = Instance.new("Model")
- o433 = Instance.new("SurfaceLight")
- o434 = Instance.new("Part")
- o435 = Instance.new("Model")
- o436 = Instance.new("Script")
- o437 = Instance.new("Model")
- o441 = Instance.new("Part")
- o442 = Instance.new("Model")
- o456 = Instance.new("Sound")
- o457 = Instance.new("Script")
- o458 = Instance.new("Script")
- o459 = Instance.new("Sound")
- o460 = Instance.new("Sound")
- o461 = Instance.new("NumberValue")
- o462 = Instance.new("ParticleEmitter")
- o463 = Instance.new("Script")
- o469 = Instance.new("Script")
- o472 = Instance.new("Sound")
- o473 = Instance.new("Sound")
- o474 = Instance.new("Script")
- o475 = Instance.new("NumberValue")
- o476 = Instance.new("ParticleEmitter")
- o490 = Instance.new("Texture")
- o492 = Instance.new("Sound")
- o493 = Instance.new("Sound")
- o494 = Instance.new("NumberValue")
- o495 = Instance.new("ParticleEmitter")
- o496 = Instance.new("Script")
- o498 = Instance.new("Script")
- o499 = Instance.new("Script")
- o500 = Instance.new("Sound")
- o501 = Instance.new("NumberValue")
- o502 = Instance.new("ParticleEmitter")
- o503 = Instance.new("Sound")
- o504 = Instance.new("Sound")
- o505 = Instance.new("Script")
- o512 = Instance.new("Model")
- o513 = Instance.new("VehicleSeat")
- o514 = Instance.new("Script")
- o515 = Instance.new("Script")
- o516 = Instance.new("ScreenGui")
- o517 = Instance.new("ObjectValue")
- o518 = Instance.new("LocalScript")
- o519 = Instance.new("Script")
- o520 = Instance.new("Frame")
- o521 = Instance.new("TextButton")
- o522 = Instance.new("StringValue")
- o523 = Instance.new("Model")
- o524 = Instance.new("Part")
- o525 = Instance.new("SurfaceGui")
- o526 = Instance.new("Frame")
- o527 = Instance.new("Frame")
- o528 = Instance.new("ImageLabel")
- o529 = Instance.new("ImageLabel")
- o530 = Instance.new("ImageLabel")
- o531 = Instance.new("Script")
- o532 = Instance.new("Model")
- o534 = Instance.new("SurfaceLight")
- o536 = Instance.new("SurfaceLight")
- o540 = Instance.new("SpotLight")
- o541 = Instance.new("Model")
- o543 = Instance.new("SurfaceLight")
- o544 = Instance.new("Part")
- o545 = Instance.new("SurfaceLight")
- o546 = Instance.new("BlockMesh")
- o547 = Instance.new("Part")
- o548 = Instance.new("SurfaceLight")
- o549 = Instance.new("BlockMesh")
- o551 = Instance.new("SurfaceLight")
- o553 = Instance.new("SurfaceLight")
- o555 = Instance.new("SurfaceLight")
- o557 = Instance.new("SurfaceLight")
- o558 = Instance.new("Part")
- o559 = Instance.new("Model")
- o560 = Instance.new("Part")
- o561 = Instance.new("Sound")
- o562 = Instance.new("ParticleEmitter")
- o563 = Instance.new("PointLight")
- o564 = Instance.new("Part")
- o565 = Instance.new("Sound")
- o566 = Instance.new("ParticleEmitter")
- o567 = Instance.new("PointLight")
- o568 = Instance.new("Part")
- o569 = Instance.new("SurfaceGui")
- o570 = Instance.new("TextBox")
- o571 = Instance.new("BlockMesh")
- o572 = Instance.new("Decal")
- o1.Name = "Lamborghini Huracan"
- o1.Parent = mas
- o2.Name = "DriveSeat"
- o2.Parent = o1
- o2.Material = Enum.Material.SmoothPlastic
- o2.Transparency = 1
- o2.Position = Vector3.new(36.9357529, 1.48882401, 136.00499)
- o2.Rotation = Vector3.new(0, 0.00999999978, 0.0199999996)
- o2.Anchored = true
- o2.CanCollide = false
- o2.Elasticity = 0
- o2.Size = Vector3.new(1.85084724, 0.625423968, 1.67084718)
- o2.CFrame = CFrame.new(36.9357529, 1.48882401, 136.00499, 1.00000083, -0.00027900454, 0.00014497056, 0.00027899415, 1.00000083, 7.16127179e-05, -0.000144990423, -7.15722126e-05, 1)
- o2.BackSurface = Enum.SurfaceType.Unjoinable
- o2.BottomSurface = Enum.SurfaceType.Unjoinable
- o2.FrontSurface = Enum.SurfaceType.Motor
- o2.LeftSurface = Enum.SurfaceType.Unjoinable
- o2.RightSurface = Enum.SurfaceType.Unjoinable
- o2.TopSurface = Enum.SurfaceType.Hinge
- o2.MaxSpeed = 0
- o2.Torque = 0
- o2.TurnSpeed = 0
- o2.Position = Vector3.new(36.9357529, 1.48882401, 136.00499)
- o3.Name = "Audio"
- o3.Parent = o2
- o3.Volume = 0.20000000298023
- o4.Name = "BoV"
- o4.Parent = o2
- o4.SoundId = "rbxassetid://749968223"
- o4.Volume = 10
- o5.Name = "Horn"
- o5.Parent = o2
- o5.SoundId = "rbxassetid://200530606"
- o5.Volume = 10
- o5.Looped = true
- o6.Name = "Control"
- o6.Parent = o5
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- if script.Parent.Parent:IsA("VehicleSeat") then
- script.Parent.Parent.ChildAdded:connect(function(child)
- if child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
- local p=game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- local g=script.G:Clone()
- g.Parent=p.PlayerGui
- g:WaitForChild("src")
- g.src.Value=script.Parent
- g.Horn.Disabled=false
- end
- end)
- end
- end,o6)
- end))
- o7.Name = "G"
- o7.Parent = o6
- o8.Name = "Horn"
- o8.Parent = o7
- o8.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local mouse=game.Players.LocalPlayer:GetMouse()
- script.Parent:WaitForChild("src")
- src=script.Parent.src.Value
- mouse.KeyDown:connect(function(key)
- if key=="h" then
- src:Play()
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key=="h" then
- src:Stop()
- end
- end)
- src.Parent.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" then
- src:Stop()
- script.Parent:Destroy()
- end
- end)
- end,o8)
- end))
- o9.Name = "src"
- o9.Parent = o7
- o10.Name = "Shift1"
- o10.Parent = o2
- o10.Pitch = 3
- o10.SoundId = "rbxassetid://161822060"
- o10.Volume = 1
- o11.Name = "Control"
- o11.Parent = o10
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- if script.Parent.Parent:IsA("VehicleSeat") then
- script.Parent.Parent.ChildAdded:connect(function(child)
- if child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
- local p=game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- local g=script.G:Clone()
- g.Parent=p.PlayerGui
- g:WaitForChild("src")
- g.src.Value=script.Parent
- g.Horn.Disabled=false
- end
- end)
- end
- end,o11)
- end))
- o12.Name = "G"
- o12.Parent = o11
- o13.Name = "Horn"
- o13.Parent = o12
- o13.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local mouse=game.Players.LocalPlayer:GetMouse()
- script.Parent:WaitForChild("src")
- src=script.Parent.src.Value
- mouse.KeyDown:connect(function(key)
- if key=="q" then
- src:Play()
- end
- end)
- src.Parent.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" then
- src:Stop()
- script.Parent:Destroy()
- end
- end)
- end,o13)
- end))
- o14.Name = "src"
- o14.Parent = o12
- o15.Name = "Shift2"
- o15.Parent = o2
- o15.SoundId = "rbxassetid://749968299"
- o15.Volume = 5
- o16.Name = "Control"
- o16.Parent = o15
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- if script.Parent.Parent:IsA("VehicleSeat") then
- script.Parent.Parent.ChildAdded:connect(function(child)
- if child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
- local p=game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- local g=script.G:Clone()
- g.Parent=p.PlayerGui
- g:WaitForChild("src")
- g.src.Value=script.Parent
- g.Horn.Disabled=false
- end
- end)
- end
- end,o16)
- end))
- o17.Name = "G"
- o17.Parent = o16
- o18.Name = "Horn"
- o18.Parent = o17
- o18.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local mouse=game.Players.LocalPlayer:GetMouse()
- script.Parent:WaitForChild("src")
- src=script.Parent.src.Value
- mouse.KeyDown:connect(function(key)
- if key=="e" then
- src:Play()
- end
- end)
- src.Parent.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" then
- src:Stop()
- script.Parent:Destroy()
- end
- end)
- end,o18)
- end))
- o19.Name = "src"
- o19.Parent = o17
- o20.Name = "Indicator"
- o20.Parent = o2
- o20.Pitch = 0.80000001192093
- o20.SoundId = "rbxassetid://190126363"
- o20.Volume = 0.30000001192093
- o21.Name = "Gui Giver"
- o21.Parent = o2
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- GUI = script.Parent.Screen
- script.Parent.ChildAdded:connect(function(child)
- if child:IsA("Weld") then
- if child.Part1.Name == "HumanoidRootPart" then
- child.C0 = CFrame.new(-1,-.8,0)*CFrame.fromEulerAnglesXYZ(-(math.pi/2),0,0) --// Reposition player
- player = game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- if player and (not player.PlayerGui:FindFirstChild("Screen")) then --// The part after the "and" prevents multiple GUI's to be copied over.
- GUI.CarSeat.Value = script.Parent --// Puts a reference of the seat in this ObjectValue, now you can use this ObjectValue's value to find the car directly.
- GUI:Clone().Parent = player.PlayerGui --// Compact version
- script.Parent.Startup:Play()
- end
- end
- end
- end)
- script.Parent.ChildRemoved:connect(function(child)
- if child:IsA("Weld") then
- if child.Part1.Name == "HumanoidRootPart" then
- script.Parent.Parent.Parent.RWD.MaxSpeed = 0
- script.Parent.Parent.Parent.RWD.Throttle = 0
- script.Parent.Parent.Parent.RWD.Torque = 20
- script.Parent.Parent.Parent.LW.VS.MaxSpeed = 0
- script.Parent.Parent.Parent.LW.VS.Throttle = 0
- script.Parent.Parent.Parent.LW.VS.Torque = 20
- script.Parent.Parent.Parent.RW.VS.MaxSpeed = 0
- script.Parent.Parent.Parent.RW.VS.Throttle = 0
- script.Parent.Parent.Parent.RW.VS.Torque = 20
- script.Parent.Sound:Stop()
- script.Parent.Sound2:Stop()
- script.Parent.Sound3:Stop()
- player = game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- if player and player.PlayerGui:FindFirstChild("Screen") then
- player.PlayerGui:FindFirstChild("Screen"):Destroy()
- end
- end
- end
- end)
- end,o21)
- end))
- o22.Name = "TheFix"
- o22.Parent = o21
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- wait(2)
- script.Parent.Disabled = false
- end,o22)
- end))
- o23.Name = "BoV2"
- o23.Parent = o2
- o23.SoundId = "rbxassetid://392206182"
- o23.Volume = 10
- o24.Name = "DSL"
- o24.Parent = o2
- o24.Value = true
- o25.Name = "DL"
- o25.Parent = o2
- o26.Name = "SS3"
- o26.Parent = o2
- o28.Name = "Plugins"
- o28.Parent = mas
- o29.Name = "Inspare_Splash"
- o29.Parent = o28
- o29.Size = UDim2.new(1,0,1,0)
- o29.BackgroundColor3 = Color3.new(1, 1, 1)
- o29.BackgroundTransparency = 1
- o29.BorderSizePixel = 0
- o30.Name = "Inspare_Splash"
- o30.Parent = o29
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --SecondLogic @ INSPARE
- wait(.2)
- local out=false
- coroutine.resume(coroutine.create(function()
- local fr = 0
- local trs=1
- while wait(.05) do
- fr = fr+1
- if fr>=10 then fr=0 end
- if not out then
- trs=math.max(0,trs-.05)
- else
- trs=math.min(1,trs+.05)
- end
- for i,v in pairs(script.Parent.Frame:GetChildren()) do
- v.Frame.ImageLabel.ImageTransparency = trs
- v.Frame.ImageLabel.Position=UDim2.new(-(fr%3),0,-math.floor(fr/3),0)
- if out then
- v.BackgroundTransparency=.5+(.5*trs)
- v.Frame.ImageLabel.BackgroundTransparency=trs
- end
- end
- if out then
- script.Parent.IN.TextTransparency=trs
- script.Parent.SPARE.TextTransparency=trs
- end
- if out and trs==1 then
- break
- end
- end
- script.Parent:Destroy()
- end))
- game:GetService("RunService").RenderStepped:connect(function()
- for i,v in pairs(script.Parent.Frame:GetChildren()) do
- v.Frame.Position = UDim2.new(0,-250-v.Position.X.Offset-script.Parent.Frame.Position.X.Offset,0,-136-v.Position.Y.Offset)
- end
- end)
- script.Parent.Frame:TweenPosition(UDim2.new(0,-100,0,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,10)
- script.Parent.IN:TweenPosition(UDim2.new(0.5,-74,0.5,100),Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,10)
- script.Parent.SPARE:TweenPosition(UDim2.new(0.5,6,0.5,100),Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,10)
- script.Parent.Frame.B:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.C:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.D:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.E:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- wait(.35)
- script.Parent.Frame.C:TweenPosition(UDim2.new(0.5, -44,0.5, -44),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.D:TweenPosition(UDim2.new(0.5, -44,0.5, 46),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.E:TweenPosition(UDim2.new(0.5, -44,0.5, 46),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- wait(.35)
- script.Parent.Frame.E:TweenPosition(UDim2.new(0.5, -134,0.5, 46),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- wait(1)
- for i=1,30 do
- for _,v in pairs(script.Parent.Frame:GetChildren()) do
- v.BackgroundTransparency=1-(i/60)
- end
- script.Parent.IN.TextTransparency=1-(i/30)
- script.Parent.SPARE.TextTransparency=1-(i/30)
- wait(.01)
- end
- wait(1.5)
- out=true
- end,o30)
- end))
- o31.Parent = o29
- o31.Position = UDim2.new(0,50,0,0)
- o31.Size = UDim2.new(1,0,1,0)
- o31.Position = UDim2.new(0,50,0,0)
- o31.BackgroundColor3 = Color3.new(1, 1, 1)
- o31.BackgroundTransparency = 1
- o31.BorderSizePixel = 0
- o32.Name = "C"
- o32.Parent = o31
- o32.Position = UDim2.new(0.5,46,0.5,-134)
- o32.Size = UDim2.new(0,88,0,88)
- o32.Position = UDim2.new(0.5,46,0.5,-134)
- o32.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- o32.BackgroundTransparency = 1
- o32.BorderSizePixel = 0
- o32.ZIndex = 3
- o32.ClipsDescendants = true
- o33.Parent = o32
- o33.Position = UDim2.new(0,-250,0,-136)
- o33.Size = UDim2.new(0,500,0,272)
- o33.Position = UDim2.new(0,-250,0,-136)
- o33.BackgroundColor3 = Color3.new(1, 1, 1)
- o33.BackgroundTransparency = 1
- o33.BorderSizePixel = 0
- o33.ClipsDescendants = true
- o34.Parent = o33
- o34.Size = UDim2.new(0,1500,0,1088)
- o34.BackgroundColor3 = Color3.new(1, 1, 1)
- o34.ZIndex = 2
- o34.Image = "rbxassetid://423455664"
- o34.ImageTransparency = 1
- o35.Name = "B"
- o35.Parent = o31
- o35.Position = UDim2.new(0.5,46,0.5,-134)
- o35.Size = UDim2.new(0,88,0,88)
- o35.Position = UDim2.new(0.5,46,0.5,-134)
- o35.BackgroundColor3 = Color3.new(1, 1, 1)
- o35.BackgroundTransparency = 1
- o35.BorderSizePixel = 0
- o35.ZIndex = 3
- o35.ClipsDescendants = true
- o36.Parent = o35
- o36.Position = UDim2.new(0,-250,0,-136)
- o36.Size = UDim2.new(0,500,0,272)
- o36.Position = UDim2.new(0,-250,0,-136)
- o36.BackgroundColor3 = Color3.new(1, 1, 1)
- o36.BackgroundTransparency = 1
- o36.BorderSizePixel = 0
- o36.ClipsDescendants = true
- o37.Parent = o36
- o37.Size = UDim2.new(0,1500,0,1088)
- o37.BackgroundColor3 = Color3.new(1, 1, 1)
- o37.ZIndex = 2
- o37.Image = "rbxassetid://423455664"
- o37.ImageTransparency = 1
- o38.Name = "D"
- o38.Parent = o31
- o38.Position = UDim2.new(0.5,46,0.5,-134)
- o38.Size = UDim2.new(0,88,0,88)
- o38.Position = UDim2.new(0.5,46,0.5,-134)
- o38.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- o38.BackgroundTransparency = 1
- o38.BorderSizePixel = 0
- o38.ZIndex = 3
- o38.ClipsDescendants = true
- o39.Parent = o38
- o39.Position = UDim2.new(0,-250,0,-136)
- o39.Size = UDim2.new(0,500,0,272)
- o39.Position = UDim2.new(0,-250,0,-136)
- o39.BackgroundColor3 = Color3.new(1, 1, 1)
- o39.BackgroundTransparency = 1
- o39.BorderSizePixel = 0
- o39.ClipsDescendants = true
- o40.Parent = o39
- o40.Size = UDim2.new(0,1500,0,1088)
- o40.BackgroundColor3 = Color3.new(1, 1, 1)
- o40.ZIndex = 2
- o40.Image = "rbxassetid://423455664"
- o40.ImageTransparency = 1
- o41.Name = "E"
- o41.Parent = o31
- o41.Position = UDim2.new(0.5,46,0.5,-134)
- o41.Size = UDim2.new(0,88,0,88)
- o41.Position = UDim2.new(0.5,46,0.5,-134)
- o41.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- o41.BackgroundTransparency = 1
- o41.BorderSizePixel = 0
- o41.ZIndex = 3
- o41.ClipsDescendants = true
- o42.Parent = o41
- o42.Position = UDim2.new(0,-250,0,-136)
- o42.Size = UDim2.new(0,500,0,272)
- o42.Position = UDim2.new(0,-250,0,-136)
- o42.BackgroundColor3 = Color3.new(1, 1, 1)
- o42.BackgroundTransparency = 1
- o42.BorderSizePixel = 0
- o42.ClipsDescendants = true
- o43.Parent = o42
- o43.Size = UDim2.new(0,1500,0,1088)
- o43.BackgroundColor3 = Color3.new(1, 1, 1)
- o43.ZIndex = 2
- o43.Image = "rbxassetid://423455664"
- o43.ImageTransparency = 1
- o44.Name = "A"
- o44.Parent = o31
- o44.Position = UDim2.new(0.5,46,0.5,-134)
- o44.Size = UDim2.new(0,88,0,88)
- o44.Position = UDim2.new(0.5,46,0.5,-134)
- o44.BackgroundColor3 = Color3.new(1, 1, 1)
- o44.BackgroundTransparency = 1
- o44.BorderSizePixel = 0
- o44.ZIndex = 3
- o44.ClipsDescendants = true
- o45.Parent = o44
- o45.Position = UDim2.new(0,-250,0,-136)
- o45.Size = UDim2.new(0,500,0,272)
- o45.Position = UDim2.new(0,-250,0,-136)
- o45.BackgroundColor3 = Color3.new(1, 1, 1)
- o45.BackgroundTransparency = 1
- o45.BorderSizePixel = 0
- o45.ClipsDescendants = true
- o46.Parent = o45
- o46.Size = UDim2.new(0,1500,0,1088)
- o46.BackgroundColor3 = Color3.new(1, 1, 1)
- o46.ZIndex = 2
- o46.Image = "rbxassetid://423455664"
- o46.ImageTransparency = 1
- o47.Name = "IN"
- o47.Parent = o29
- o47.Position = UDim2.new(0.5,76,0.5,100)
- o47.Text = "IN"
- o47.Position = UDim2.new(0.5,76,0.5,100)
- o47.BackgroundColor3 = Color3.new(1, 1, 1)
- o47.BackgroundTransparency = 1
- o47.BorderSizePixel = 0
- o47.ZIndex = 5
- o47.Font = Enum.Font.Arial
- o47.FontSize = Enum.FontSize.Size48
- o47.TextColor3 = Color3.new(1, 1, 1)
- o47.TextTransparency = 1
- o48.Name = "SPARE"
- o48.Parent = o29
- o48.Position = UDim2.new(0.5,156,0.5,100)
- o48.Text = "SPARE"
- o48.Position = UDim2.new(0.5,156,0.5,100)
- o48.BackgroundColor3 = Color3.new(1, 1, 1)
- o48.BackgroundTransparency = 1
- o48.BorderSizePixel = 0
- o48.ZIndex = 5
- o48.Font = Enum.Font.Arial
- o48.FontSize = Enum.FontSize.Size48
- o48.TextColor3 = Color3.new(1, 0.666667, 0)
- o48.TextTransparency = 1
- o49.Name = "AC6_Controls_Module"
- o49.Parent = o28
- o49.Size = UDim2.new(1,0,1,0)
- o49.BackgroundColor3 = Color3.new(1, 1, 1)
- o49.BackgroundTransparency = 1
- o49.BorderSizePixel = 0
- o50.Name = "Toggle"
- o50.Parent = o49
- o50.Position = UDim2.new(0,50,1,-30)
- o50.Size = UDim2.new(0,120,0,27)
- o50.Text = "Controls"
- o50.Position = UDim2.new(0,50,1,-30)
- o50.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- o50.BackgroundTransparency = 0.5
- o50.BorderColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- o50.BorderSizePixel = 0
- o50.Font = Enum.Font.Arial
- o50.FontSize = Enum.FontSize.Size24
- o50.TextColor3 = Color3.new(1, 1, 1)
- o50.TextStrokeColor3 = Color3.new(0.415686, 0.415686, 0.415686)
- o50.TextStrokeTransparency = 0.5
- o51.Name = "Window"
- o51.Parent = o49
- o51.Position = UDim2.new(0.5,-250,0,-500)
- o51.Size = UDim2.new(0,500,0,400)
- o51.Position = UDim2.new(0.5,-250,0,-500)
- o51.BackgroundColor3 = Color3.new(0, 0, 0)
- o51.BackgroundTransparency = 0.5
- o51.BorderSizePixel = 0
- o51.ClipsDescendants = true
- o52.Name = "Tabs"
- o52.Parent = o51
- o52.Position = UDim2.new(0,5,0,40)
- o52.Size = UDim2.new(0,490,0,20)
- o52.Position = UDim2.new(0,5,0,40)
- o52.BackgroundColor3 = Color3.new(1, 1, 1)
- o52.BackgroundTransparency = 1
- o52.BorderSizePixel = 0
- o52.ClipsDescendants = true
- o53.Name = "Line"
- o53.Parent = o52
- o53.Size = UDim2.new(1,0,0,2)
- o53.BackgroundColor3 = Color3.new(1, 1, 1)
- o53.BorderSizePixel = 0
- o54.Name = "Keyboard"
- o54.Parent = o52
- o54.Position = UDim2.new(0,5,0,0)
- o54.Size = UDim2.new(0,100,0,20)
- o54.Text = "Keyboard"
- o54.Position = UDim2.new(0,5,0,0)
- o54.BackgroundColor3 = Color3.new(1, 1, 1)
- o54.BorderSizePixel = 0
- o54.Font = Enum.Font.SourceSans
- o54.FontSize = Enum.FontSize.Size14
- o54.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o54.TextStrokeTransparency = 0.94999998807907
- o54.TextYAlignment = Enum.TextYAlignment.Bottom
- o55.Name = "Mouse"
- o55.Parent = o52
- o55.Position = UDim2.new(0,120,0,-5)
- o55.Size = UDim2.new(0,100,0,20)
- o55.Text = "Mouse"
- o55.Position = UDim2.new(0,120,0,-5)
- o55.BackgroundColor3 = Color3.new(1, 1, 1)
- o55.BorderSizePixel = 0
- o55.Font = Enum.Font.SourceSans
- o55.FontSize = Enum.FontSize.Size14
- o55.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o55.TextStrokeTransparency = 0.94999998807907
- o55.TextYAlignment = Enum.TextYAlignment.Bottom
- o56.Name = "Controller"
- o56.Parent = o52
- o56.Position = UDim2.new(0,235,0,-5)
- o56.Size = UDim2.new(0,100,0,20)
- o56.Text = "Controller"
- o56.Position = UDim2.new(0,235,0,-5)
- o56.BackgroundColor3 = Color3.new(1, 1, 1)
- o56.BorderSizePixel = 0
- o56.Font = Enum.Font.SourceSans
- o56.FontSize = Enum.FontSize.Size14
- o56.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o56.TextStrokeTransparency = 0.94999998807907
- o56.TextYAlignment = Enum.TextYAlignment.Bottom
- o57.Name = "Header"
- o57.Parent = o51
- o57.Position = UDim2.new(0,10,0,20)
- o57.Text = "Controls"
- o57.Position = UDim2.new(0,10,0,20)
- o57.BackgroundColor3 = Color3.new(1, 1, 1)
- o57.BackgroundTransparency = 1
- o57.BorderSizePixel = 0
- o57.Font = Enum.Font.SourceSansLight
- o57.FontSize = Enum.FontSize.Size32
- o57.TextColor3 = Color3.new(1, 1, 1)
- o57.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o57.TextStrokeTransparency = 0.94999998807907
- o57.TextXAlignment = Enum.TextXAlignment.Left
- o58.Name = "//INSPARE"
- o58.Parent = o51
- o58.Position = UDim2.new(1,-20,0,20)
- o58.Text = "A-Chassis 6 by //INSPARE"
- o58.Position = UDim2.new(1,-20,0,20)
- o58.BackgroundColor3 = Color3.new(1, 1, 1)
- o58.BackgroundTransparency = 1
- o58.BorderSizePixel = 0
- o58.Font = Enum.Font.SourceSansLight
- o58.FontSize = Enum.FontSize.Size14
- o58.TextColor3 = Color3.new(1, 1, 1)
- o58.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o58.TextStrokeTransparency = 0.94999998807907
- o58.TextXAlignment = Enum.TextXAlignment.Right
- o59.Name = "Content"
- o59.Parent = o51
- o59.Position = UDim2.new(0,0,0,60)
- o59.Size = UDim2.new(1,0,1,-60)
- o59.Position = UDim2.new(0,0,0,60)
- o59.BackgroundColor3 = Color3.new(1, 1, 1)
- o59.BackgroundTransparency = 1
- o59.BorderSizePixel = 0
- o60.Name = "T"
- o60.Parent = o59
- o60.Position = UDim2.new(0,150,0,20)
- o60.Text = "Throttle"
- o60.Position = UDim2.new(0,150,0,20)
- o60.BackgroundColor3 = Color3.new(1, 1, 1)
- o60.BackgroundTransparency = 1
- o60.BorderSizePixel = 0
- o60.Font = Enum.Font.SourceSansItalic
- o60.FontSize = Enum.FontSize.Size18
- o60.TextColor3 = Color3.new(1, 1, 1)
- o60.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o60.TextStrokeTransparency = 0.94999998807907
- o60.TextXAlignment = Enum.TextXAlignment.Right
- o61.Name = "T"
- o61.Parent = o59
- o61.Position = UDim2.new(0,150,0,40)
- o61.Text = "Brakes"
- o61.Position = UDim2.new(0,150,0,40)
- o61.BackgroundColor3 = Color3.new(1, 1, 1)
- o61.BackgroundTransparency = 1
- o61.BorderSizePixel = 0
- o61.Font = Enum.Font.SourceSansItalic
- o61.FontSize = Enum.FontSize.Size18
- o61.TextColor3 = Color3.new(1, 1, 1)
- o61.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o61.TextStrokeTransparency = 0.94999998807907
- o61.TextXAlignment = Enum.TextXAlignment.Right
- o62.Name = "T"
- o62.Parent = o59
- o62.Position = UDim2.new(0,150,0,60)
- o62.Text = "Steer Left"
- o62.Position = UDim2.new(0,150,0,60)
- o62.BackgroundColor3 = Color3.new(1, 1, 1)
- o62.BackgroundTransparency = 1
- o62.BorderSizePixel = 0
- o62.Font = Enum.Font.SourceSansItalic
- o62.FontSize = Enum.FontSize.Size18
- o62.TextColor3 = Color3.new(1, 1, 1)
- o62.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o62.TextStrokeTransparency = 0.94999998807907
- o62.TextXAlignment = Enum.TextXAlignment.Right
- o63.Name = "T"
- o63.Parent = o59
- o63.Position = UDim2.new(0,150,0,80)
- o63.Text = "Steer Right"
- o63.Position = UDim2.new(0,150,0,80)
- o63.BackgroundColor3 = Color3.new(1, 1, 1)
- o63.BackgroundTransparency = 1
- o63.BorderSizePixel = 0
- o63.Font = Enum.Font.SourceSansItalic
- o63.FontSize = Enum.FontSize.Size18
- o63.TextColor3 = Color3.new(1, 1, 1)
- o63.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o63.TextStrokeTransparency = 0.94999998807907
- o63.TextXAlignment = Enum.TextXAlignment.Right
- o64.Name = "T"
- o64.Parent = o59
- o64.Position = UDim2.new(0,150,0,100)
- o64.Text = "[Secondary] Throttle"
- o64.Position = UDim2.new(0,150,0,100)
- o64.BackgroundColor3 = Color3.new(1, 1, 1)
- o64.BackgroundTransparency = 1
- o64.BorderSizePixel = 0
- o64.Font = Enum.Font.SourceSansItalic
- o64.FontSize = Enum.FontSize.Size18
- o64.TextColor3 = Color3.new(1, 1, 1)
- o64.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o64.TextStrokeTransparency = 0.94999998807907
- o64.TextXAlignment = Enum.TextXAlignment.Right
- o65.Name = "T"
- o65.Parent = o59
- o65.Position = UDim2.new(0,150,0,120)
- o65.Text = "[Secondary] Brakes"
- o65.Position = UDim2.new(0,150,0,120)
- o65.BackgroundColor3 = Color3.new(1, 1, 1)
- o65.BackgroundTransparency = 1
- o65.BorderSizePixel = 0
- o65.Font = Enum.Font.SourceSansItalic
- o65.FontSize = Enum.FontSize.Size18
- o65.TextColor3 = Color3.new(1, 1, 1)
- o65.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o65.TextStrokeTransparency = 0.94999998807907
- o65.TextXAlignment = Enum.TextXAlignment.Right
- o66.Name = "T"
- o66.Parent = o59
- o66.Position = UDim2.new(0,150,0,140)
- o66.Text = "[Secondary] Steer Left"
- o66.Position = UDim2.new(0,150,0,140)
- o66.BackgroundColor3 = Color3.new(1, 1, 1)
- o66.BackgroundTransparency = 1
- o66.BorderSizePixel = 0
- o66.Font = Enum.Font.SourceSansItalic
- o66.FontSize = Enum.FontSize.Size18
- o66.TextColor3 = Color3.new(1, 1, 1)
- o66.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o66.TextStrokeTransparency = 0.94999998807907
- o66.TextXAlignment = Enum.TextXAlignment.Right
- o67.Name = "T"
- o67.Parent = o59
- o67.Position = UDim2.new(0,150,0,160)
- o67.Text = "[Secondary] SteerRight"
- o67.Position = UDim2.new(0,150,0,160)
- o67.BackgroundColor3 = Color3.new(1, 1, 1)
- o67.BackgroundTransparency = 1
- o67.BorderSizePixel = 0
- o67.Font = Enum.Font.SourceSansItalic
- o67.FontSize = Enum.FontSize.Size18
- o67.TextColor3 = Color3.new(1, 1, 1)
- o67.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o67.TextStrokeTransparency = 0.94999998807907
- o67.TextXAlignment = Enum.TextXAlignment.Right
- o68.Name = "T"
- o68.Parent = o59
- o68.Position = UDim2.new(0,150,0,180)
- o68.Text = "Shift Up"
- o68.Position = UDim2.new(0,150,0,180)
- o68.BackgroundColor3 = Color3.new(1, 1, 1)
- o68.BackgroundTransparency = 1
- o68.BorderSizePixel = 0
- o68.Font = Enum.Font.SourceSansItalic
- o68.FontSize = Enum.FontSize.Size18
- o68.TextColor3 = Color3.new(1, 1, 1)
- o68.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o68.TextStrokeTransparency = 0.94999998807907
- o68.TextXAlignment = Enum.TextXAlignment.Right
- o69.Name = "T"
- o69.Parent = o59
- o69.Position = UDim2.new(0,150,0,200)
- o69.Text = "Shift Down"
- o69.Position = UDim2.new(0,150,0,200)
- o69.BackgroundColor3 = Color3.new(1, 1, 1)
- o69.BackgroundTransparency = 1
- o69.BorderSizePixel = 0
- o69.Font = Enum.Font.SourceSansItalic
- o69.FontSize = Enum.FontSize.Size18
- o69.TextColor3 = Color3.new(1, 1, 1)
- o69.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o69.TextStrokeTransparency = 0.94999998807907
- o69.TextXAlignment = Enum.TextXAlignment.Right
- o70.Name = "T"
- o70.Parent = o59
- o70.Position = UDim2.new(0,150,0,220)
- o70.Text = "Clutch"
- o70.Position = UDim2.new(0,150,0,220)
- o70.BackgroundColor3 = Color3.new(1, 1, 1)
- o70.BackgroundTransparency = 1
- o70.BorderSizePixel = 0
- o70.Font = Enum.Font.SourceSansItalic
- o70.FontSize = Enum.FontSize.Size18
- o70.TextColor3 = Color3.new(1, 1, 1)
- o70.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o70.TextStrokeTransparency = 0.94999998807907
- o70.TextXAlignment = Enum.TextXAlignment.Right
- o71.Name = "T"
- o71.Parent = o59
- o71.Position = UDim2.new(0,150,0,240)
- o71.Text = "Handbrake"
- o71.Position = UDim2.new(0,150,0,240)
- o71.BackgroundColor3 = Color3.new(1, 1, 1)
- o71.BackgroundTransparency = 1
- o71.BorderSizePixel = 0
- o71.Font = Enum.Font.SourceSansItalic
- o71.FontSize = Enum.FontSize.Size18
- o71.TextColor3 = Color3.new(1, 1, 1)
- o71.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o71.TextStrokeTransparency = 0.94999998807907
- o71.TextXAlignment = Enum.TextXAlignment.Right
- o72.Name = "T"
- o72.Parent = o59
- o72.Position = UDim2.new(0,150,0,260)
- o72.Text = " Transmission Mode"
- o72.Position = UDim2.new(0,150,0,260)
- o72.BackgroundColor3 = Color3.new(1, 1, 1)
- o72.BackgroundTransparency = 1
- o72.BorderSizePixel = 0
- o72.Font = Enum.Font.SourceSansItalic
- o72.FontSize = Enum.FontSize.Size18
- o72.TextColor3 = Color3.new(1, 1, 1)
- o72.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o72.TextStrokeTransparency = 0.94999998807907
- o72.TextXAlignment = Enum.TextXAlignment.Right
- o73.Name = "T"
- o73.Parent = o59
- o73.Position = UDim2.new(0,150,0,280)
- o73.Text = "Toggle TCS"
- o73.Position = UDim2.new(0,150,0,280)
- o73.BackgroundColor3 = Color3.new(1, 1, 1)
- o73.BackgroundTransparency = 1
- o73.BorderSizePixel = 0
- o73.Font = Enum.Font.SourceSansItalic
- o73.FontSize = Enum.FontSize.Size18
- o73.TextColor3 = Color3.new(1, 1, 1)
- o73.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o73.TextStrokeTransparency = 0.94999998807907
- o73.TextXAlignment = Enum.TextXAlignment.Right
- o74.Name = "T"
- o74.Parent = o59
- o74.Position = UDim2.new(0,150,0,300)
- o74.Text = "Switch Mouse Control"
- o74.Position = UDim2.new(0,150,0,300)
- o74.BackgroundColor3 = Color3.new(1, 1, 1)
- o74.BackgroundTransparency = 1
- o74.BorderSizePixel = 0
- o74.Font = Enum.Font.SourceSansItalic
- o74.FontSize = Enum.FontSize.Size18
- o74.TextColor3 = Color3.new(1, 1, 1)
- o74.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o74.TextStrokeTransparency = 0.94999998807907
- o74.TextXAlignment = Enum.TextXAlignment.Right
- o75.Name = "Throttle"
- o75.Parent = o59
- o75.Position = UDim2.new(0,170,0,13)
- o75.Size = UDim2.new(0,300,0,15)
- o75.Position = UDim2.new(0,170,0,13)
- o75.BackgroundColor3 = Color3.new(0, 0, 0)
- o75.BackgroundTransparency = 0.5
- o75.BorderSizePixel = 0
- o75.Font = Enum.Font.SourceSans
- o75.FontSize = Enum.FontSize.Size14
- o75.TextColor3 = Color3.new(1, 1, 1)
- o76.Name = "Brake"
- o76.Parent = o59
- o76.Position = UDim2.new(0,170,0,33)
- o76.Size = UDim2.new(0,300,0,15)
- o76.Position = UDim2.new(0,170,0,33)
- o76.BackgroundColor3 = Color3.new(0, 0, 0)
- o76.BackgroundTransparency = 0.5
- o76.BorderSizePixel = 0
- o76.Font = Enum.Font.SourceSans
- o76.FontSize = Enum.FontSize.Size14
- o76.TextColor3 = Color3.new(1, 1, 1)
- o77.Name = "SteerLeft"
- o77.Parent = o59
- o77.Position = UDim2.new(0,170,0,53)
- o77.Size = UDim2.new(0,300,0,15)
- o77.Position = UDim2.new(0,170,0,53)
- o77.BackgroundColor3 = Color3.new(0, 0, 0)
- o77.BackgroundTransparency = 0.5
- o77.BorderSizePixel = 0
- o77.Font = Enum.Font.SourceSans
- o77.FontSize = Enum.FontSize.Size14
- o77.TextColor3 = Color3.new(1, 1, 1)
- o78.Name = "SteerRight"
- o78.Parent = o59
- o78.Position = UDim2.new(0,170,0,73)
- o78.Size = UDim2.new(0,300,0,15)
- o78.Position = UDim2.new(0,170,0,73)
- o78.BackgroundColor3 = Color3.new(0, 0, 0)
- o78.BackgroundTransparency = 0.5
- o78.BorderSizePixel = 0
- o78.Font = Enum.Font.SourceSans
- o78.FontSize = Enum.FontSize.Size14
- o78.TextColor3 = Color3.new(1, 1, 1)
- o79.Name = "Throttle2"
- o79.Parent = o59
- o79.Position = UDim2.new(0,170,0,93)
- o79.Size = UDim2.new(0,300,0,15)
- o79.Position = UDim2.new(0,170,0,93)
- o79.BackgroundColor3 = Color3.new(0, 0, 0)
- o79.BackgroundTransparency = 0.5
- o79.BorderSizePixel = 0
- o79.Font = Enum.Font.SourceSans
- o79.FontSize = Enum.FontSize.Size14
- o79.TextColor3 = Color3.new(1, 1, 1)
- o80.Name = "Brake2"
- o80.Parent = o59
- o80.Position = UDim2.new(0,170,0,113)
- o80.Size = UDim2.new(0,300,0,15)
- o80.Position = UDim2.new(0,170,0,113)
- o80.BackgroundColor3 = Color3.new(0, 0, 0)
- o80.BackgroundTransparency = 0.5
- o80.BorderSizePixel = 0
- o80.Font = Enum.Font.SourceSans
- o80.FontSize = Enum.FontSize.Size14
- o80.TextColor3 = Color3.new(1, 1, 1)
- o81.Name = "SteerLeft2"
- o81.Parent = o59
- o81.Position = UDim2.new(0,170,0,133)
- o81.Size = UDim2.new(0,300,0,15)
- o81.Position = UDim2.new(0,170,0,133)
- o81.BackgroundColor3 = Color3.new(0, 0, 0)
- o81.BackgroundTransparency = 0.5
- o81.BorderSizePixel = 0
- o81.Font = Enum.Font.SourceSans
- o81.FontSize = Enum.FontSize.Size14
- o81.TextColor3 = Color3.new(1, 1, 1)
- o82.Name = "SteerRight2"
- o82.Parent = o59
- o82.Position = UDim2.new(0,170,0,153)
- o82.Size = UDim2.new(0,300,0,15)
- o82.Position = UDim2.new(0,170,0,153)
- o82.BackgroundColor3 = Color3.new(0, 0, 0)
- o82.BackgroundTransparency = 0.5
- o82.BorderSizePixel = 0
- o82.Font = Enum.Font.SourceSans
- o82.FontSize = Enum.FontSize.Size14
- o82.TextColor3 = Color3.new(1, 1, 1)
- o83.Name = "ShiftUp"
- o83.Parent = o59
- o83.Position = UDim2.new(0,170,0,173)
- o83.Size = UDim2.new(0,300,0,15)
- o83.Position = UDim2.new(0,170,0,173)
- o83.BackgroundColor3 = Color3.new(0, 0, 0)
- o83.BackgroundTransparency = 0.5
- o83.BorderSizePixel = 0
- o83.Font = Enum.Font.SourceSans
- o83.FontSize = Enum.FontSize.Size14
- o83.TextColor3 = Color3.new(1, 1, 1)
- o84.Name = "ShiftDown"
- o84.Parent = o59
- o84.Position = UDim2.new(0,170,0,193)
- o84.Size = UDim2.new(0,300,0,15)
- o84.Position = UDim2.new(0,170,0,193)
- o84.BackgroundColor3 = Color3.new(0, 0, 0)
- o84.BackgroundTransparency = 0.5
- o84.BorderSizePixel = 0
- o84.Font = Enum.Font.SourceSans
- o84.FontSize = Enum.FontSize.Size14
- o84.TextColor3 = Color3.new(1, 1, 1)
- o85.Name = "Clutch"
- o85.Parent = o59
- o85.Position = UDim2.new(0,170,0,213)
- o85.Size = UDim2.new(0,300,0,15)
- o85.Position = UDim2.new(0,170,0,213)
- o85.BackgroundColor3 = Color3.new(0, 0, 0)
- o85.BackgroundTransparency = 0.5
- o85.BorderSizePixel = 0
- o85.Font = Enum.Font.SourceSans
- o85.FontSize = Enum.FontSize.Size14
- o85.TextColor3 = Color3.new(1, 1, 1)
- o86.Name = "PBrake"
- o86.Parent = o59
- o86.Position = UDim2.new(0,170,0,233)
- o86.Size = UDim2.new(0,300,0,15)
- o86.Position = UDim2.new(0,170,0,233)
- o86.BackgroundColor3 = Color3.new(0, 0, 0)
- o86.BackgroundTransparency = 0.5
- o86.BorderSizePixel = 0
- o86.Font = Enum.Font.SourceSans
- o86.FontSize = Enum.FontSize.Size14
- o86.TextColor3 = Color3.new(1, 1, 1)
- o87.Name = "ToggleTransMode"
- o87.Parent = o59
- o87.Position = UDim2.new(0,170,0,253)
- o87.Size = UDim2.new(0,300,0,15)
- o87.Position = UDim2.new(0,170,0,253)
- o87.BackgroundColor3 = Color3.new(0, 0, 0)
- o87.BackgroundTransparency = 0.5
- o87.BorderSizePixel = 0
- o87.Font = Enum.Font.SourceSans
- o87.FontSize = Enum.FontSize.Size14
- o87.TextColor3 = Color3.new(1, 1, 1)
- o88.Name = "ToggleTCS"
- o88.Parent = o59
- o88.Position = UDim2.new(0,170,0,273)
- o88.Size = UDim2.new(0,300,0,15)
- o88.Position = UDim2.new(0,170,0,273)
- o88.BackgroundColor3 = Color3.new(0, 0, 0)
- o88.BackgroundTransparency = 0.5
- o88.BorderSizePixel = 0
- o88.Font = Enum.Font.SourceSans
- o88.FontSize = Enum.FontSize.Size14
- o88.TextColor3 = Color3.new(1, 1, 1)
- o89.Name = "ToggleMouseDrive"
- o89.Parent = o59
- o89.Position = UDim2.new(0,170,0,293)
- o89.Size = UDim2.new(0,300,0,15)
- o89.Position = UDim2.new(0,170,0,293)
- o89.BackgroundColor3 = Color3.new(0, 0, 0)
- o89.BackgroundTransparency = 0.5
- o89.BorderSizePixel = 0
- o89.Font = Enum.Font.SourceSans
- o89.FontSize = Enum.FontSize.Size14
- o89.TextColor3 = Color3.new(1, 1, 1)
- o90.Name = "T"
- o90.Parent = o59
- o90.Position = UDim2.new(1,150,0,20)
- o90.Text = "Throttle"
- o90.Position = UDim2.new(1,150,0,20)
- o90.BackgroundColor3 = Color3.new(1, 1, 1)
- o90.BackgroundTransparency = 1
- o90.BorderSizePixel = 0
- o90.Font = Enum.Font.SourceSansItalic
- o90.FontSize = Enum.FontSize.Size18
- o90.TextColor3 = Color3.new(1, 1, 1)
- o90.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o90.TextStrokeTransparency = 0.94999998807907
- o90.TextXAlignment = Enum.TextXAlignment.Right
- o91.Name = "T"
- o91.Parent = o59
- o91.Position = UDim2.new(1,150,0,40)
- o91.Text = "Brakes"
- o91.Position = UDim2.new(1,150,0,40)
- o91.BackgroundColor3 = Color3.new(1, 1, 1)
- o91.BackgroundTransparency = 1
- o91.BorderSizePixel = 0
- o91.Font = Enum.Font.SourceSansItalic
- o91.FontSize = Enum.FontSize.Size18
- o91.TextColor3 = Color3.new(1, 1, 1)
- o91.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o91.TextStrokeTransparency = 0.94999998807907
- o91.TextXAlignment = Enum.TextXAlignment.Right
- o92.Name = "T"
- o92.Parent = o59
- o92.Position = UDim2.new(1,150,0,60)
- o92.Text = "Steer"
- o92.Position = UDim2.new(1,150,0,60)
- o92.BackgroundColor3 = Color3.new(1, 1, 1)
- o92.BackgroundTransparency = 1
- o92.BorderSizePixel = 0
- o92.Font = Enum.Font.SourceSansItalic
- o92.FontSize = Enum.FontSize.Size18
- o92.TextColor3 = Color3.new(1, 1, 1)
- o92.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o92.TextStrokeTransparency = 0.94999998807907
- o92.TextXAlignment = Enum.TextXAlignment.Right
- o93.Name = "T"
- o93.Parent = o59
- o93.Position = UDim2.new(1,150,0,80)
- o93.Text = "Shift Up"
- o93.Position = UDim2.new(1,150,0,80)
- o93.BackgroundColor3 = Color3.new(1, 1, 1)
- o93.BackgroundTransparency = 1
- o93.BorderSizePixel = 0
- o93.Font = Enum.Font.SourceSansItalic
- o93.FontSize = Enum.FontSize.Size18
- o93.TextColor3 = Color3.new(1, 1, 1)
- o93.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o93.TextStrokeTransparency = 0.94999998807907
- o93.TextXAlignment = Enum.TextXAlignment.Right
- o94.Name = "T"
- o94.Parent = o59
- o94.Position = UDim2.new(1,150,0,100)
- o94.Text = "Shift Down"
- o94.Position = UDim2.new(1,150,0,100)
- o94.BackgroundColor3 = Color3.new(1, 1, 1)
- o94.BackgroundTransparency = 1
- o94.BorderSizePixel = 0
- o94.Font = Enum.Font.SourceSansItalic
- o94.FontSize = Enum.FontSize.Size18
- o94.TextColor3 = Color3.new(1, 1, 1)
- o94.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o94.TextStrokeTransparency = 0.94999998807907
- o94.TextXAlignment = Enum.TextXAlignment.Right
- o95.Name = "T"
- o95.Parent = o59
- o95.Position = UDim2.new(1,150,0,120)
- o95.Text = "Clutch"
- o95.Position = UDim2.new(1,150,0,120)
- o95.BackgroundColor3 = Color3.new(1, 1, 1)
- o95.BackgroundTransparency = 1
- o95.BorderSizePixel = 0
- o95.Font = Enum.Font.SourceSansItalic
- o95.FontSize = Enum.FontSize.Size18
- o95.TextColor3 = Color3.new(1, 1, 1)
- o95.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o95.TextStrokeTransparency = 0.94999998807907
- o95.TextXAlignment = Enum.TextXAlignment.Right
- o96.Name = "T"
- o96.Parent = o59
- o96.Position = UDim2.new(1,150,0,140)
- o96.Text = "Handbrake"
- o96.Position = UDim2.new(1,150,0,140)
- o96.BackgroundColor3 = Color3.new(1, 1, 1)
- o96.BackgroundTransparency = 1
- o96.BorderSizePixel = 0
- o96.Font = Enum.Font.SourceSansItalic
- o96.FontSize = Enum.FontSize.Size18
- o96.TextColor3 = Color3.new(1, 1, 1)
- o96.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o96.TextStrokeTransparency = 0.94999998807907
- o96.TextXAlignment = Enum.TextXAlignment.Right
- o97.Name = "MouseThrottle"
- o97.Parent = o59
- o97.Position = UDim2.new(1,170,0,13)
- o97.Size = UDim2.new(0,300,0,15)
- o97.Position = UDim2.new(1,170,0,13)
- o97.BackgroundColor3 = Color3.new(0, 0, 0)
- o97.BackgroundTransparency = 0.5
- o97.BorderSizePixel = 0
- o97.Font = Enum.Font.SourceSans
- o97.FontSize = Enum.FontSize.Size14
- o97.TextColor3 = Color3.new(1, 1, 1)
- o98.Name = "MouseBrake"
- o98.Parent = o59
- o98.Position = UDim2.new(1,170,0,33)
- o98.Size = UDim2.new(0,300,0,15)
- o98.Position = UDim2.new(1,170,0,33)
- o98.BackgroundColor3 = Color3.new(0, 0, 0)
- o98.BackgroundTransparency = 0.5
- o98.BorderSizePixel = 0
- o98.Font = Enum.Font.SourceSans
- o98.FontSize = Enum.FontSize.Size14
- o98.TextColor3 = Color3.new(1, 1, 1)
- o99.Name = "MouseSteer"
- o99.Parent = o59
- o99.Position = UDim2.new(1,170,0,53)
- o99.Size = UDim2.new(0,300,0,15)
- o99.Text = "MouseMove"
- o99.Position = UDim2.new(1,170,0,53)
- o99.Active = false
- o99.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- o99.BackgroundTransparency = 0.5
- o99.BorderSizePixel = 0
- o99.Font = Enum.Font.SourceSans
- o99.FontSize = Enum.FontSize.Size14
- o99.TextColor3 = Color3.new(0.690196, 0.690196, 0.690196)
- o100.Name = "MouseShiftUp"
- o100.Parent = o59
- o100.Position = UDim2.new(1,170,0,73)
- o100.Size = UDim2.new(0,300,0,15)
- o100.Position = UDim2.new(1,170,0,73)
- o100.Active = false
- o100.BackgroundColor3 = Color3.new(0, 0, 0)
- o100.BackgroundTransparency = 0.5
- o100.BorderSizePixel = 0
- o100.Font = Enum.Font.SourceSans
- o100.FontSize = Enum.FontSize.Size14
- o100.TextColor3 = Color3.new(1, 1, 1)
- o101.Name = "MouseShiftDown"
- o101.Parent = o59
- o101.Position = UDim2.new(1,170,0,93)
- o101.Size = UDim2.new(0,300,0,15)
- o101.Position = UDim2.new(1,170,0,93)
- o101.Active = false
- o101.BackgroundColor3 = Color3.new(0, 0, 0)
- o101.BackgroundTransparency = 0.5
- o101.BorderSizePixel = 0
- o101.Font = Enum.Font.SourceSans
- o101.FontSize = Enum.FontSize.Size14
- o101.TextColor3 = Color3.new(1, 1, 1)
- o102.Name = "MouseClutch"
- o102.Parent = o59
- o102.Position = UDim2.new(1,170,0,113)
- o102.Size = UDim2.new(0,300,0,15)
- o102.Position = UDim2.new(1,170,0,113)
- o102.Active = false
- o102.BackgroundColor3 = Color3.new(0, 0, 0)
- o102.BackgroundTransparency = 0.5
- o102.BorderSizePixel = 0
- o102.Font = Enum.Font.SourceSans
- o102.FontSize = Enum.FontSize.Size14
- o102.TextColor3 = Color3.new(1, 1, 1)
- o103.Name = "MousePBrake"
- o103.Parent = o59
- o103.Position = UDim2.new(1,170,0,133)
- o103.Size = UDim2.new(0,300,0,15)
- o103.Position = UDim2.new(1,170,0,133)
- o103.Active = false
- o103.BackgroundColor3 = Color3.new(0, 0, 0)
- o103.BackgroundTransparency = 0.5
- o103.BorderSizePixel = 0
- o103.Font = Enum.Font.SourceSans
- o103.FontSize = Enum.FontSize.Size14
- o103.TextColor3 = Color3.new(1, 1, 1)
- o104.Name = "T"
- o104.Parent = o59
- o104.Position = UDim2.new(2,150,0,20)
- o104.Text = "Throttle"
- o104.Position = UDim2.new(2,150,0,20)
- o104.BackgroundColor3 = Color3.new(1, 1, 1)
- o104.BackgroundTransparency = 1
- o104.BorderSizePixel = 0
- o104.Font = Enum.Font.SourceSansItalic
- o104.FontSize = Enum.FontSize.Size18
- o104.TextColor3 = Color3.new(1, 1, 1)
- o104.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o104.TextStrokeTransparency = 0.94999998807907
- o104.TextXAlignment = Enum.TextXAlignment.Right
- o105.Name = "T"
- o105.Parent = o59
- o105.Position = UDim2.new(2,150,0,40)
- o105.Text = "Brakes"
- o105.Position = UDim2.new(2,150,0,40)
- o105.BackgroundColor3 = Color3.new(1, 1, 1)
- o105.BackgroundTransparency = 1
- o105.BorderSizePixel = 0
- o105.Font = Enum.Font.SourceSansItalic
- o105.FontSize = Enum.FontSize.Size18
- o105.TextColor3 = Color3.new(1, 1, 1)
- o105.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o105.TextStrokeTransparency = 0.94999998807907
- o105.TextXAlignment = Enum.TextXAlignment.Right
- o106.Name = "T"
- o106.Parent = o59
- o106.Position = UDim2.new(2,150,0,60)
- o106.Text = "Steer"
- o106.Position = UDim2.new(2,150,0,60)
- o106.BackgroundColor3 = Color3.new(1, 1, 1)
- o106.BackgroundTransparency = 1
- o106.BorderSizePixel = 0
- o106.Font = Enum.Font.SourceSansItalic
- o106.FontSize = Enum.FontSize.Size18
- o106.TextColor3 = Color3.new(1, 1, 1)
- o106.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o106.TextStrokeTransparency = 0.94999998807907
- o106.TextXAlignment = Enum.TextXAlignment.Right
- o107.Name = "T"
- o107.Parent = o59
- o107.Position = UDim2.new(2,150,0,80)
- o107.Text = "Shift Up"
- o107.Position = UDim2.new(2,150,0,80)
- o107.BackgroundColor3 = Color3.new(1, 1, 1)
- o107.BackgroundTransparency = 1
- o107.BorderSizePixel = 0
- o107.Font = Enum.Font.SourceSansItalic
- o107.FontSize = Enum.FontSize.Size18
- o107.TextColor3 = Color3.new(1, 1, 1)
- o107.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o107.TextStrokeTransparency = 0.94999998807907
- o107.TextXAlignment = Enum.TextXAlignment.Right
- o108.Name = "T"
- o108.Parent = o59
- o108.Position = UDim2.new(2,150,0,100)
- o108.Text = "Shift Down"
- o108.Position = UDim2.new(2,150,0,100)
- o108.BackgroundColor3 = Color3.new(1, 1, 1)
- o108.BackgroundTransparency = 1
- o108.BorderSizePixel = 0
- o108.Font = Enum.Font.SourceSansItalic
- o108.FontSize = Enum.FontSize.Size18
- o108.TextColor3 = Color3.new(1, 1, 1)
- o108.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o108.TextStrokeTransparency = 0.94999998807907
- o108.TextXAlignment = Enum.TextXAlignment.Right
- o109.Name = "T"
- o109.Parent = o59
- o109.Position = UDim2.new(2,150,0,120)
- o109.Text = "Clutch"
- o109.Position = UDim2.new(2,150,0,120)
- o109.BackgroundColor3 = Color3.new(1, 1, 1)
- o109.BackgroundTransparency = 1
- o109.BorderSizePixel = 0
- o109.Font = Enum.Font.SourceSansItalic
- o109.FontSize = Enum.FontSize.Size18
- o109.TextColor3 = Color3.new(1, 1, 1)
- o109.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o109.TextStrokeTransparency = 0.94999998807907
- o109.TextXAlignment = Enum.TextXAlignment.Right
- o110.Name = "T"
- o110.Parent = o59
- o110.Position = UDim2.new(2,150,0,140)
- o110.Text = "Handbrake"
- o110.Position = UDim2.new(2,150,0,140)
- o110.BackgroundColor3 = Color3.new(1, 1, 1)
- o110.BackgroundTransparency = 1
- o110.BorderSizePixel = 0
- o110.Font = Enum.Font.SourceSansItalic
- o110.FontSize = Enum.FontSize.Size18
- o110.TextColor3 = Color3.new(1, 1, 1)
- o110.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o110.TextStrokeTransparency = 0.94999998807907
- o110.TextXAlignment = Enum.TextXAlignment.Right
- o111.Name = "T"
- o111.Parent = o59
- o111.Position = UDim2.new(2,150,0,180)
- o111.Text = "Toggle TCS"
- o111.Position = UDim2.new(2,150,0,180)
- o111.BackgroundColor3 = Color3.new(1, 1, 1)
- o111.BackgroundTransparency = 1
- o111.BorderSizePixel = 0
- o111.Font = Enum.Font.SourceSansItalic
- o111.FontSize = Enum.FontSize.Size18
- o111.TextColor3 = Color3.new(1, 1, 1)
- o111.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o111.TextStrokeTransparency = 0.94999998807907
- o111.TextXAlignment = Enum.TextXAlignment.Right
- o112.Name = "T"
- o112.Parent = o59
- o112.Position = UDim2.new(2,150,0,160)
- o112.Text = "Transmission Mode"
- o112.Position = UDim2.new(2,150,0,160)
- o112.BackgroundColor3 = Color3.new(1, 1, 1)
- o112.BackgroundTransparency = 1
- o112.BorderSizePixel = 0
- o112.Font = Enum.Font.SourceSansItalic
- o112.FontSize = Enum.FontSize.Size18
- o112.TextColor3 = Color3.new(1, 1, 1)
- o112.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o112.TextStrokeTransparency = 0.94999998807907
- o112.TextXAlignment = Enum.TextXAlignment.Right
- o113.Name = "ContlrThrottle"
- o113.Parent = o59
- o113.Position = UDim2.new(2,170,0,13)
- o113.Size = UDim2.new(0,300,0,15)
- o113.Position = UDim2.new(2,170,0,13)
- o113.BackgroundColor3 = Color3.new(0, 0, 0)
- o113.BackgroundTransparency = 0.5
- o113.BorderSizePixel = 0
- o113.Font = Enum.Font.SourceSans
- o113.FontSize = Enum.FontSize.Size14
- o113.TextColor3 = Color3.new(1, 1, 1)
- o114.Name = "ContlrBrake"
- o114.Parent = o59
- o114.Position = UDim2.new(2,170,0,33)
- o114.Size = UDim2.new(0,300,0,15)
- o114.Position = UDim2.new(2,170,0,33)
- o114.BackgroundColor3 = Color3.new(0, 0, 0)
- o114.BackgroundTransparency = 0.5
- o114.BorderSizePixel = 0
- o114.Font = Enum.Font.SourceSans
- o114.FontSize = Enum.FontSize.Size14
- o114.TextColor3 = Color3.new(1, 1, 1)
- o115.Name = "ContlrSteer"
- o115.Parent = o59
- o115.Position = UDim2.new(2,170,0,53)
- o115.Size = UDim2.new(0,300,0,15)
- o115.Position = UDim2.new(2,170,0,53)
- o115.BackgroundColor3 = Color3.new(0, 0, 0)
- o115.BackgroundTransparency = 0.5
- o115.BorderSizePixel = 0
- o115.Font = Enum.Font.SourceSans
- o115.FontSize = Enum.FontSize.Size14
- o115.TextColor3 = Color3.new(1, 1, 1)
- o116.Name = "ContlrShiftUp"
- o116.Parent = o59
- o116.Position = UDim2.new(2,170,0,73)
- o116.Size = UDim2.new(0,300,0,15)
- o116.Position = UDim2.new(2,170,0,73)
- o116.BackgroundColor3 = Color3.new(0, 0, 0)
- o116.BackgroundTransparency = 0.5
- o116.BorderSizePixel = 0
- o116.Font = Enum.Font.SourceSans
- o116.FontSize = Enum.FontSize.Size14
- o116.TextColor3 = Color3.new(1, 1, 1)
- o117.Name = "ContlrShiftDown"
- o117.Parent = o59
- o117.Position = UDim2.new(2,170,0,93)
- o117.Size = UDim2.new(0,300,0,15)
- o117.Position = UDim2.new(2,170,0,93)
- o117.BackgroundColor3 = Color3.new(0, 0, 0)
- o117.BackgroundTransparency = 0.5
- o117.BorderSizePixel = 0
- o117.Font = Enum.Font.SourceSans
- o117.FontSize = Enum.FontSize.Size14
- o117.TextColor3 = Color3.new(1, 1, 1)
- o118.Name = "ContlrClutch"
- o118.Parent = o59
- o118.Position = UDim2.new(2,170,0,113)
- o118.Size = UDim2.new(0,300,0,15)
- o118.Position = UDim2.new(2,170,0,113)
- o118.BackgroundColor3 = Color3.new(0, 0, 0)
- o118.BackgroundTransparency = 0.5
- o118.BorderSizePixel = 0
- o118.Font = Enum.Font.SourceSans
- o118.FontSize = Enum.FontSize.Size14
- o118.TextColor3 = Color3.new(1, 1, 1)
- o119.Name = "ContlrPBrake"
- o119.Parent = o59
- o119.Position = UDim2.new(2,170,0,133)
- o119.Size = UDim2.new(0,300,0,15)
- o119.Position = UDim2.new(2,170,0,133)
- o119.BackgroundColor3 = Color3.new(0, 0, 0)
- o119.BackgroundTransparency = 0.5
- o119.BorderSizePixel = 0
- o119.Font = Enum.Font.SourceSans
- o119.FontSize = Enum.FontSize.Size14
- o119.TextColor3 = Color3.new(1, 1, 1)
- o120.Name = "ContlrToggleTMode"
- o120.Parent = o59
- o120.Position = UDim2.new(2,170,0,153)
- o120.Size = UDim2.new(0,300,0,15)
- o120.Position = UDim2.new(2,170,0,153)
- o120.BackgroundColor3 = Color3.new(0, 0, 0)
- o120.BackgroundTransparency = 0.5
- o120.BorderSizePixel = 0
- o120.Font = Enum.Font.SourceSans
- o120.FontSize = Enum.FontSize.Size14
- o120.TextColor3 = Color3.new(1, 1, 1)
- o121.Name = "ContlrToggleTCS"
- o121.Parent = o59
- o121.Position = UDim2.new(2,170,0,173)
- o121.Size = UDim2.new(0,300,0,15)
- o121.Position = UDim2.new(2,170,0,173)
- o121.BackgroundColor3 = Color3.new(0, 0, 0)
- o121.BackgroundTransparency = 0.5
- o121.BorderSizePixel = 0
- o121.Font = Enum.Font.SourceSans
- o121.FontSize = Enum.FontSize.Size14
- o121.TextColor3 = Color3.new(1, 1, 1)
- o122.Name = "T"
- o122.Parent = o59
- o122.Position = UDim2.new(1,150,0,160)
- o122.Text = "Deadzone"
- o122.Position = UDim2.new(1,150,0,160)
- o122.BackgroundColor3 = Color3.new(1, 1, 1)
- o122.BackgroundTransparency = 1
- o122.BorderSizePixel = 0
- o122.Font = Enum.Font.SourceSansItalic
- o122.FontSize = Enum.FontSize.Size18
- o122.TextColor3 = Color3.new(1, 1, 1)
- o122.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o122.TextStrokeTransparency = 0.94999998807907
- o122.TextXAlignment = Enum.TextXAlignment.Right
- o123.Name = "T"
- o123.Parent = o59
- o123.Position = UDim2.new(1,150,0,180)
- o123.Text = "Control Width"
- o123.Position = UDim2.new(1,150,0,180)
- o123.BackgroundColor3 = Color3.new(1, 1, 1)
- o123.BackgroundTransparency = 1
- o123.BorderSizePixel = 0
- o123.Font = Enum.Font.SourceSansItalic
- o123.FontSize = Enum.FontSize.Size18
- o123.TextColor3 = Color3.new(1, 1, 1)
- o123.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o123.TextStrokeTransparency = 0.94999998807907
- o123.TextXAlignment = Enum.TextXAlignment.Right
- o124.Name = "T"
- o124.Parent = o59
- o124.Position = UDim2.new(2,150,0,200)
- o124.Text = "Left Deadzone"
- o124.Position = UDim2.new(2,150,0,200)
- o124.BackgroundColor3 = Color3.new(1, 1, 1)
- o124.BackgroundTransparency = 1
- o124.BorderSizePixel = 0
- o124.Font = Enum.Font.SourceSansItalic
- o124.FontSize = Enum.FontSize.Size18
- o124.TextColor3 = Color3.new(1, 1, 1)
- o124.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o124.TextStrokeTransparency = 0.94999998807907
- o124.TextXAlignment = Enum.TextXAlignment.Right
- o125.Name = "T"
- o125.Parent = o59
- o125.Position = UDim2.new(2,150,0,220)
- o125.Text = "Right Deadzone"
- o125.Position = UDim2.new(2,150,0,220)
- o125.BackgroundColor3 = Color3.new(1, 1, 1)
- o125.BackgroundTransparency = 1
- o125.BorderSizePixel = 0
- o125.Font = Enum.Font.SourceSansItalic
- o125.FontSize = Enum.FontSize.Size18
- o125.TextColor3 = Color3.new(1, 1, 1)
- o125.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o125.TextStrokeTransparency = 0.94999998807907
- o125.TextXAlignment = Enum.TextXAlignment.Right
- o126.Name = "MSteerDZone"
- o126.Parent = o59
- o126.Position = UDim2.new(1,200,0,160)
- o126.Text = "100%"
- o126.Position = UDim2.new(1,200,0,160)
- o126.BackgroundColor3 = Color3.new(1, 1, 1)
- o126.BackgroundTransparency = 1
- o126.BorderSizePixel = 0
- o126.Font = Enum.Font.SourceSansItalic
- o126.FontSize = Enum.FontSize.Size18
- o126.TextColor3 = Color3.new(1, 1, 1)
- o126.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o126.TextStrokeTransparency = 0.94999998807907
- o126.TextXAlignment = Enum.TextXAlignment.Right
- o127.Name = "S"
- o127.Parent = o126
- o127.Position = UDim2.new(0,10,0,2)
- o127.Size = UDim2.new(0,260,0,3)
- o127.Position = UDim2.new(0,10,0,2)
- o127.CanvasSize = UDim2.new(0,5200,0,0)
- o127.BackgroundColor3 = Color3.new(0, 0, 0)
- o127.BackgroundTransparency = 0.5
- o127.BorderSizePixel = 0
- o127.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o127.ScrollBarThickness = 8
- o127.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o128.Name = "MSteerWidth"
- o128.Parent = o59
- o128.Position = UDim2.new(1,200,0,180)
- o128.Text = "100%"
- o128.Position = UDim2.new(1,200,0,180)
- o128.BackgroundColor3 = Color3.new(1, 1, 1)
- o128.BackgroundTransparency = 1
- o128.BorderSizePixel = 0
- o128.Font = Enum.Font.SourceSansItalic
- o128.FontSize = Enum.FontSize.Size18
- o128.TextColor3 = Color3.new(1, 1, 1)
- o128.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o128.TextStrokeTransparency = 0.94999998807907
- o128.TextXAlignment = Enum.TextXAlignment.Right
- o129.Name = "S"
- o129.Parent = o128
- o129.Position = UDim2.new(0,10,0,2)
- o129.Size = UDim2.new(0,260,0,3)
- o129.Position = UDim2.new(0,10,0,2)
- o129.CanvasSize = UDim2.new(0,5200,0,0)
- o129.BackgroundColor3 = Color3.new(0, 0, 0)
- o129.BackgroundTransparency = 0.5
- o129.BorderSizePixel = 0
- o129.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o129.ScrollBarThickness = 8
- o129.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o130.Name = "ControlLDZone"
- o130.Parent = o59
- o130.Position = UDim2.new(2,200,0,200)
- o130.Text = "100%"
- o130.Position = UDim2.new(2,200,0,200)
- o130.BackgroundColor3 = Color3.new(1, 1, 1)
- o130.BackgroundTransparency = 1
- o130.BorderSizePixel = 0
- o130.Font = Enum.Font.SourceSansItalic
- o130.FontSize = Enum.FontSize.Size18
- o130.TextColor3 = Color3.new(1, 1, 1)
- o130.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o130.TextStrokeTransparency = 0.94999998807907
- o130.TextXAlignment = Enum.TextXAlignment.Right
- o131.Name = "S"
- o131.Parent = o130
- o131.Position = UDim2.new(0,10,0,2)
- o131.Size = UDim2.new(0,260,0,3)
- o131.Position = UDim2.new(0,10,0,2)
- o131.CanvasSize = UDim2.new(0,5200,0,0)
- o131.BackgroundColor3 = Color3.new(0, 0, 0)
- o131.BackgroundTransparency = 0.5
- o131.BorderSizePixel = 0
- o131.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o131.ScrollBarThickness = 8
- o131.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o132.Name = "ControlRDZone"
- o132.Parent = o59
- o132.Position = UDim2.new(2,200,0,220)
- o132.Text = "100%"
- o132.Position = UDim2.new(2,200,0,220)
- o132.BackgroundColor3 = Color3.new(1, 1, 1)
- o132.BackgroundTransparency = 1
- o132.BorderSizePixel = 0
- o132.Font = Enum.Font.SourceSansItalic
- o132.FontSize = Enum.FontSize.Size18
- o132.TextColor3 = Color3.new(1, 1, 1)
- o132.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o132.TextStrokeTransparency = 0.94999998807907
- o132.TextXAlignment = Enum.TextXAlignment.Right
- o133.Name = "S"
- o133.Parent = o132
- o133.Position = UDim2.new(0,10,0,2)
- o133.Size = UDim2.new(0,260,0,3)
- o133.Position = UDim2.new(0,10,0,2)
- o133.CanvasSize = UDim2.new(0,5200,0,0)
- o133.BackgroundColor3 = Color3.new(0, 0, 0)
- o133.BackgroundTransparency = 0.5
- o133.BorderSizePixel = 0
- o133.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o133.ScrollBarThickness = 8
- o133.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o134.Name = "Error"
- o134.Parent = o51
- o134.Position = UDim2.new(0.5,0,0,20)
- o134.Text = "Invalid Input"
- o134.Position = UDim2.new(0.5,0,0,20)
- o134.Visible = false
- o134.BackgroundColor3 = Color3.new(1, 1, 1)
- o134.BackgroundTransparency = 1
- o134.BorderSizePixel = 0
- o134.Font = Enum.Font.SourceSansItalic
- o134.FontSize = Enum.FontSize.Size18
- o134.TextColor3 = Color3.new(1, 0, 0)
- o134.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o134.TextStrokeTransparency = 0.94999998807907
- o135.Name = "Overlay"
- o135.Parent = o51
- o135.Size = UDim2.new(1,0,1,0)
- o135.Text = "[Press a key to assign or Enter to cancel]"
- o135.Visible = false
- o135.BackgroundColor3 = Color3.new(1, 1, 1)
- o135.BackgroundTransparency = 0.5
- o135.BorderSizePixel = 0
- o135.ZIndex = 2
- o135.Font = Enum.Font.SourceSansItalic
- o135.FontSize = Enum.FontSize.Size28
- o135.TextColor3 = Color3.new(1, 1, 1)
- o135.TextStrokeColor3 = Color3.new(0.184314, 0.184314, 0.184314)
- o135.TextStrokeTransparency = 0
- o136.Name = "Controls_AC6"
- o136.Parent = o49
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --[[
- ___ _______ _
- / _ |____/ ___/ / ___ ____ ___ (_)__
- / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
- /_/ |_| \___/_//_/\_,_/___/___/_/___/
- SecondLogic @ Inspare
- ]]
- ---Controls UI
- script.Parent.Parent:WaitForChild("Controls")
- script.Parent.Parent:WaitForChild("ControlsOpen")
- script.Parent:WaitForChild("Window")
- script.Parent:WaitForChild("Toggle")
- local car = script.Parent.Parent.Car.Value
- local _Tune = require(car["A-Chassis Tune"])
- local UserInputService = game:GetService("UserInputService")
- local cPanel = script.Parent
- local Controls = script.Parent.Parent.Controls
- local ver = require(car["A-Chassis Tune"].README)
- cPanel.Window["//INSPARE"].Text = "A-Chassis "..ver.." by //INSPARE"
- local controlsOpen = false
- local cInputB = nil
- local cInputT = nil
- local cInput = false
- for i,v in pairs(_Tune.Peripherals) do
- script.Parent.Parent.Controls:WaitForChild(i)
- local slider = cPanel.Window.Content[i]
- slider.Text = v.."%"
- slider.S.CanvasPosition=Vector2.new(v*(slider.S.CanvasSize.X.Offset-slider.S.Size.X.Offset)/100,0)
- slider.S.Changed:connect(function(property)
- if property=="CanvasPosition" then
- Controls[i].Value = math.floor(100*slider.S.CanvasPosition.x/(slider.S.CanvasSize.X.Offset-slider.S.Size.X.Offset))
- slider.Text = Controls[i].Value.."%"
- end
- end)
- end
- for i,v in pairs(_Tune.Controls) do
- script.Parent.Parent.Controls:WaitForChild(i)
- local button = cPanel.Window.Content[i]
- button.Text = v.Name
- button.MouseButton1Click:connect(function()
- script.Parent.Parent.ControlsOpen.Value = true
- cPanel.Window.Overlay.Visible = true
- cInput = true
- repeat wait() until cInputB~=nil
- if cInputB == Enum.KeyCode.Return or cInputB == Enum.KeyCode.KeypadEnter then
- --do nothing
- elseif string.find(i,"Contlr")~=nil then
- if cInputT.Name:find("Gamepad") then
- Controls[i].Value = cInputB.Name
- button.Text = cInputB.Name
- else
- cPanel.Window.Error.Visible = true
- end
- elseif i=="MouseThrottle" or i=="MouseBrake" then
- if cInputT == Enum.UserInputType.MouseButton1 or cInputT == Enum.UserInputType.MouseButton2 then
- Controls[i].Value = cInputT.Name
- button.Text = cInputT.Name
- else
- cPanel.Window.Error.Visible = true
- end
- else
- if cInputT == Enum.UserInputType.Keyboard then
- Controls[i].Value = cInputB.Name
- button.Text = cInputB.Name
- else
- cPanel.Window.Error.Visible = true
- end
- end
- cInputB = nil
- cInputT = nil
- cInput = false
- wait(.2)
- cPanel.Window.Overlay.Visible = false
- script.Parent.Parent.ControlsOpen.Value = false
- end)
- end
- cPanel.Window.Error.Changed:connect(function(property)
- if property == "Visible" then
- wait(3)
- cPanel.Window.Error.Visible = false
- end
- end)
- UserInputService.InputBegan:connect(function(input) if cInput then cInputB = input.KeyCode cInputT = input.UserInputType end end)
- UserInputService.InputChanged:connect(function(input) if cInput and (input.KeyCode==Enum.KeyCode.Thumbstick1 or input.KeyCode==Enum.KeyCode.Thumbstick2) then cInputB = input.KeyCode cInputT = input.UserInputType end end)
- cPanel.Toggle.MouseButton1Click:connect(function()
- controlsOpen = not controlsOpen
- if controlsOpen then
- cPanel.Toggle.BackgroundColor3 = Color3.new(1,85/255,.5)
- cPanel.Window:TweenPosition(UDim2.new(0.5, -250,0.5, -250),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.7,true)
- else
- cPanel.Toggle.BackgroundColor3 = Color3.new(1,170/255,0)
- cPanel.Window:TweenPosition(UDim2.new(0.5, -250,0, -500),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.7,true)
- end
- end)
- cPanel.Window.Tabs.Keyboard.MouseButton1Click:connect(function()
- cPanel.Window.Content:TweenPosition(UDim2.new(0, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- end)
- cPanel.Window.Tabs.Mouse.MouseButton1Click:connect(function()
- cPanel.Window.Content:TweenPosition(UDim2.new(-1, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- end)
- cPanel.Window.Tabs.Controller.MouseButton1Click:connect(function()
- cPanel.Window.Content:TweenPosition(UDim2.new(-2, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- end)
- wait(.5)
- cPanel.Toggle:TweenPosition(UDim2.new(0, 50, 1, -30),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,false)
- for i=1,6 do
- cPanel.Toggle.BackgroundColor3 = Color3.new(100/255,100/255,100/255)
- wait(.2)
- if controlsOpen then
- cPanel.Toggle.BackgroundColor3 = Color3.new(1,85/255,.5)
- else
- cPanel.Toggle.BackgroundColor3 = Color3.new(1,170/255,0)
- end
- wait(.2)
- end
- end,o136)
- end))
- o137.Name = "AC6_Stock_Gauges"
- o137.Parent = o28
- o137.Position = UDim2.new(0,0,0,300)
- o137.Size = UDim2.new(1,0,1,0)
- o137.Position = UDim2.new(0,0,0,300)
- o137.BackgroundColor3 = Color3.new(1, 1, 1)
- o137.BackgroundTransparency = 1
- o137.BorderSizePixel = 0
- o138.Name = "Gauges_AC6"
- o138.Parent = o137
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --[[
- ___ _______ _
- / _ |____/ ___/ / ___ ____ ___ (_)__
- / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
- /_/ |_| \___/_//_/\_,_/___/___/_/___/
- SecondLogic @ Inspare
- ]]
- script.Parent:WaitForChild("Speedo")
- script.Parent:WaitForChild("Tach")
- script.Parent:WaitForChild("ln")
- script.Parent:WaitForChild("Gear")
- script.Parent:WaitForChild("Speed")
- local car = script.Parent.Parent.Car.Value
- car.DriveSeat.HeadsUpDisplay = false
- local _Tune = require(car["A-Chassis Tune"])
- local _pRPM = _Tune.PeakRPM
- local _lRPM = _Tune.Redline
- local revEnd = math.ceil(_lRPM/1000)
- local Drive={}
- if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
- if car.Wheels:FindFirstChild("FL")~= nil then
- table.insert(Drive,car.Wheels.FL)
- end
- if car.Wheels:FindFirstChild("FR")~= nil then
- table.insert(Drive,car.Wheels.FR)
- end
- if car.Wheels:FindFirstChild("F")~= nil then
- table.insert(Drive,car.Wheels.F)
- end
- end
- if _Tune.Config == "RWD" or _Tune.Config == "AWD" then
- if car.Wheels:FindFirstChild("RL")~= nil then
- table.insert(Drive,car.Wheels.RL)
- end
- if car.Wheels:FindFirstChild("RR")~= nil then
- table.insert(Drive,car.Wheels.RR)
- end
- if car.Wheels:FindFirstChild("R")~= nil then
- table.insert(Drive,car.Wheels.R)
- end
- end
- local wDia = 0
- for i,v in pairs(Drive) do
- if v.Size.x>wDia then wDia = v.Size.x end
- end
- Drive = nil
- local maxSpeed = math.ceil(wDia*math.pi*_lRPM/60/_Tune.Ratios[#_Tune.Ratios]/_Tune.FinalDrive)
- local spInc = math.max(math.ceil(maxSpeed/200)*20,20)
- for i=0,revEnd*2 do
- local ln = script.Parent.ln:clone()
- ln.Parent = script.Parent.Tach
- ln.Rotation = 45 + i * 225 / (revEnd*2)
- ln.Num.Text = i/2
- ln.Num.Rotation = -ln.Rotation
- if i*500>=math.floor(_pRPM/500)*500 then
- ln.Frame.BackgroundColor3 = Color3.new(1,0,0)
- if i<revEnd*2 then
- ln2 = ln:clone()
- ln2.Parent = script.Parent.Tach
- ln2.Rotation = 45 + (i+.5) * 225 / (revEnd*2)
- ln2.Num:Destroy()
- ln2.Visible=true
- end
- end
- if i%2==0 then
- ln.Frame.Size = UDim2.new(0,3,0,10)
- ln.Frame.Position = UDim2.new(0,-1,0,100)
- ln.Num.Visible = true
- else
- ln.Num:Destroy()
- end
- ln.Visible=true
- end
- for i=1,90 do
- local ln = script.Parent.ln:clone()
- ln.Parent = script.Parent.Speedo
- ln.Rotation = 45 + 225*(i/90)
- if i%2==0 then
- ln.Frame.Size = UDim2.new(0,2,0,10)
- ln.Frame.Position = UDim2.new(0,-1,0,100)
- else
- ln.Frame.Size = UDim2.new(0,3,0,5)
- end
- ln.Num:Destroy()
- ln.Visible=true
- end
- for i=0,maxSpeed,spInc do
- local ln = script.Parent.ln:clone()
- ln.Parent = script.Parent.Speedo
- ln.Rotation = 45 + 225*(i/maxSpeed)
- ln.Num.Text = i
- ln.Num.Rotation = -ln.Rotation
- ln.Frame:Destroy()
- ln.Num.Visible=true
- ln.Visible=true
- end
- if script.Parent.Parent.IsOn.Value then
- script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
- end
- script.Parent.Parent.IsOn.Changed:connect(function()
- if script.Parent.Parent.IsOn.Value then
- script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
- end
- end)
- script.Parent.Parent.Values.RPM.Changed:connect(function()
- script.Parent.Tach.Needle.Rotation = 45 + 225 * math.min(1,script.Parent.Parent.Values.RPM.Value / (revEnd*1000))
- end)
- script.Parent.Parent.Values.Gear.Changed:connect(function()
- local gearText = script.Parent.Parent.Values.Gear.Value
- if gearText == 0 then gearText = "N"
- elseif gearText == -1 then gearText = "R"
- end
- script.Parent.Gear.Text = gearText
- end)
- script.Parent.Parent.Values.TCS.Changed:connect(function()
- if script.Parent.Parent.Values.TCS.Value then
- script.Parent.TCS.TextColor3 = Color3.new(1,170/255,0)
- script.Parent.TCS.TextStrokeColor3 = Color3.new(1,170/255,0)
- if script.Parent.Parent.Values.TCSActive.Value then
- wait()
- script.Parent.TCS.Visible = not script.Parent.TCS.Visible
- else
- wait()
- script.Parent.TCS.Visible = false
- end
- else
- script.Parent.TCS.Visible = true
- script.Parent.TCS.TextColor3 = Color3.new(1,0,0)
- script.Parent.TCS.TextStrokeColor3 = Color3.new(1,0,0)
- end
- end)
- script.Parent.Parent.Values.TCSActive.Changed:connect(function()
- if script.Parent.Parent.Values.TCSActive.Value and script.Parent.Parent.Values.TCS.Value then
- wait()
- script.Parent.TCS.Visible = not script.Parent.TCS.Visible
- elseif not script.Parent.Parent.Values.TCS.Value then
- wait()
- script.Parent.TCS.Visible = true
- else
- wait()
- script.Parent.TCS.Visible = false
- end
- end)
- script.Parent.TCS.Changed:connect(function()
- if script.Parent.Parent.Values.TCSActive.Value and script.Parent.Parent.Values.TCS.Value then
- wait()
- script.Parent.TCS.Visible = not script.Parent.TCS.Visible
- elseif not script.Parent.Parent.Values.TCS.Value then
- wait()
- script.Parent.TCS.Visible = true
- end
- end)
- script.Parent.Parent.Values.PBrake.Changed:connect(function()
- script.Parent.PBrake.Visible = script.Parent.Parent.Values.PBrake.Value
- end)
- script.Parent.Parent.Values.TransmissionMode.Changed:connect(function()
- if script.Parent.Parent.Values.TransmissionMode.Value == "Auto" then
- script.Parent.TMode.Text = "A/T"
- script.Parent.TMode.BackgroundColor3 = Color3.new(1,170/255,0)
- elseif script.Parent.Parent.Values.TransmissionMode.Value == "Semi" then
- script.Parent.TMode.Text = "S/T"
- script.Parent.TMode.BackgroundColor3 = Color3.new(0, 170/255, 127/255)
- else
- script.Parent.TMode.Text = "M/T"
- script.Parent.TMode.BackgroundColor3 = Color3.new(1,85/255,.5)
- end
- end)
- script.Parent.Parent.Values.Velocity.Changed:connect(function(property)
- script.Parent.Speedo.Needle.Rotation =45 + 225 * math.min(1,script.Parent.Parent.Values.Velocity.Value.Magnitude/maxSpeed)
- script.Parent.Speed.Text = math.floor(script.Parent.Parent.Values.Velocity.Value.Magnitude) .. " SPS"
- end)
- end,o138)
- end))
- o139.Name = "Tach"
- o139.Parent = o137
- o139.Position = UDim2.new(0.5,-150,1,-100)
- o139.Position = UDim2.new(0.5,-150,1,-100)
- o139.BackgroundColor3 = Color3.new(1, 1, 1)
- o139.BorderSizePixel = 0
- o140.Name = "Needle"
- o140.Parent = o139
- o140.Rotation = 45
- o140.BackgroundColor3 = Color3.new(1, 1, 1)
- o140.BorderSizePixel = 0
- o141.Parent = o140
- o141.Position = UDim2.new(0,-2,0,-10)
- o141.Size = UDim2.new(0,4,0,110)
- o141.Position = UDim2.new(0,-2,0,-10)
- o141.BackgroundColor3 = Color3.new(1, 0, 0)
- o141.BackgroundTransparency = 0.10000000149012
- o141.BorderSizePixel = 0
- o141.ZIndex = 2
- o142.Name = "Speedo"
- o142.Parent = o137
- o142.Position = UDim2.new(0.5,150,1,-100)
- o142.Position = UDim2.new(0.5,150,1,-100)
- o142.BackgroundColor3 = Color3.new(1, 1, 1)
- o142.BorderSizePixel = 0
- o143.Name = "Needle"
- o143.Parent = o142
- o143.Rotation = 45
- o143.BackgroundColor3 = Color3.new(1, 1, 1)
- o143.BorderSizePixel = 0
- o144.Parent = o143
- o144.Position = UDim2.new(0,-2,0,-10)
- o144.Size = UDim2.new(0,4,0,110)
- o144.Position = UDim2.new(0,-2,0,-10)
- o144.BackgroundColor3 = Color3.new(1, 0, 0)
- o144.BackgroundTransparency = 0.10000000149012
- o144.BorderSizePixel = 0
- o144.ZIndex = 2
- o145.Name = "ln"
- o145.Parent = o137
- o145.Rotation = 45
- o145.Visible = false
- o145.BackgroundColor3 = Color3.new(1, 1, 1)
- o145.BorderSizePixel = 0
- o146.Parent = o145
- o146.Position = UDim2.new(0,-2,0,105)
- o146.Size = UDim2.new(0,3,0,5)
- o146.Position = UDim2.new(0,-2,0,105)
- o146.BackgroundColor3 = Color3.new(1, 1, 1)
- o146.BackgroundTransparency = 0.10000000149012
- o146.BorderSizePixel = 0
- o147.Name = "Num"
- o147.Parent = o145
- o147.Position = UDim2.new(0,0,0,88)
- o147.Rotation = -45
- o147.Text = "0"
- o147.Position = UDim2.new(0,0,0,88)
- o147.Visible = false
- o147.BackgroundColor3 = Color3.new(1, 1, 1)
- o147.BackgroundTransparency = 1
- o147.BorderSizePixel = 0
- o147.Font = Enum.Font.ArialBold
- o147.FontSize = Enum.FontSize.Size18
- o147.TextColor3 = Color3.new(1, 1, 1)
- o147.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
- o147.TextStrokeTransparency = 0.89999997615814
- o147.TextTransparency = 0.10000000149012
- o148.Name = "Gear"
- o148.Parent = o137
- o148.Position = UDim2.new(0.5,-120,1,-70)
- o148.Text = "N"
- o148.Position = UDim2.new(0.5,-120,1,-70)
- o148.BackgroundColor3 = Color3.new(1, 1, 1)
- o148.BackgroundTransparency = 1
- o148.BorderSizePixel = 0
- o148.Font = Enum.Font.ArialBold
- o148.FontSize = Enum.FontSize.Size48
- o148.TextColor3 = Color3.new(1, 1, 1)
- o148.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
- o148.TextStrokeTransparency = 0.89999997615814
- o148.TextTransparency = 0.10000000149012
- o149.Name = "Speed"
- o149.Parent = o137
- o149.Position = UDim2.new(0.5,250,1,-70)
- o149.Text = "0 SPS"
- o149.Position = UDim2.new(0.5,250,1,-70)
- o149.BackgroundColor3 = Color3.new(1, 1, 1)
- o149.BackgroundTransparency = 1
- o149.BorderSizePixel = 0
- o149.Font = Enum.Font.ArialBold
- o149.FontSize = Enum.FontSize.Size24
- o149.TextColor3 = Color3.new(1, 1, 1)
- o149.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
- o149.TextStrokeTransparency = 0.89999997615814
- o149.TextTransparency = 0.10000000149012
- o149.TextXAlignment = Enum.TextXAlignment.Right
- o150.Name = "ABS"
- o150.Parent = o137
- o150.Position = UDim2.new(0.5,130,1,-100)
- o150.Text = "ABS"
- o150.Position = UDim2.new(0.5,130,1,-100)
- o150.Visible = false
- o150.BackgroundColor3 = Color3.new(1, 1, 1)
- o150.BackgroundTransparency = 1
- o150.BorderSizePixel = 0
- o150.Font = Enum.Font.ArialBold
- o150.FontSize = Enum.FontSize.Size18
- o150.TextColor3 = Color3.new(1, 0.666667, 0)
- o150.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
- o150.TextStrokeTransparency = 0.89999997615814
- o150.TextTransparency = 0.10000000149012
- o150.TextXAlignment = Enum.TextXAlignment.Right
- o151.Name = "PBrake"
- o151.Parent = o137
- o151.Position = UDim2.new(0.5,200,1,-120)
- o151.Text = "P"
- o151.Position = UDim2.new(0.5,200,1,-120)
- o151.Visible = false
- o151.BackgroundColor3 = Color3.new(1, 1, 1)
- o151.BackgroundTransparency = 1
- o151.BorderSizePixel = 0
- o151.Font = Enum.Font.ArialBold
- o151.FontSize = Enum.FontSize.Size24
- o151.TextColor3 = Color3.new(1, 0.333333, 0.498039)
- o151.TextStrokeColor3 = Color3.new(1, 0.333333, 0.498039)
- o151.TextStrokeTransparency = 0.89999997615814
- o151.TextTransparency = 0.10000000149012
- o151.TextXAlignment = Enum.TextXAlignment.Right
- o152.Name = "TCS"
- o152.Parent = o137
- o152.Position = UDim2.new(0.5,130,1,-120)
- o152.Text = "TCS"
- o152.Position = UDim2.new(0.5,130,1,-120)
- o152.Visible = false
- o152.BackgroundColor3 = Color3.new(1, 1, 1)
- o152.BackgroundTransparency = 1
- o152.BorderSizePixel = 0
- o152.Font = Enum.Font.ArialBold
- o152.FontSize = Enum.FontSize.Size18
- o152.TextColor3 = Color3.new(1, 0.666667, 0)
- o152.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
- o152.TextStrokeTransparency = 0.89999997615814
- o152.TextTransparency = 0.10000000149012
- o152.TextXAlignment = Enum.TextXAlignment.Right
- o153.Name = "TMode"
- o153.Parent = o137
- o153.Position = UDim2.new(0.5,-165,1,-40)
- o153.Size = UDim2.new(0,40,0,20)
- o153.Text = "A/T"
- o153.Position = UDim2.new(0.5,-165,1,-40)
- o153.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- o153.BackgroundTransparency = 0.5
- o153.BorderSizePixel = 0
- o153.Font = Enum.Font.ArialBold
- o153.FontSize = Enum.FontSize.Size18
- o153.TextColor3 = Color3.new(1, 1, 1)
- o153.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
- o153.TextStrokeTransparency = 0.89999997615814
- o153.TextTransparency = 0.10000000149012
- o154.Name = "Backfire"
- o154.Parent = o28
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local car = script.Parent.Car.Value
- local _Tune = require(car["A-Chassis Tune"])
- local rate=0
- local prate=rate
- car.Body.Exhaust.E1.S:Play()
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" then
- car.Body.Exhaust.E1.S:Stop()
- car.Body.Exhaust.E1.Afterburn.Rate=0
- car.Body.Exhaust.E1.L.Range = 0
- end
- end)
- function backfire()
- if script.Parent.IsOn.Value and script.Parent.Values.Throttle.Value <= _Tune.IdleThrottle and script.Parent.Values.RPM.Value>_Tune.PeakRPM and script.Parent.Values.Gear.Value~=-1 then
- rate = 35
- elseif rate>0 then
- rate = math.max(rate-25,0)
- end
- if prate~=rate then
- car.Body.Exhaust.E1.Afterburn.Rate = rate
- car.Body.Exhaust.E1.L.Range = (7+(math.random(-10,10)/10))*rate/35
- end
- prate=rate
- if car.DriveSeat:FindFirstChild("Rev")~=nil then
- local on=1
- if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
- car.Body.Exhaust.E1.S.Volume = (((car.DriveSeat.Rev.Pitch - car.DriveSeat.Rev.SetPitch.Value)/car.DriveSeat.Rev.SetRev.Value)-math.min(1,car.DriveSeat.Velocity.Magnitude/40)*(script.Parent.Values.Throttle.Value))
- end
- end
- while wait(.1) do
- backfire()
- end
- script.Parent.Values.Throttle.Changed:connect(backfire())
- end,o154)
- end))
- o155.Name = "Burnout"
- o155.Parent = o28
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local car = script.Parent.Car.Value
- local slip = 0
- local pslip = slip
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" then
- car.Wheels.RL.Burnout.Force = Vector3.new(0,0,0)
- car.Wheels.RR.Burnout.Force = Vector3.new(0,0,0)
- end
- end)
- while wait(.2) do
- if script.Parent.Values.PBrake.Value and not script.Parent.Values.TCS.Value and car.DriveSeat.Velocity.Magnitude < 5 and script.Parent.Values.RPM.Value > 4000 then
- slip = math.min(15000,slip+3000)
- else
- slip = math.max(0,slip-1000)
- end
- if pslip~=slip then
- car.Wheels.RL.Burnout.Force = Vector3.new(0,slip,0)
- car.Wheels.RR.Burnout.Force = Vector3.new(0,slip,0)
- end
- pslip=slip
- end
- end,o155)
- end))
- o156.Name = "Smoke"
- o156.Parent = o28
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local car = script.Parent.Car.Value
- car.Wheels.RL.SQ:Play()
- car.Wheels.RR.SQ:Play()
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" then
- car.Wheels.RL.SQ:Stop()
- car.Wheels.RR.SQ:Stop()
- car.Wheels.RL.Smoke.Rate=0
- car.Wheels.RR.Smoke.Rate=0
- end
- end)
- while wait(.2) do
- local r1 = Ray.new(car.Wheels.RL.Position,(car.Wheels.RL.Arm.CFrame*CFrame.Angles(-math.pi/2,0,0)).lookVector*(car.Wheels.RL.Size.x/2))
- local r1hit = 0
- if workspace:FindPartOnRay(r1,car)~=nil then r1hit=1 end
- local r2 = Ray.new(car.Wheels.RL.Position,(car.Wheels.RR.Arm.CFrame*CFrame.Angles(-math.pi/2,0,0)).lookVector*(car.Wheels.RR.Size.x/2))
- local r2hit = 0
- if workspace:FindPartOnRay(r2,car)~=nil then r2hit=1 end
- local rl = math.min((math.max(math.abs((car.Wheels.RL.RotVelocity.Magnitude*car.Wheels.RL.Size.x/2) - (car.Wheels.RL.Velocity.Magnitude))-20,0)),50)*r1hit
- local rr = math.min((math.max(math.abs((car.Wheels.RR.RotVelocity.Magnitude*car.Wheels.RR.Size.x/2) - (car.Wheels.RR.Velocity.Magnitude))-20,0)),50)*r2hit
- car.Wheels.RL.Smoke.Rate = rl
- car.Wheels.RR.Smoke.Rate = rr
- car.Wheels.RL.SQ.Volume = rl/50
- car.Wheels.RR.SQ.Volume = rr/50
- end
- end,o156)
- end))
- o157.Name = "Lights"
- o157.Parent = o28
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- script.Parent:WaitForChild("Values")
- local is = game:GetService("UserInputService")
- local cr = script.Parent.Car.Value
- local lt = cr.Body.Lights
- local tk = cr.Body.TK
- local vl = script.Parent.Values
- local GBrake = vl.Brake
- local gr = vl.Gear
- local bk = vl.Brake.Value
- local l1 = lt.RunL
- local r1 = lt.RunR
- local b1 = tk.RLeft
- local b2 = tk.RRight
- local b3 = lt.Brake
- local b4 = tk.Brake
- local lw = lt.B
- local lww = lt.L
- local lwww = lt.L2
- local hi = lt.HB
- local rb = tk.RB
- local rv = tk.Reverse
- local left = false
- local right = false
- local hazards = false
- local reverse = false
- local headlt = false
- local highlt = false
- local relay = false
- local brake = false
- function DealWithInput(input,processed)
- if (processed) then return end
- if input.KeyCode == Enum.KeyCode.S or input.KeyCode == Enum.KeyCode.Down then --Brake
- if input.UserInputState == Enum.UserInputState.Begin then
- brake=true
- b3.BrickColor = BrickColor.new("Really red")
- b3.Material = Enum.Material.Neon
- b4.BrickColor = BrickColor.new("Really red")
- b4.Material = Enum.Material.Neon
- elseif input.UserInputState == Enum.UserInputState.End then
- brake=false
- b3.BrickColor = BrickColor.new("Crimson")
- b3.Material = Enum.Material.SmoothPlastic
- b4.BrickColor = BrickColor.new("Crimson")
- b4.Material = Enum.Material.SmoothPlastic
- end
- elseif input.KeyCode == Enum.KeyCode.Z then if input.UserInputState == Enum.UserInputState.Begin then
- if hazards then return end
- left = not left
- right = false
- if relay then repeat wait() until not relay end
- while left do
- l1.BrickColor = BrickColor.new("Deep orange")
- l1.Material = Enum.Material.Neon
- b1.BrickColor = BrickColor.new("Deep orange")
- b1.Material = Enum.Material.Neon
- cr.DriveSeat.Indicator.Value = true
- cr.DriveSeat.LI.Value = true
- wait(1/3)
- l1.BrickColor = BrickColor.new("Pearl")
- l1.Material = Enum.Material.SmoothPlastic
- cr.DriveSeat.Indicator.Value = false
- cr.DriveSeat.LI.Value = false
- if not headlt then
- b1.BrickColor = BrickColor.new("Deep orange")
- b1.Material = Enum.Material.SmoothPlastic
- else
- b1.BrickColor = BrickColor.new("Deep orange")
- b1.Material = Enum.Material.SmoothPlastic
- end
- wait(1/3)
- if not left then
- l1.Material = Enum.Material.Neon
- l1.BrickColor = BrickColor.new("Pearl")
- end
- end end
- elseif input.KeyCode == Enum.KeyCode.X then if input.UserInputState == Enum.UserInputState.Begin then
- if hazards == false then
- hazards = true
- left = true
- right = true
- else
- hazards = false
- left = false
- right = false
- end
- if hazards then left = false right = false end
- if relay then repeat wait() until not relay end
- while hazards do
- l1.BrickColor = BrickColor.new("Deep orange")
- l1.Material = Enum.Material.Neon
- r1.BrickColor = BrickColor.new("Deep orange")
- r1.Material = Enum.Material.Neon
- b1.BrickColor = BrickColor.new("Deep orange")
- b1.Material = Enum.Material.Neon
- b2.BrickColor = BrickColor.new("Deep orange")
- b2.Material = Enum.Material.Neon
- cr.DriveSeat.Indicator.Value = true
- cr.DriveSeat.LI.Value = true
- cr.DriveSeat.RI.Value = true
- wait(1/3)
- l1.BrickColor = BrickColor.new("Pearl")
- l1.Material = Enum.Material.SmoothPlastic
- r1.BrickColor = BrickColor.new("Pearl")
- r1.Material = Enum.Material.SmoothPlastic
- b1.BrickColor = BrickColor.new("Deep orange")
- b1.Material = Enum.Material.SmoothPlastic
- b2.BrickColor = BrickColor.new("Deep orange")
- b2.Material = Enum.Material.SmoothPlastic
- cr.DriveSeat.Indicator.Value = false
- cr.DriveSeat.LI.Value = false
- cr.DriveSeat.RI.Value = false
- wait(1/3)
- if not hazards then
- l1.Material = Enum.Material.Neon
- r1.Material = Enum.Material.Neon
- l1.BrickColor = BrickColor.new("Pearl")
- r1.BrickColor = BrickColor.new("Pearl")
- end
- end end
- elseif input.KeyCode == Enum.KeyCode.C then if input.UserInputState == Enum.UserInputState.Begin then
- if hazards then return end
- right = not right
- left = false
- if relay then repeat wait() until not relay end
- while right do
- r1.BrickColor = BrickColor.new("Deep orange")
- r1.Material = Enum.Material.Neon
- b2.BrickColor = BrickColor.new("Deep orange")
- b2.Material = Enum.Material.Neon
- cr.DriveSeat.Indicator.Value = true
- cr.DriveSeat.RI.Value = true
- wait(1/3)
- r1.BrickColor = BrickColor.new("Pearl")
- r1.Material = Enum.Material.SmoothPlastic
- cr.DriveSeat.Indicator.Value = false
- cr.DriveSeat.RI.Value = false
- if not headlt then
- b2.BrickColor = BrickColor.new("Deep orange")
- b2.Material = Enum.Material.SmoothPlastic
- else
- b2.BrickColor = BrickColor.new("Deep orange")
- b2.Material = Enum.Material.SmoothPlastic
- end
- wait(1/3)
- if not right then
- r1.Material = Enum.Material.Neon
- r1.BrickColor = BrickColor.new("Pearl")
- end
- end end
- elseif input.KeyCode == Enum.KeyCode.L then if input.UserInputState == Enum.UserInputState.Begin then
- if headlt and not highlt then
- highlt = true
- elseif headlt and highlt then
- headlt = false
- highlt = false
- elseif not headlt then
- headlt = true
- end
- if highlt then
- hi.BrickColor = BrickColor.new("Pearl")
- hi.Material = Enum.Material.Neon
- lwww.SpotLight.Enabled = true
- rb.BrickColor = BrickColor.new("Really red")
- rb.Material = Enum.Material.Neon
- elseif not highlt then
- hi.BrickColor = BrickColor.new("Institutional white")
- hi.Material = Enum.Material.SmoothPlastic
- lwww.SpotLight.Enabled = false
- if not headlt then
- rb.BrickColor = BrickColor.new("Crimson")
- rb.Material = Enum.Material.SmoothPlastic
- elseif not headlt or highlt then
- rb.BrickColor = BrickColor.new("Crimson")
- rb.Material = Enum.Material.SmoothPlastic
- end
- end
- if headlt then
- lw.BrickColor = BrickColor.new("Pearl")
- lw.Material = Enum.Material.Neon
- lww.SpotLight.Enabled = true
- rb.BrickColor = BrickColor.new("Really red")
- rb.Material = Enum.Material.Neon
- if not highlt then
- lw.BrickColor = BrickColor.new("Pearl")
- rb.BrickColor = BrickColor.new("Really red")
- rb.Material = Enum.Material.Neon
- else
- end
- elseif not headlt then
- lw.BrickColor = BrickColor.new("Institutional white")
- lw.Material = Enum.Material.SmoothPlastic
- lww.SpotLight.Enabled = false
- if not brake then
- end
- end end
- end
- end
- is.InputBegan:connect(DealWithInput)
- is.InputChanged:connect(DealWithInput)
- is.InputEnded:connect(DealWithInput)
- gr.Changed:connect(function()
- if gr.Value == -1 then
- rv.Material = Enum.Material.Neon
- else
- rv.Material = Enum.Material.SmoothPlastic
- end
- end)
- end,o157)
- end))
- o158.Name = "AC6_Stock_Sound"
- o158.Parent = o28
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --[[
- ___ _______ _
- / _ |____/ ___/ / ___ ____ ___ (_)__
- / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
- /_/ |_| \___/_//_/\_,_/___/___/_/___/
- SecondLogic @ Inspare
- ]]
- local FE = workspace.FilteringEnabled
- local car = script.Parent.Car.Value
- local _Tune = require(car["A-Chassis Tune"])
- local on = 0
- script:WaitForChild("Rev")
- if not FE then
- for i,v in pairs(car.DriveSeat:GetChildren()) do
- for _,a in pairs(script:GetChildren()) do
- if v.Name==a.Name then v:Stop() wait() v:Destroy() end
- end
- end
- for i,v in pairs(script:GetChildren()) do
- v.Parent=car.DriveSeat
- end
- car.DriveSeat.Rev:Play()
- while wait() do
- local _RPM = script.Parent.Values.RPM.Value
- if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
- car.DriveSeat.Rev.Pitch = (car.DriveSeat.Rev.SetPitch.Value + car.DriveSeat.Rev.SetRev.Value*_RPM/_Tune.Redline)*on^2
- end
- else
- local handler = car.AC6_FE_Sounds
- handler:FireServer("newSound","Rev",car.DriveSeat,script.Rev.SoundId,0,script.Rev.Volume,true)
- handler:FireServer("playSound","Rev")
- local pitch=0
- while wait() do
- local _RPM = script.Parent.Values.RPM.Value
- if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
- pitch = (script.Rev.SetPitch.Value + script.Rev.SetRev.Value*_RPM/_Tune.Redline)*on^2
- handler:FireServer("updateSound","Rev",script.Rev.SoundId,pitch,script.Rev.Volume)
- end
- end
- end,o158)
- end))
- o159.Name = "AC6_FE_Sounds"
- o159.Parent = o158
- o160.Name = "Handler"
- o160.Parent = o159
- o160.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local Sounds = {}
- local F = {}
- F.newSound = function(name,par,id,pitch,volume,loop)
- for i,v in pairs(Sounds) do
- if i==name then
- v:Stop()
- v:Destroy()
- end
- end
- local sn = Instance.new("Sound",par)
- sn.Name = name
- sn.SoundId = id
- sn.Pitch = pitch
- sn.Volume = volume
- sn.Looped = loop
- sn.AncestryChanged:connect(function(child,parent) print(parent) end)
- Sounds[name]=sn
- end
- F.updateSound = function(sound,id,pit,vol)
- local sn = Sounds[sound]
- if id~=sn.SoundId then sn.SoundId = id end
- if pit~=sn.Pitch then sn.Pitch = pit end
- if vol~=sn.Volume then sn.Volume = vol end
- end
- F.playSound = function(sound)
- Sounds[sound]:Play()
- end
- F.pauseSound = function(sound)
- Sounds[sound]:Pause()
- end
- F.stopSound = function(sound)
- Sounds[sound]:Stop()
- end
- F.removeSound = function(sound)
- Sounds[sound]:Stop()
- Sounds[sound]:Destroy()
- Sounds[sound]=nil
- end
- script.Parent.OnServerEvent:connect(function(pl,Fnc,...)
- F[Fnc](...)
- end)
- end,o160)
- end))
- o161.Name = "Rev"
- o161.Parent = o158
- o161.Pitch = 0
- o161.SoundId = "rbxassetid://502694720"
- o161.Volume = 4
- o161.Looped = true
- o162.Name = "SetRev"
- o162.Parent = o161
- o162.Value = 1.4
- o163.Name = "SetPitch"
- o163.Parent = o161
- o163.Value = 0.05
- o164.Name = "Ignition"
- o164.Parent = o28
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local car = script.Parent.Car.Value
- script:WaitForChild("Start1")
- script:WaitForChild("Start2")
- for i,v in pairs(car.DriveSeat:GetChildren()) do
- for _,a in pairs(script:GetChildren()) do
- if v.Name==a.Name then v:Stop() wait() v:Destroy() end
- end
- end
- for i,v in pairs(script:GetChildren()) do
- v.Parent=car.DriveSeat
- end
- car.DriveSeat.Start1:Play()
- wait(5.12)
- car.DriveSeat.Start2:Play()
- script.Parent.IsOn.Value=true
- wait(.0)
- car.DriveSeat.Start1:Stop()
- car.DriveSeat.Start2:Stop()
- end,o164)
- end))
- o165.Name = "Start1"
- o165.Parent = o164
- o165.SoundId = "rbxassetid://339770028"
- o165.Volume = 1
- o166.Name = "Start2"
- o166.Parent = o164
- o166.SoundId = "rbxassetid://1"
- o166.Volume = 1
- o167.Name = "A-Chassis Interface"
- o167.Parent = mas
- o168.Name = "Car"
- o168.Parent = o167
- o169.Name = "Values"
- o169.Parent = o167
- o170.Name = "RPM"
- o170.Parent = o169
- o171.Name = "Horsepower"
- o171.Parent = o169
- o172.Name = "Torque"
- o172.Parent = o169
- o173.Name = "TransmissionMode"
- o173.Parent = o169
- o174.Name = "Gear"
- o174.Parent = o169
- o175.Name = "Throttle"
- o175.Parent = o169
- o176.Name = "SteerC"
- o176.Parent = o169
- o177.Name = "SteerT"
- o177.Parent = o169
- o178.Name = "Brake"
- o178.Parent = o169
- o179.Name = "TCS"
- o179.Parent = o169
- o180.Name = "PBrake"
- o180.Parent = o169
- o181.Name = "TCSActive"
- o181.Parent = o169
- o182.Name = "Velocity"
- o182.Parent = o169
- o183.Name = "IsOn"
- o183.Parent = o167
- o184.Name = "ControlsOpen"
- o184.Parent = o167
- o185.Name = "Drive"
- o185.Parent = o167
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --[[
- ___ _______ _
- / _ |____/ ___/ / ___ ____ ___ (_)__
- / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
- /_/ |_| \___/_//_/\_,_/___/___/_/___/
- SecondLogic @ Inspare
- *I assume you know what you're doing if you're gonna change something here.* ]]--
- script.Parent:WaitForChild("Car")
- script.Parent:WaitForChild("IsOn")
- script.Parent:WaitForChild("ControlsOpen")
- script.Parent:WaitForChild("Values")
- --Vars
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local UserInputService = game:GetService("UserInputService")
- local cam = workspace.CurrentCamera
- local car = script.Parent.Car.Value
- local _Tune = require(car["A-Chassis Tune"])
- local _IsOn = _Tune.AutoStart
- if _Tune.AutoStart then script.Parent.IsOn.Value=true end
- local _GSteerT=0
- local _GSteerC=0
- local _GThrot=0
- local _GBrake=0
- local _ClutchOn = true
- local _ClPressing = false
- local _RPM = 0
- local _HP = 0
- local _OutTorque = 0
- local _CGear = 0
- local _PGear = _CGear
- local _TMode = _Tune.TransModes[1]
- local _MSteer = false
- local _SteerL = false
- local _SteerR = false
- local _PBrake = false
- local _TCS = true
- local _TCSActive = false
- local FlipWait=tick()
- local FlipDB=false
- local _InControls = false
- --Shutdown
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" and child:IsA("Weld") then
- script.Parent:Destroy()
- end
- end)
- --Controls
- local _CTRL = _Tune.Controls
- local Controls = Instance.new("Folder",script.Parent)
- Controls.Name = "Controls"
- for i,v in pairs(_CTRL) do
- local a=Instance.new("StringValue",Controls)
- a.Name=i
- a.Value=v.Name
- a.Changed:connect(function()
- if i=="MouseThrottle" or i=="MouseBrake" then
- _CTRL[i]=Enum.UserInputType[a.Value]
- else
- _CTRL[i]=Enum.KeyCode[a.Value]
- end
- end)
- end
- local _PPH = _Tune.Peripherals
- for i,v in pairs(_PPH) do
- local a = Instance.new("IntValue",Controls)
- a.Name = i
- a.Value = v
- a.Changed:connect(function()
- a.Value=math.min(100,math.max(0,a.Value))
- _PPH[i] = a.Value
- end)
- end
- function DealWithInput(input,IsRobloxFunction)
- if (UserInputService:GetFocusedTextBox()==nil) and not _InControls then --No texting while driving
- 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
- if _CGear == 0 and (_TMode=="Auto" or not _ClPressing) then _ClutchOn = true end
- _CGear = math.max(_CGear-1,-1)
- 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
- if _CGear == 0 and (_TMode=="Auto" or not _ClPressing) then _ClutchOn = true end
- _CGear = math.min(_CGear+1,#_Tune.Ratios-2)
- 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
- if input.UserInputState == Enum.UserInputState.Begin then
- _ClutchOn = false
- _ClPressing = true
- elseif input.UserInputState == Enum.UserInputState.End then
- _ClutchOn = true
- _ClPressing = false
- end
- elseif _IsOn and input.KeyCode ==_CTRL["ContlrPBrake"] or (_MSteer and input.KeyCode==_CTRL["MousePBrake"]) or ((not _MSteer) and input.KeyCode==_CTRL["PBrake"]) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _PBrake = not _PBrake
- elseif input.UserInputState == Enum.UserInputState.End then
- if car.DriveSeat.Velocity.Magnitude>5 then
- _PBrake = false
- end
- end
- elseif (input.KeyCode == _CTRL["ContlrToggleTMode"] or input.KeyCode==_CTRL["ToggleTransMode"]) and input.UserInputState == Enum.UserInputState.Begin then
- local n=1
- for i,v in pairs(_Tune.TransModes) do
- if v==_TMode then n=i break end
- end
- n=n+1
- if n>#_Tune.TransModes then n=1 end
- _TMode = _Tune.TransModes[n]
- elseif _IsOn and ((not _MSteer) and (input.KeyCode==_CTRL["Throttle"] or input.KeyCode == _CTRL["Throttle2"])) or (input.UserInputType == _CTRL["MouseThrottle"] and _MSteer) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _GThrot = 1
- else
- _GThrot = _Tune.IdleThrottle
- end
- elseif ((not _MSteer) and (input.KeyCode==_CTRL["Brake"] or input.KeyCode == _CTRL["Brake2"])) or (input.UserInputType == _CTRL["MouseBrake"] and _MSteer) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _GBrake = 1
- else
- _GBrake = 0
- end
- elseif (not _MSteer) and (input.KeyCode==_CTRL["SteerLeft"] or input.KeyCode == _CTRL["SteerLeft2"]) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _GSteerT = -1
- _SteerL = true
- else
- if _SteerR then
- _GSteerT = 1
- else
- _GSteerT = 0
- end
- _SteerL = false
- end
- elseif (not _MSteer) and (input.KeyCode==_CTRL["SteerRight"] or input.KeyCode == _CTRL["SteerRight2"]) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _GSteerT = 1
- _SteerR = true
- else
- if _SteerL then
- _GSteerT = -1
- else
- _GSteerT = 0
- end
- _SteerR = false
- end
- elseif input.KeyCode ==_CTRL["ToggleMouseDrive"] then
- if input.UserInputState == Enum.UserInputState.End then
- _MSteer = not _MSteer
- _GThrot = _Tune.IdleThrottle
- _GBrake = 0
- _GSteerT = 0
- _ClutchOn = true
- end
- elseif _IsOn and input.KeyCode == _CTRL["ToggleTCS"] or input.KeyCode == _CTRL["ContlrToggleTCS"] then
- if input.UserInputState == Enum.UserInputState.End then
- _TCS = not _TCS
- end
- end
- if input.UserInputType.Name:find("Gamepad") then
- if input.KeyCode == _CTRL["ContlrSteer"] then
- if input.Position.X>= 0 then
- local cDZone = math.min(.99,_Tune.Peripherals.ControlRDZone/100)
- if math.abs(input.Position.X)>cDZone then
- _GSteerT = (input.Position.X-cDZone)/(1-cDZone)
- else
- _GSteerT = 0
- end
- else
- local cDZone = math.min(.99,_Tune.Peripherals.ControlLDZone/100)
- if math.abs(input.Position.X)>cDZone then
- _GSteerT = (input.Position.X+cDZone)/(1-cDZone)
- else
- _GSteerT = 0
- end
- end
- elseif _IsOn and input.KeyCode == _CTRL["ContlrThrottle"] then
- _GThrot = math.max(_Tune.IdleThrottle,input.Position.Z)
- elseif input.KeyCode == _CTRL["ContlrBrake"] then
- _GBrake = input.Position.Z
- end
- end
- else
- _GThrot = _Tune.IdleThrottle
- _GSteerT = 0
- _GBrake = 0
- if _CGear~=0 then _ClutchOn = true end
- end
- end
- UserInputService.InputBegan:connect(DealWithInput)
- UserInputService.InputChanged:connect(DealWithInput)
- UserInputService.InputEnded:connect(DealWithInput)
- ---Drivetrain Initialize
- local wDia = 0
- local Drive={}
- if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
- table.insert(Drive,v)
- end
- end
- end
- if _Tune.Config == "RWD" or _Tune.Config == "AWD" then
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v.Name=="RL" or v.Name=="RR" or v.Name=="R" then
- table.insert(Drive,v)
- end
- end
- end
- for i,v in pairs(Drive) do
- if v.Size.x>wDia then wDia = v.Size.x end
- end
- for i,v in pairs(car.Wheels:GetChildren()) do
- if math.abs(v["#AV"].maxTorque.Magnitude-_Tune.PBrakeForce)<1 then
- _PBrake=true
- end
- end
- ---Camera
- game:GetService("RunService").RenderStepped:connect(function()
- if _MSteer then
- cam.CameraType = Enum.CameraType.Scriptable
- local pspeed = math.min(1,car.DriveSeat.Velocity.Magnitude/500)
- local cc = car.DriveSeat.Position+Vector3.new(0,8+(pspeed*2),0)-(car.DriveSeat.CFrame.lookVector*17)+(car.DriveSeat.Velocity.Unit*-7*pspeed)
- cam.CoordinateFrame = CFrame.new(cc,car.DriveSeat.Position)
- elseif cam.CameraType ~= Enum.CameraType.Custom then
- cam.CameraType = Enum.CameraType.Custom
- end
- end)
- ---Steering
- function Steering()
- if _MSteer then
- local msWidth = math.max(1,mouse.ViewSizeX*_Tune.Peripherals.MSteerWidth/200)
- local mdZone = _Tune.Peripherals.MSteerDZone/100
- local mST = ((mouse.X-mouse.ViewSizeX/2)/msWidth)
- if math.abs(mST)<=mdZone then
- _GSteerT = 0
- else
- _GSteerT = (math.max(math.min((math.abs(mST)-mdZone),(1-mdZone)),0)/(1-mdZone))^_Tune.MSteerExp * (mST / math.abs(mST))
- end
- end
- if _GSteerC < _GSteerT then
- _GSteerC = math.min(_GSteerT,_GSteerC+_Tune.SteerSpeed)
- else
- _GSteerC = math.max(_GSteerT,_GSteerC-_Tune.SteerSpeed)
- end
- local sDecay = (1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-_Tune.MinSteer))
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v.Name=="F" then
- v.Arm.Steer.cframe=car.Wheels.F.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
- elseif v.Name=="FL" then
- if _GSteerC>= 0 then
- v.Arm.Steer.cframe=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerOuter*sDecay),0)
- else
- v.Arm.Steer.cframe=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
- end
- elseif v.Name=="FR" then
- if _GSteerC>= 0 then
- v.Arm.Steer.cframe=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
- else
- v.Arm.Steer.cframe=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerOuter*sDecay),0)
- end
- end
- end
- end
- --Engine
- function Engine()
- --Neutral Gear
- if _CGear==0 then _ClutchOn = false end
- --Car is off
- local revMin = _Tune.IdleRPM
- if not _IsOn then
- revMin = 0
- _CGear = 0
- _ClutchOn = false
- _GThrot = _Tune.IdleThrottle
- end
- --Determine RPM
- local maxSpin=0
- for i,v in pairs(Drive) do
- if v.RotVelocity.Magnitude>maxSpin then maxSpin = v.RotVelocity.Magnitude end
- end
- if _ClutchOn then
- local aRPM = math.max(math.min(maxSpin*_Tune.Ratios[_CGear+2]*_Tune.FinalDrive*30/math.pi,_Tune.Redline+100),revMin)
- local clutchP = math.min(math.abs(aRPM-_RPM)/_Tune.ClutchTol,.9)
- _RPM = ( (_RPM*2*clutchP) + (aRPM*2*(1-clutchP)) )/2
- _HP = (_Tune.Horsepower/2) * math.sin((math.pi/((1+(math.min(10,_Tune.IdleOffset)/100))*_Tune.PeakRPM)) * (_RPM - (((2-(1+(math.min(10,_Tune.IdleOffset)/100)))* _Tune.PeakRPM)/2))) + (_Tune.Horsepower/2)
- _OutTorque = _HP * 5250 / _RPM * _Tune.Ratios[_CGear+2] * _Tune.FinalDrive
- else
- if _GThrot-_Tune.IdleThrottle>0 then
- _RPM = math.min(_RPM+_Tune.RevAccel*_GThrot,_Tune.Redline+100)
- else
- _RPM = math.max(_RPM-_Tune.RevDecay,revMin)
- end
- _OutTorque = 0
- end
- --Rev Limiter
- local spLimit = 0
- if _RPM>_Tune.Redline then
- if _CGear<#_Tune.Ratios-2 then
- _RPM = _RPM-_Tune.RevBounce
- spLimit = 0
- else
- _RPM = _RPM-_Tune.RevBounce*.5
- end
- else
- spLimit = (_Tune.Redline+100)*math.pi/(30*_Tune.Ratios[_CGear+2]*_Tune.FinalDrive)
- end
- --Automatic Transmission
- if _TMode == "Auto" and _IsOn then
- _ClutchOn = true
- if _CGear == 0 then _CGear = 1 end
- if _CGear >= 1 then
- if _CGear==1 and _GBrake > 0 and car.DriveSeat.Velocity.Magnitude < 20 then
- _CGear = -1
- else
- if _Tune.AutoShiftMode == "RPM" then
- if _RPM>(_Tune.PeakRPM+_Tune.AutoUpThresh) then
- _CGear=math.min(_CGear+1,#_Tune.Ratios-2)
- elseif math.max(math.min(maxSpin*_Tune.Ratios[_CGear+1]*_Tune.FinalDrive*30/math.pi,_Tune.Redline+100),_Tune.IdleRPM)<(_Tune.PeakRPM-_Tune.AutoDownThresh) then
- _CGear=math.max(_CGear-1,1)
- end
- else
- if car.DriveSeat.Velocity.Magnitude > math.ceil(wDia*math.pi*(_Tune.PeakRPM+_Tune.AutoUpThresh)/60/_Tune.Ratios[_CGear+2]/_Tune.FinalDrive) then
- _CGear=math.min(_CGear+1,#_Tune.Ratios-2)
- elseif car.DriveSeat.Velocity.Magnitude < math.ceil(wDia*math.pi*(_Tune.PeakRPM-_Tune.AutoDownThresh)/60/_Tune.Ratios[_CGear+1]/_Tune.FinalDrive) then
- _CGear=math.max(_CGear-1,1)
- end
- end
- end
- else
- if _GThrot-_Tune.IdleThrottle > 0 and car.DriveSeat.Velocity.Magnitude < 20 then
- _CGear = 1
- end
- end
- end
- --Differential Stuff
- local fwspeed=0
- local fwcount=0
- local rwspeed=0
- local rwcount=0
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v.Name=="FL" or v.Name=="FR" or v.Name == "F" then
- fwspeed=fwspeed+v.RotVelocity.Magnitude
- fwcount=fwcount+1
- elseif v.Name=="RL" or v.Name=="RR" or v.Name == "R" then
- rwspeed=rwspeed+v.RotVelocity.Magnitude
- rwcount=rwcount+1
- end
- end
- fwspeed=fwspeed/fwcount
- rwspeed=rwspeed/rwcount
- local cwspeed=(fwspeed+rwspeed)/2
- --Apply Forces
- for i,v in pairs(car.Wheels:GetChildren()) do
- local Ref=v.Axle.CFrame.lookVector
- local aRef=1
- local diffMult=1
- if v.Name=="FL" or v.Name=="RL" then aRef=-1 end
- --Torque Compensation
- if _Tune.Config ~= "AWD" then _OutTorque = _OutTorque*1.3 end
- --Differential
- if v.Name=="FL" or v.Name=="FR" then
- diffMult=math.max(0,math.min(1,1+((((v.RotVelocity.Magnitude-fwspeed)/fwspeed)/(math.max(_Tune.FDiffSlipThres,1)/100))*((_Tune.FDiffLockThres-50)/50))))
- if _Tune.Config == "AWD" then
- diffMult=math.max(0,math.min(1,diffMult*(1+((((fwspeed-cwspeed)/cwspeed)/(math.max(_Tune.CDiffSlipThres,1)/100))*((_Tune.CDiffLockThres-50)/50)))))
- end
- elseif v.Name=="RL" or v.Name=="RR" then
- diffMult=math.max(0,math.min(1,1+((((v.RotVelocity.Magnitude-rwspeed)/rwspeed)/(math.max(_Tune.RDiffSlipThres,1)/100))*((_Tune.RDiffLockThres-50)/50))))
- if _Tune.Config == "AWD" then
- diffMult=math.max(0,math.min(1,diffMult*(1+((((rwspeed-cwspeed)/cwspeed)/(math.max(_Tune.CDiffSlipThres,1)/100))*((_Tune.CDiffLockThres-50)/50)))))
- end
- end
- --Output
- 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
- v["#AV"].maxTorque=Vector3.new(math.abs(Ref.x),math.abs(Ref.y),math.abs(Ref.z))*_Tune.PBrakeForce
- v["#AV"].angularvelocity=Vector3.new()
- else
- 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==0 )))then
- local driven = false
- for _,a in pairs(Drive) do if a==v then driven = true end end
- if driven then
- local on=1
- if not script.Parent.IsOn.Value then on=0 end
- local throt = _GThrot
- if _TMode == "Auto" and _CGear==-1 then throt = _GBrake end
- local tqTCS = 1
- if _TCS then
- 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))
- end
- if tqTCS < 1 then
- _TCSActive = true
- else
- _TCSActive = false
- end
- local dir = 1
- if _CGear==-1 then dir = -1 end
- 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
- v["#AV"].angularvelocity=Ref*aRef*spLimit*dir
- else
- v["#AV"].maxTorque=Vector3.new()
- v["#AV"].angularvelocity=Vector3.new()
- end
- else
- local brake = _GBrake
- if _TMode == "Auto" and _CGear==-1 then brake = _GThrot end
- v["#AV"].maxTorque=Vector3.new(math.abs(Ref.x),math.abs(Ref.y),math.abs(Ref.z))*_Tune.BrakeForce*brake
- v["#AV"].angularvelocity=Vector3.new()
- end
- end
- end
- end
- ---Flip
- function Flip()
- if (car.DriveSeat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.y > .1 or FlipDB then
- FlipWait=tick()
- else
- if tick()-FlipWait>=3 then
- FlipDB=true
- local gyro = car.DriveSeat.Flip
- gyro.maxTorque = Vector3.new(10000,0,10000)
- gyro.P=3000
- gyro.D=500
- wait(1)
- gyro.maxTorque = Vector3.new(0,0,0)
- gyro.P=0
- gyro.D=0
- FlipDB=false
- end
- end
- end
- --Run
- local ver=require(car["A-Chassis Tune"].README)
- print("//INSPARE: AC6 Loaded - Build "..ver)
- while wait() do
- Steering()
- Engine()
- if _Tune.AutoFlip then Flip() end
- _IsOn = script.Parent.IsOn.Value
- _InControls = script.Parent.ControlsOpen.Value
- script.Parent.Values.Gear.Value = _CGear
- script.Parent.Values.RPM.Value = _RPM
- script.Parent.Values.Horsepower.Value = _HP
- script.Parent.Values.Torque.Value = _HP * 5250 / _RPM
- script.Parent.Values.TransmissionMode.Value = _TMode
- script.Parent.Values.Throttle.Value = _GThrot
- script.Parent.Values.Brake.Value = _GBrake
- script.Parent.Values.SteerC.Value = _GSteerC*(1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-_Tune.MinSteer))
- script.Parent.Values.SteerT.Value = _GSteerT
- script.Parent.Values.PBrake.Value = _PBrake
- script.Parent.Values.TCS.Value = _TCS
- script.Parent.Values.TCSActive.Value = _TCSActive
- script.Parent.Values.Velocity.Value = car.DriveSeat.Velocity
- if _PGear~=_CGear then
- _PGear=_CGear
- car.DriveSeat.MaxSpeed = car.DriveSeat.Velocity.Magnitude*(_Tune.Redline/_RPM)
- end
- end
- end,o185)
- end))
- o186.Name = " Initialize"
- o186.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --BasedWeld2.0
- local JS = game:GetService("JointsService")
- function MakeWeld(x,y,type,s)
- if type==nil then type="Weld" end
- local W=Instance.new(type,JS)
- W.Part0=x W.Part1=y
- W.C0=x.CFrame:inverse()*x.CFrame
- W.C1=y.CFrame:inverse()*x.CFrame
- if type=="Motor" and s~=nil then
- W.MaxVelocity=s
- end
- return W
- end
- function ModelWeld(a,b)
- if a:IsA("BasePart") then
- MakeWeld(b,a,"Weld")
- elseif a:IsA("Model") then
- for i,v in pairs(a:GetChildren()) do
- ModelWeld(v,b)
- end
- end
- end
- function UnAnchor(a)
- if a:IsA("BasePart") then a.Anchored=false end for i,v in pairs(a:GetChildren()) do UnAnchor(v) end
- end
- --
- script.Parent:WaitForChild("A-Chassis Interface")
- script.Parent:WaitForChild("Plugins")
- script.Parent:WaitForChild("README")
- local car=script.Parent.Parent
- local _Tune=require(script.Parent)
- local Drive=car.Wheels:GetChildren()
- function getParts(model,t,a)
- for i,v in pairs(model:GetChildren()) do
- if v:IsA("BasePart") then table.insert(t,{v,a.CFrame:toObjectSpace(v.CFrame)})
- elseif v:IsA("Model") then getParts(v,t,a)
- end
- end
- end
- for _,v in pairs(Drive) do
- for _,a in pairs({"Top","Bottom","Left","Right","Front","Back"}) do
- v[a.."Surface"]=Enum.SurfaceType.SmoothNoOutlines
- end
- local WParts = {}
- local tPos = v.Position-car.DriveSeat.Position
- if v.Name=="FL" or v.Name=="RL" then
- v.CFrame = car.DriveSeat.CFrame*CFrame.Angles(math.rad(90),0,math.rad(90))
- else
- v.CFrame = car.DriveSeat.CFrame*CFrame.Angles(math.rad(90),0,math.rad(-90))
- end
- v.CFrame = v.CFrame+tPos
- if v:FindFirstChild("Parts")~=nil then
- getParts(v.Parts,WParts,v)
- end
- if v:FindFirstChild("Fixed")~=nil then
- getParts(v.Fixed,WParts,v)
- end
- if v.Name=="FL" or v.Name=="FR" then
- v.CFrame = v.CFrame*CFrame.Angles(math.rad(_Tune.FCamber),0,0)
- if v.Name=="FL" then
- v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(_Tune.FToe))
- else
- v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(-_Tune.FToe))
- end
- elseif v.Name=="RL" or v.Name=="RR" then
- v.CFrame = v.CFrame*CFrame.Angles(math.rad(_Tune.RCamber),0,0)
- if v.Name=="RL" then
- v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(_Tune.RToe))
- else
- v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(-_Tune.RToe))
- end
- end
- for _,a in pairs(WParts) do
- a[1].CFrame=v.CFrame:toWorldSpace(a[2])
- end
- if v.Name=="FL" then
- v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(-_Tune.FCaster),0)
- elseif v.Name=="FR" or v.Name=="F" then
- v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(_Tune.FCaster),0)
- elseif v.Name=="RL" then
- v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(-_Tune.RCaster),0)
- elseif v.Name=="RR" or v.Name=="R" then
- v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(_Tune.RCaster),0)
- end
- local arm=Instance.new("Part",v)
- arm.Name="Arm"
- arm.Anchored=true
- arm.CanCollide=false
- arm.FormFactor=Enum.FormFactor.Custom
- arm.Size=Vector3.new(1,1,1)
- arm.CFrame=(v.CFrame*CFrame.new(0,_Tune.StAxisOffset,0))*CFrame.Angles(-math.pi/2,-math.pi/2,0)
- arm.TopSurface=Enum.SurfaceType.Smooth
- arm.BottomSurface=Enum.SurfaceType.Smooth
- arm.Transparency=1
- local base=arm:Clone()
- base.Parent=v
- base.Name="Base"
- base.CFrame=base.CFrame*CFrame.new(0,1,0)
- base.BottomSurface=Enum.SurfaceType.Hinge
- local axle=arm:Clone()
- axle.Parent=v
- axle.Name="Axle"
- 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)
- axle.BackSurface=Enum.SurfaceType.Hinge
- if v.Name=="F" or v.Name=="R" then
- local axle2=arm:Clone()
- axle2.Parent=v
- axle2.Name="Axle"
- 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)
- axle2.BackSurface=Enum.SurfaceType.Hinge
- MakeWeld(arm,axle2)
- end
- MakeWeld(car.DriveSeat,base)
- if v.Parent.Name == "RL" or v.Parent.Name == "RR" or v.Name=="R" then
- MakeWeld(car.DriveSeat,arm)
- end
- MakeWeld(arm,axle)
- arm:MakeJoints()
- axle:MakeJoints()
- if v:FindFirstChild("Fixed")~=nil then
- ModelWeld(v.Fixed,axle)
- end
- if v:FindFirstChild("Parts")~=nil then
- ModelWeld(v.Parts,v)
- end
- if v:FindFirstChild("Steer") then
- v:FindFirstChild("Steer"):Destroy()
- end
- local gyro=Instance.new("BodyGyro",v)
- gyro.Name="Stabilizer"
- if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
- gyro.D=_Tune.FGyroD
- gyro.MaxTorque=_Tune.FGyroMaxTorque
- gyro.P=_Tune.FGyroP
- else
- gyro.D=_Tune.RGyroD
- gyro.MaxTorque=_Tune.RGyroMaxTorque
- gyro.P=_Tune.RGyroP
- end
- if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
- local steer=Instance.new("BodyGyro",arm)
- steer.Name="Steer"
- steer.P=_Tune.SteerP
- steer.D=_Tune.SteerD
- steer.MaxTorque=Vector3.new(0,_Tune.SteerMaxTorque,0)
- steer.cframe=base.CFrame
- else
- MakeWeld(base,axle,"Weld")
- end
- local AV=Instance.new("BodyAngularVelocity",v)
- AV.Name="#AV"
- AV.angularvelocity=Vector3.new(0,0,0)
- AV.maxTorque=Vector3.new(_Tune.PBrakeForce,0,_Tune.PBrakeForce)
- AV.P=1e9
- end
- for i,v in pairs(script:GetChildren()) do
- if v:IsA("ModuleScript") then
- require(v)
- end
- end
- wait()
- ModelWeld(car.Body,car.DriveSeat)
- local flipG = Instance.new("BodyGyro",car.DriveSeat)
- flipG.Name = "Flip"
- flipG.D = 0
- flipG.MaxTorque = Vector3.new(0,0,0)
- flipG.P = 0
- wait()
- UnAnchor(car)
- script.Parent["A-Chassis Interface"].Car.Value=car
- for i,v in pairs(script.Parent.Plugins:GetChildren()) do
- for _,a in pairs(v:GetChildren()) do
- if a:IsA("RemoteEvent") or a:IsA("RemoteFunction") then
- a.Parent=car
- for _,b in pairs(a:GetChildren()) do
- if b:IsA("Script") then b.Disabled=false end
- end
- end
- end
- v.Parent = script.Parent["A-Chassis Interface"]
- end
- script.Parent.Plugins:Destroy()
- car.DriveSeat.ChildAdded:connect(function(child)
- if child.Name=="SeatWeld" and child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
- local p=game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- car.DriveSeat:SetNetworkOwner(p)
- local g=script.Parent["A-Chassis Interface"]:Clone()
- g.Parent=p.PlayerGui
- end
- end)
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" and child:IsA("Weld") then
- for i,v in pairs(car.DriveSeat:GetChildren()) do
- if v:IsA("Sound") then v:Stop() end
- end
- if car.DriveSeat:FindFirstChild("Flip")~=nil then
- car.DriveSeat.Flip.MaxTorque = Vector3.new()
- end
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v:FindFirstChild("#AV")~=nil then
- if v["#AV"].AngularVelocity.Magnitude>0 then
- v["#AV"].AngularVelocity = Vector3.new()
- v["#AV"].MaxTorque = Vector3.new()
- end
- end
- end
- end
- end)
- ver = require(script.Parent.README)
- end,o186)
- end))
- o189.Name = "Indicator2"
- o189.Parent = o2
- o189.Pitch = 0.69999998807907
- o189.SoundId = "rbxassetid://190126363"
- o189.Volume = 0.30000001192093
- o190.Name = "TL"
- o190.Parent = o2
- o191.Name = "Gui Giver"
- o191.Parent = o2
- o191.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- GUI = script.Parent.SS3
- script.Parent.ChildAdded:connect(function(child)
- if child:IsA("Weld") then
- -- child.C0 = CFrame.new(0,-0.6,0)*CFrame.fromEulerAnglesXYZ(-(math.pi/2),0,0) --// Reposition player
- if child.Part1.Name == "HumanoidRootPart" then
- player = game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- if player and (not player.PlayerGui:FindFirstChild("Screen")) then --// The part after the "and" prevents multiple GUI's to be copied over.
- GUI.CarSeat.Value = script.Parent --// Puts a reference of the seat in this ObjectValue, now you can use this ObjectValue's value to find the car directly.
- GUI:Clone().Parent = player.PlayerGui --// Compact version
- script.Parent.Parent.Body.Lights.RunL.Material = "Neon"
- script.Parent.Parent.Body.Lights.RunR.Material = "Neon"
- script.Parent.Parent.Body.Dash.DashSc.G.Enabled = true
- script.Parent.Parent.Body.Dash.S.G.Enabled = true
- end
- end
- end
- end)
- script.Parent.ChildRemoved:connect(function(child)
- if child:IsA("Weld") then
- if child.Part1.Name == "HumanoidRootPart" then
- game.Workspace.CurrentCamera.FieldOfView = 70
- player = game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- if player and player.PlayerGui:FindFirstChild("SS3") then
- player.PlayerGui:FindFirstChild("SS3"):Destroy()
- script.Parent.Parent.Body.Lights.RunL.Material = "SmoothPlastic"
- script.Parent.Parent.Body.Lights.RunR.Material = "SmoothPlastic"
- script.Parent.Parent.Body.Dash.DashSc.G.Enabled = false
- script.Parent.Parent.Body.Dash.S.G.Enabled = false
- end
- end
- end
- end)
- end,o191)
- end))
- o192.Name = "TheFix"
- o192.Parent = o191
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- wait(2)
- script.Parent.Disabled = false
- end,o192)
- end))
- o193.Name = "Unlock"
- o193.Parent = o2
- o193.SoundId = "rbxassetid://588504467"
- o193.Volume = 0.64999997615814
- o194.Name = "Lock"
- o194.Parent = o2
- o194.SoundId = "rbxassetid://588504467"
- o194.Volume = 0.64999997615814
- o195.Name = "Horsepower"
- o195.Parent = o2
- o196.Name = "Indicator"
- o196.Parent = o2
- o197.Name = "IsOn"
- o197.Parent = o2
- o198.Name = "LI"
- o198.Parent = o2
- o199.Name = "PSL"
- o199.Parent = o2
- o200.Name = "RI"
- o200.Parent = o2
- o201.Name = "RPM"
- o201.Parent = o2
- o203.Name = "Plugins"
- o203.Parent = mas
- o204.Name = "Inspare_Splash"
- o204.Parent = o203
- o204.Size = UDim2.new(1,0,1,0)
- o204.BackgroundColor3 = Color3.new(1, 1, 1)
- o204.BackgroundTransparency = 1
- o204.BorderSizePixel = 0
- o205.Name = "Inspare_Splash"
- o205.Parent = o204
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --SecondLogic @ INSPARE
- wait(.2)
- local out=false
- coroutine.resume(coroutine.create(function()
- local fr = 0
- local trs=1
- while wait(.05) do
- fr = fr+1
- if fr>=10 then fr=0 end
- if not out then
- trs=math.max(0,trs-.05)
- else
- trs=math.min(1,trs+.05)
- end
- for i,v in pairs(script.Parent.Frame:GetChildren()) do
- v.Frame.ImageLabel.ImageTransparency = trs
- v.Frame.ImageLabel.Position=UDim2.new(-(fr%3),0,-math.floor(fr/3),0)
- if out then
- v.BackgroundTransparency=.5+(.5*trs)
- v.Frame.ImageLabel.BackgroundTransparency=trs
- end
- end
- if out then
- script.Parent.IN.TextTransparency=trs
- script.Parent.SPARE.TextTransparency=trs
- end
- if out and trs==1 then
- break
- end
- end
- script.Parent:Destroy()
- end))
- game:GetService("RunService").RenderStepped:connect(function()
- for i,v in pairs(script.Parent.Frame:GetChildren()) do
- v.Frame.Position = UDim2.new(0,-250-v.Position.X.Offset-script.Parent.Frame.Position.X.Offset,0,-136-v.Position.Y.Offset)
- end
- end)
- script.Parent.Frame:TweenPosition(UDim2.new(0,-100,0,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,10)
- script.Parent.IN:TweenPosition(UDim2.new(0.5,-74,0.5,100),Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,10)
- script.Parent.SPARE:TweenPosition(UDim2.new(0.5,6,0.5,100),Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,10)
- script.Parent.Frame.B:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.C:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.D:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.E:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- wait(.35)
- script.Parent.Frame.C:TweenPosition(UDim2.new(0.5, -44,0.5, -44),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.D:TweenPosition(UDim2.new(0.5, -44,0.5, 46),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.E:TweenPosition(UDim2.new(0.5, -44,0.5, 46),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- wait(.35)
- script.Parent.Frame.E:TweenPosition(UDim2.new(0.5, -134,0.5, 46),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- wait(1)
- for i=1,30 do
- for _,v in pairs(script.Parent.Frame:GetChildren()) do
- v.BackgroundTransparency=1-(i/60)
- end
- script.Parent.IN.TextTransparency=1-(i/30)
- script.Parent.SPARE.TextTransparency=1-(i/30)
- wait(.01)
- end
- wait(1.5)
- out=true
- end,o205)
- end))
- o206.Parent = o204
- o206.Position = UDim2.new(0,50,0,0)
- o206.Size = UDim2.new(1,0,1,0)
- o206.Position = UDim2.new(0,50,0,0)
- o206.BackgroundColor3 = Color3.new(1, 1, 1)
- o206.BackgroundTransparency = 1
- o206.BorderSizePixel = 0
- o207.Name = "C"
- o207.Parent = o206
- o207.Position = UDim2.new(0.5,46,0.5,-134)
- o207.Size = UDim2.new(0,88,0,88)
- o207.Position = UDim2.new(0.5,46,0.5,-134)
- o207.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- o207.BackgroundTransparency = 1
- o207.BorderSizePixel = 0
- o207.ZIndex = 3
- o207.ClipsDescendants = true
- o208.Parent = o207
- o208.Position = UDim2.new(0,-250,0,-136)
- o208.Size = UDim2.new(0,500,0,272)
- o208.Position = UDim2.new(0,-250,0,-136)
- o208.BackgroundColor3 = Color3.new(1, 1, 1)
- o208.BackgroundTransparency = 1
- o208.BorderSizePixel = 0
- o208.ClipsDescendants = true
- o209.Parent = o208
- o209.Size = UDim2.new(0,1500,0,1088)
- o209.BackgroundColor3 = Color3.new(1, 1, 1)
- o209.ZIndex = 2
- o209.Image = "rbxassetid://423455664"
- o209.ImageTransparency = 1
- o210.Name = "B"
- o210.Parent = o206
- o210.Position = UDim2.new(0.5,46,0.5,-134)
- o210.Size = UDim2.new(0,88,0,88)
- o210.Position = UDim2.new(0.5,46,0.5,-134)
- o210.BackgroundColor3 = Color3.new(1, 1, 1)
- o210.BackgroundTransparency = 1
- o210.BorderSizePixel = 0
- o210.ZIndex = 3
- o210.ClipsDescendants = true
- o211.Parent = o210
- o211.Position = UDim2.new(0,-250,0,-136)
- o211.Size = UDim2.new(0,500,0,272)
- o211.Position = UDim2.new(0,-250,0,-136)
- o211.BackgroundColor3 = Color3.new(1, 1, 1)
- o211.BackgroundTransparency = 1
- o211.BorderSizePixel = 0
- o211.ClipsDescendants = true
- o212.Parent = o211
- o212.Size = UDim2.new(0,1500,0,1088)
- o212.BackgroundColor3 = Color3.new(1, 1, 1)
- o212.ZIndex = 2
- o212.Image = "rbxassetid://423455664"
- o212.ImageTransparency = 1
- o213.Name = "D"
- o213.Parent = o206
- o213.Position = UDim2.new(0.5,46,0.5,-134)
- o213.Size = UDim2.new(0,88,0,88)
- o213.Position = UDim2.new(0.5,46,0.5,-134)
- o213.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- o213.BackgroundTransparency = 1
- o213.BorderSizePixel = 0
- o213.ZIndex = 3
- o213.ClipsDescendants = true
- o214.Parent = o213
- o214.Position = UDim2.new(0,-250,0,-136)
- o214.Size = UDim2.new(0,500,0,272)
- o214.Position = UDim2.new(0,-250,0,-136)
- o214.BackgroundColor3 = Color3.new(1, 1, 1)
- o214.BackgroundTransparency = 1
- o214.BorderSizePixel = 0
- o214.ClipsDescendants = true
- o215.Parent = o214
- o215.Size = UDim2.new(0,1500,0,1088)
- o215.BackgroundColor3 = Color3.new(1, 1, 1)
- o215.ZIndex = 2
- o215.Image = "rbxassetid://423455664"
- o215.ImageTransparency = 1
- o216.Name = "E"
- o216.Parent = o206
- o216.Position = UDim2.new(0.5,46,0.5,-134)
- o216.Size = UDim2.new(0,88,0,88)
- o216.Position = UDim2.new(0.5,46,0.5,-134)
- o216.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- o216.BackgroundTransparency = 1
- o216.BorderSizePixel = 0
- o216.ZIndex = 3
- o216.ClipsDescendants = true
- o217.Parent = o216
- o217.Position = UDim2.new(0,-250,0,-136)
- o217.Size = UDim2.new(0,500,0,272)
- o217.Position = UDim2.new(0,-250,0,-136)
- o217.BackgroundColor3 = Color3.new(1, 1, 1)
- o217.BackgroundTransparency = 1
- o217.BorderSizePixel = 0
- o217.ClipsDescendants = true
- o218.Parent = o217
- o218.Size = UDim2.new(0,1500,0,1088)
- o218.BackgroundColor3 = Color3.new(1, 1, 1)
- o218.ZIndex = 2
- o218.Image = "rbxassetid://423455664"
- o218.ImageTransparency = 1
- o219.Name = "A"
- o219.Parent = o206
- o219.Position = UDim2.new(0.5,46,0.5,-134)
- o219.Size = UDim2.new(0,88,0,88)
- o219.Position = UDim2.new(0.5,46,0.5,-134)
- o219.BackgroundColor3 = Color3.new(1, 1, 1)
- o219.BackgroundTransparency = 1
- o219.BorderSizePixel = 0
- o219.ZIndex = 3
- o219.ClipsDescendants = true
- o220.Parent = o219
- o220.Position = UDim2.new(0,-250,0,-136)
- o220.Size = UDim2.new(0,500,0,272)
- o220.Position = UDim2.new(0,-250,0,-136)
- o220.BackgroundColor3 = Color3.new(1, 1, 1)
- o220.BackgroundTransparency = 1
- o220.BorderSizePixel = 0
- o220.ClipsDescendants = true
- o221.Parent = o220
- o221.Size = UDim2.new(0,1500,0,1088)
- o221.BackgroundColor3 = Color3.new(1, 1, 1)
- o221.ZIndex = 2
- o221.Image = "rbxassetid://423455664"
- o221.ImageTransparency = 1
- o222.Name = "IN"
- o222.Parent = o204
- o222.Position = UDim2.new(0.5,76,0.5,100)
- o222.Text = "IN"
- o222.Position = UDim2.new(0.5,76,0.5,100)
- o222.BackgroundColor3 = Color3.new(1, 1, 1)
- o222.BackgroundTransparency = 1
- o222.BorderSizePixel = 0
- o222.ZIndex = 5
- o222.Font = Enum.Font.Arial
- o222.FontSize = Enum.FontSize.Size48
- o222.TextColor3 = Color3.new(1, 1, 1)
- o222.TextTransparency = 1
- o223.Name = "SPARE"
- o223.Parent = o204
- o223.Position = UDim2.new(0.5,156,0.5,100)
- o223.Text = "SPARE"
- o223.Position = UDim2.new(0.5,156,0.5,100)
- o223.BackgroundColor3 = Color3.new(1, 1, 1)
- o223.BackgroundTransparency = 1
- o223.BorderSizePixel = 0
- o223.ZIndex = 5
- o223.Font = Enum.Font.Arial
- o223.FontSize = Enum.FontSize.Size48
- o223.TextColor3 = Color3.new(1, 0.666667, 0)
- o223.TextTransparency = 1
- o224.Name = "AC6_Controls_Module"
- o224.Parent = o203
- o224.Size = UDim2.new(1,0,1,0)
- o224.BackgroundColor3 = Color3.new(1, 1, 1)
- o224.BackgroundTransparency = 1
- o224.BorderSizePixel = 0
- o225.Name = "Toggle"
- o225.Parent = o224
- o225.Position = UDim2.new(0,50,1,-30)
- o225.Size = UDim2.new(0,120,0,27)
- o225.Text = "Controls"
- o225.Position = UDim2.new(0,50,1,-30)
- o225.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- o225.BackgroundTransparency = 0.5
- o225.BorderColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- o225.BorderSizePixel = 0
- o225.Font = Enum.Font.Arial
- o225.FontSize = Enum.FontSize.Size24
- o225.TextColor3 = Color3.new(1, 1, 1)
- o225.TextStrokeColor3 = Color3.new(0.415686, 0.415686, 0.415686)
- o225.TextStrokeTransparency = 0.5
- o226.Name = "Window"
- o226.Parent = o224
- o226.Position = UDim2.new(0.5,-250,0,-500)
- o226.Size = UDim2.new(0,500,0,400)
- o226.Position = UDim2.new(0.5,-250,0,-500)
- o226.BackgroundColor3 = Color3.new(0, 0, 0)
- o226.BackgroundTransparency = 0.5
- o226.BorderSizePixel = 0
- o226.ClipsDescendants = true
- o227.Name = "Tabs"
- o227.Parent = o226
- o227.Position = UDim2.new(0,5,0,40)
- o227.Size = UDim2.new(0,490,0,20)
- o227.Position = UDim2.new(0,5,0,40)
- o227.BackgroundColor3 = Color3.new(1, 1, 1)
- o227.BackgroundTransparency = 1
- o227.BorderSizePixel = 0
- o227.ClipsDescendants = true
- o228.Name = "Line"
- o228.Parent = o227
- o228.Size = UDim2.new(1,0,0,2)
- o228.BackgroundColor3 = Color3.new(1, 1, 1)
- o228.BorderSizePixel = 0
- o229.Name = "Keyboard"
- o229.Parent = o227
- o229.Position = UDim2.new(0,5,0,0)
- o229.Size = UDim2.new(0,100,0,20)
- o229.Text = "Keyboard"
- o229.Position = UDim2.new(0,5,0,0)
- o229.BackgroundColor3 = Color3.new(1, 1, 1)
- o229.BorderSizePixel = 0
- o229.Font = Enum.Font.SourceSans
- o229.FontSize = Enum.FontSize.Size14
- o229.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o229.TextStrokeTransparency = 0.94999998807907
- o229.TextYAlignment = Enum.TextYAlignment.Bottom
- o230.Name = "Mouse"
- o230.Parent = o227
- o230.Position = UDim2.new(0,120,0,-5)
- o230.Size = UDim2.new(0,100,0,20)
- o230.Text = "Mouse"
- o230.Position = UDim2.new(0,120,0,-5)
- o230.BackgroundColor3 = Color3.new(1, 1, 1)
- o230.BorderSizePixel = 0
- o230.Font = Enum.Font.SourceSans
- o230.FontSize = Enum.FontSize.Size14
- o230.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o230.TextStrokeTransparency = 0.94999998807907
- o230.TextYAlignment = Enum.TextYAlignment.Bottom
- o231.Name = "Controller"
- o231.Parent = o227
- o231.Position = UDim2.new(0,235,0,-5)
- o231.Size = UDim2.new(0,100,0,20)
- o231.Text = "Controller"
- o231.Position = UDim2.new(0,235,0,-5)
- o231.BackgroundColor3 = Color3.new(1, 1, 1)
- o231.BorderSizePixel = 0
- o231.Font = Enum.Font.SourceSans
- o231.FontSize = Enum.FontSize.Size14
- o231.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o231.TextStrokeTransparency = 0.94999998807907
- o231.TextYAlignment = Enum.TextYAlignment.Bottom
- o232.Name = "Header"
- o232.Parent = o226
- o232.Position = UDim2.new(0,10,0,20)
- o232.Text = "Controls"
- o232.Position = UDim2.new(0,10,0,20)
- o232.BackgroundColor3 = Color3.new(1, 1, 1)
- o232.BackgroundTransparency = 1
- o232.BorderSizePixel = 0
- o232.Font = Enum.Font.SourceSansLight
- o232.FontSize = Enum.FontSize.Size32
- o232.TextColor3 = Color3.new(1, 1, 1)
- o232.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o232.TextStrokeTransparency = 0.94999998807907
- o232.TextXAlignment = Enum.TextXAlignment.Left
- o233.Name = "//INSPARE"
- o233.Parent = o226
- o233.Position = UDim2.new(1,-20,0,20)
- o233.Text = "A-Chassis 6 by //INSPARE"
- o233.Position = UDim2.new(1,-20,0,20)
- o233.BackgroundColor3 = Color3.new(1, 1, 1)
- o233.BackgroundTransparency = 1
- o233.BorderSizePixel = 0
- o233.Font = Enum.Font.SourceSansLight
- o233.FontSize = Enum.FontSize.Size14
- o233.TextColor3 = Color3.new(1, 1, 1)
- o233.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o233.TextStrokeTransparency = 0.94999998807907
- o233.TextXAlignment = Enum.TextXAlignment.Right
- o234.Name = "Content"
- o234.Parent = o226
- o234.Position = UDim2.new(0,0,0,60)
- o234.Size = UDim2.new(1,0,1,-60)
- o234.Position = UDim2.new(0,0,0,60)
- o234.BackgroundColor3 = Color3.new(1, 1, 1)
- o234.BackgroundTransparency = 1
- o234.BorderSizePixel = 0
- o235.Name = "T"
- o235.Parent = o234
- o235.Position = UDim2.new(0,150,0,20)
- o235.Text = "Throttle"
- o235.Position = UDim2.new(0,150,0,20)
- o235.BackgroundColor3 = Color3.new(1, 1, 1)
- o235.BackgroundTransparency = 1
- o235.BorderSizePixel = 0
- o235.Font = Enum.Font.SourceSansItalic
- o235.FontSize = Enum.FontSize.Size18
- o235.TextColor3 = Color3.new(1, 1, 1)
- o235.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o235.TextStrokeTransparency = 0.94999998807907
- o235.TextXAlignment = Enum.TextXAlignment.Right
- o236.Name = "T"
- o236.Parent = o234
- o236.Position = UDim2.new(0,150,0,40)
- o236.Text = "Brakes"
- o236.Position = UDim2.new(0,150,0,40)
- o236.BackgroundColor3 = Color3.new(1, 1, 1)
- o236.BackgroundTransparency = 1
- o236.BorderSizePixel = 0
- o236.Font = Enum.Font.SourceSansItalic
- o236.FontSize = Enum.FontSize.Size18
- o236.TextColor3 = Color3.new(1, 1, 1)
- o236.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o236.TextStrokeTransparency = 0.94999998807907
- o236.TextXAlignment = Enum.TextXAlignment.Right
- o237.Name = "T"
- o237.Parent = o234
- o237.Position = UDim2.new(0,150,0,60)
- o237.Text = "Steer Left"
- o237.Position = UDim2.new(0,150,0,60)
- o237.BackgroundColor3 = Color3.new(1, 1, 1)
- o237.BackgroundTransparency = 1
- o237.BorderSizePixel = 0
- o237.Font = Enum.Font.SourceSansItalic
- o237.FontSize = Enum.FontSize.Size18
- o237.TextColor3 = Color3.new(1, 1, 1)
- o237.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o237.TextStrokeTransparency = 0.94999998807907
- o237.TextXAlignment = Enum.TextXAlignment.Right
- o238.Name = "T"
- o238.Parent = o234
- o238.Position = UDim2.new(0,150,0,80)
- o238.Text = "Steer Right"
- o238.Position = UDim2.new(0,150,0,80)
- o238.BackgroundColor3 = Color3.new(1, 1, 1)
- o238.BackgroundTransparency = 1
- o238.BorderSizePixel = 0
- o238.Font = Enum.Font.SourceSansItalic
- o238.FontSize = Enum.FontSize.Size18
- o238.TextColor3 = Color3.new(1, 1, 1)
- o238.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o238.TextStrokeTransparency = 0.94999998807907
- o238.TextXAlignment = Enum.TextXAlignment.Right
- o239.Name = "T"
- o239.Parent = o234
- o239.Position = UDim2.new(0,150,0,100)
- o239.Text = "[Secondary] Throttle"
- o239.Position = UDim2.new(0,150,0,100)
- o239.BackgroundColor3 = Color3.new(1, 1, 1)
- o239.BackgroundTransparency = 1
- o239.BorderSizePixel = 0
- o239.Font = Enum.Font.SourceSansItalic
- o239.FontSize = Enum.FontSize.Size18
- o239.TextColor3 = Color3.new(1, 1, 1)
- o239.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o239.TextStrokeTransparency = 0.94999998807907
- o239.TextXAlignment = Enum.TextXAlignment.Right
- o240.Name = "T"
- o240.Parent = o234
- o240.Position = UDim2.new(0,150,0,120)
- o240.Text = "[Secondary] Brakes"
- o240.Position = UDim2.new(0,150,0,120)
- o240.BackgroundColor3 = Color3.new(1, 1, 1)
- o240.BackgroundTransparency = 1
- o240.BorderSizePixel = 0
- o240.Font = Enum.Font.SourceSansItalic
- o240.FontSize = Enum.FontSize.Size18
- o240.TextColor3 = Color3.new(1, 1, 1)
- o240.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o240.TextStrokeTransparency = 0.94999998807907
- o240.TextXAlignment = Enum.TextXAlignment.Right
- o241.Name = "T"
- o241.Parent = o234
- o241.Position = UDim2.new(0,150,0,140)
- o241.Text = "[Secondary] Steer Left"
- o241.Position = UDim2.new(0,150,0,140)
- o241.BackgroundColor3 = Color3.new(1, 1, 1)
- o241.BackgroundTransparency = 1
- o241.BorderSizePixel = 0
- o241.Font = Enum.Font.SourceSansItalic
- o241.FontSize = Enum.FontSize.Size18
- o241.TextColor3 = Color3.new(1, 1, 1)
- o241.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o241.TextStrokeTransparency = 0.94999998807907
- o241.TextXAlignment = Enum.TextXAlignment.Right
- o242.Name = "T"
- o242.Parent = o234
- o242.Position = UDim2.new(0,150,0,160)
- o242.Text = "[Secondary] SteerRight"
- o242.Position = UDim2.new(0,150,0,160)
- o242.BackgroundColor3 = Color3.new(1, 1, 1)
- o242.BackgroundTransparency = 1
- o242.BorderSizePixel = 0
- o242.Font = Enum.Font.SourceSansItalic
- o242.FontSize = Enum.FontSize.Size18
- o242.TextColor3 = Color3.new(1, 1, 1)
- o242.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o242.TextStrokeTransparency = 0.94999998807907
- o242.TextXAlignment = Enum.TextXAlignment.Right
- o243.Name = "T"
- o243.Parent = o234
- o243.Position = UDim2.new(0,150,0,180)
- o243.Text = "Shift Up"
- o243.Position = UDim2.new(0,150,0,180)
- o243.BackgroundColor3 = Color3.new(1, 1, 1)
- o243.BackgroundTransparency = 1
- o243.BorderSizePixel = 0
- o243.Font = Enum.Font.SourceSansItalic
- o243.FontSize = Enum.FontSize.Size18
- o243.TextColor3 = Color3.new(1, 1, 1)
- o243.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o243.TextStrokeTransparency = 0.94999998807907
- o243.TextXAlignment = Enum.TextXAlignment.Right
- o244.Name = "T"
- o244.Parent = o234
- o244.Position = UDim2.new(0,150,0,200)
- o244.Text = "Shift Down"
- o244.Position = UDim2.new(0,150,0,200)
- o244.BackgroundColor3 = Color3.new(1, 1, 1)
- o244.BackgroundTransparency = 1
- o244.BorderSizePixel = 0
- o244.Font = Enum.Font.SourceSansItalic
- o244.FontSize = Enum.FontSize.Size18
- o244.TextColor3 = Color3.new(1, 1, 1)
- o244.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o244.TextStrokeTransparency = 0.94999998807907
- o244.TextXAlignment = Enum.TextXAlignment.Right
- o245.Name = "T"
- o245.Parent = o234
- o245.Position = UDim2.new(0,150,0,220)
- o245.Text = "Clutch"
- o245.Position = UDim2.new(0,150,0,220)
- o245.BackgroundColor3 = Color3.new(1, 1, 1)
- o245.BackgroundTransparency = 1
- o245.BorderSizePixel = 0
- o245.Font = Enum.Font.SourceSansItalic
- o245.FontSize = Enum.FontSize.Size18
- o245.TextColor3 = Color3.new(1, 1, 1)
- o245.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o245.TextStrokeTransparency = 0.94999998807907
- o245.TextXAlignment = Enum.TextXAlignment.Right
- o246.Name = "T"
- o246.Parent = o234
- o246.Position = UDim2.new(0,150,0,240)
- o246.Text = "Handbrake"
- o246.Position = UDim2.new(0,150,0,240)
- o246.BackgroundColor3 = Color3.new(1, 1, 1)
- o246.BackgroundTransparency = 1
- o246.BorderSizePixel = 0
- o246.Font = Enum.Font.SourceSansItalic
- o246.FontSize = Enum.FontSize.Size18
- o246.TextColor3 = Color3.new(1, 1, 1)
- o246.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o246.TextStrokeTransparency = 0.94999998807907
- o246.TextXAlignment = Enum.TextXAlignment.Right
- o247.Name = "T"
- o247.Parent = o234
- o247.Position = UDim2.new(0,150,0,260)
- o247.Text = " Transmission Mode"
- o247.Position = UDim2.new(0,150,0,260)
- o247.BackgroundColor3 = Color3.new(1, 1, 1)
- o247.BackgroundTransparency = 1
- o247.BorderSizePixel = 0
- o247.Font = Enum.Font.SourceSansItalic
- o247.FontSize = Enum.FontSize.Size18
- o247.TextColor3 = Color3.new(1, 1, 1)
- o247.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o247.TextStrokeTransparency = 0.94999998807907
- o247.TextXAlignment = Enum.TextXAlignment.Right
- o248.Name = "T"
- o248.Parent = o234
- o248.Position = UDim2.new(0,150,0,280)
- o248.Text = "Toggle TCS"
- o248.Position = UDim2.new(0,150,0,280)
- o248.BackgroundColor3 = Color3.new(1, 1, 1)
- o248.BackgroundTransparency = 1
- o248.BorderSizePixel = 0
- o248.Font = Enum.Font.SourceSansItalic
- o248.FontSize = Enum.FontSize.Size18
- o248.TextColor3 = Color3.new(1, 1, 1)
- o248.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o248.TextStrokeTransparency = 0.94999998807907
- o248.TextXAlignment = Enum.TextXAlignment.Right
- o249.Name = "T"
- o249.Parent = o234
- o249.Position = UDim2.new(0,150,0,300)
- o249.Text = "Switch Mouse Control"
- o249.Position = UDim2.new(0,150,0,300)
- o249.BackgroundColor3 = Color3.new(1, 1, 1)
- o249.BackgroundTransparency = 1
- o249.BorderSizePixel = 0
- o249.Font = Enum.Font.SourceSansItalic
- o249.FontSize = Enum.FontSize.Size18
- o249.TextColor3 = Color3.new(1, 1, 1)
- o249.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o249.TextStrokeTransparency = 0.94999998807907
- o249.TextXAlignment = Enum.TextXAlignment.Right
- o250.Name = "Throttle"
- o250.Parent = o234
- o250.Position = UDim2.new(0,170,0,13)
- o250.Size = UDim2.new(0,300,0,15)
- o250.Position = UDim2.new(0,170,0,13)
- o250.BackgroundColor3 = Color3.new(0, 0, 0)
- o250.BackgroundTransparency = 0.5
- o250.BorderSizePixel = 0
- o250.Font = Enum.Font.SourceSans
- o250.FontSize = Enum.FontSize.Size14
- o250.TextColor3 = Color3.new(1, 1, 1)
- o251.Name = "Brake"
- o251.Parent = o234
- o251.Position = UDim2.new(0,170,0,33)
- o251.Size = UDim2.new(0,300,0,15)
- o251.Position = UDim2.new(0,170,0,33)
- o251.BackgroundColor3 = Color3.new(0, 0, 0)
- o251.BackgroundTransparency = 0.5
- o251.BorderSizePixel = 0
- o251.Font = Enum.Font.SourceSans
- o251.FontSize = Enum.FontSize.Size14
- o251.TextColor3 = Color3.new(1, 1, 1)
- o252.Name = "SteerLeft"
- o252.Parent = o234
- o252.Position = UDim2.new(0,170,0,53)
- o252.Size = UDim2.new(0,300,0,15)
- o252.Position = UDim2.new(0,170,0,53)
- o252.BackgroundColor3 = Color3.new(0, 0, 0)
- o252.BackgroundTransparency = 0.5
- o252.BorderSizePixel = 0
- o252.Font = Enum.Font.SourceSans
- o252.FontSize = Enum.FontSize.Size14
- o252.TextColor3 = Color3.new(1, 1, 1)
- o253.Name = "SteerRight"
- o253.Parent = o234
- o253.Position = UDim2.new(0,170,0,73)
- o253.Size = UDim2.new(0,300,0,15)
- o253.Position = UDim2.new(0,170,0,73)
- o253.BackgroundColor3 = Color3.new(0, 0, 0)
- o253.BackgroundTransparency = 0.5
- o253.BorderSizePixel = 0
- o253.Font = Enum.Font.SourceSans
- o253.FontSize = Enum.FontSize.Size14
- o253.TextColor3 = Color3.new(1, 1, 1)
- o254.Name = "Throttle2"
- o254.Parent = o234
- o254.Position = UDim2.new(0,170,0,93)
- o254.Size = UDim2.new(0,300,0,15)
- o254.Position = UDim2.new(0,170,0,93)
- o254.BackgroundColor3 = Color3.new(0, 0, 0)
- o254.BackgroundTransparency = 0.5
- o254.BorderSizePixel = 0
- o254.Font = Enum.Font.SourceSans
- o254.FontSize = Enum.FontSize.Size14
- o254.TextColor3 = Color3.new(1, 1, 1)
- o255.Name = "Brake2"
- o255.Parent = o234
- o255.Position = UDim2.new(0,170,0,113)
- o255.Size = UDim2.new(0,300,0,15)
- o255.Position = UDim2.new(0,170,0,113)
- o255.BackgroundColor3 = Color3.new(0, 0, 0)
- o255.BackgroundTransparency = 0.5
- o255.BorderSizePixel = 0
- o255.Font = Enum.Font.SourceSans
- o255.FontSize = Enum.FontSize.Size14
- o255.TextColor3 = Color3.new(1, 1, 1)
- o256.Name = "SteerLeft2"
- o256.Parent = o234
- o256.Position = UDim2.new(0,170,0,133)
- o256.Size = UDim2.new(0,300,0,15)
- o256.Position = UDim2.new(0,170,0,133)
- o256.BackgroundColor3 = Color3.new(0, 0, 0)
- o256.BackgroundTransparency = 0.5
- o256.BorderSizePixel = 0
- o256.Font = Enum.Font.SourceSans
- o256.FontSize = Enum.FontSize.Size14
- o256.TextColor3 = Color3.new(1, 1, 1)
- o257.Name = "SteerRight2"
- o257.Parent = o234
- o257.Position = UDim2.new(0,170,0,153)
- o257.Size = UDim2.new(0,300,0,15)
- o257.Position = UDim2.new(0,170,0,153)
- o257.BackgroundColor3 = Color3.new(0, 0, 0)
- o257.BackgroundTransparency = 0.5
- o257.BorderSizePixel = 0
- o257.Font = Enum.Font.SourceSans
- o257.FontSize = Enum.FontSize.Size14
- o257.TextColor3 = Color3.new(1, 1, 1)
- o258.Name = "ShiftUp"
- o258.Parent = o234
- o258.Position = UDim2.new(0,170,0,173)
- o258.Size = UDim2.new(0,300,0,15)
- o258.Position = UDim2.new(0,170,0,173)
- o258.BackgroundColor3 = Color3.new(0, 0, 0)
- o258.BackgroundTransparency = 0.5
- o258.BorderSizePixel = 0
- o258.Font = Enum.Font.SourceSans
- o258.FontSize = Enum.FontSize.Size14
- o258.TextColor3 = Color3.new(1, 1, 1)
- o259.Name = "ShiftDown"
- o259.Parent = o234
- o259.Position = UDim2.new(0,170,0,193)
- o259.Size = UDim2.new(0,300,0,15)
- o259.Position = UDim2.new(0,170,0,193)
- o259.BackgroundColor3 = Color3.new(0, 0, 0)
- o259.BackgroundTransparency = 0.5
- o259.BorderSizePixel = 0
- o259.Font = Enum.Font.SourceSans
- o259.FontSize = Enum.FontSize.Size14
- o259.TextColor3 = Color3.new(1, 1, 1)
- o260.Name = "Clutch"
- o260.Parent = o234
- o260.Position = UDim2.new(0,170,0,213)
- o260.Size = UDim2.new(0,300,0,15)
- o260.Position = UDim2.new(0,170,0,213)
- o260.BackgroundColor3 = Color3.new(0, 0, 0)
- o260.BackgroundTransparency = 0.5
- o260.BorderSizePixel = 0
- o260.Font = Enum.Font.SourceSans
- o260.FontSize = Enum.FontSize.Size14
- o260.TextColor3 = Color3.new(1, 1, 1)
- o261.Name = "PBrake"
- o261.Parent = o234
- o261.Position = UDim2.new(0,170,0,233)
- o261.Size = UDim2.new(0,300,0,15)
- o261.Position = UDim2.new(0,170,0,233)
- o261.BackgroundColor3 = Color3.new(0, 0, 0)
- o261.BackgroundTransparency = 0.5
- o261.BorderSizePixel = 0
- o261.Font = Enum.Font.SourceSans
- o261.FontSize = Enum.FontSize.Size14
- o261.TextColor3 = Color3.new(1, 1, 1)
- o262.Name = "ToggleTransMode"
- o262.Parent = o234
- o262.Position = UDim2.new(0,170,0,253)
- o262.Size = UDim2.new(0,300,0,15)
- o262.Position = UDim2.new(0,170,0,253)
- o262.BackgroundColor3 = Color3.new(0, 0, 0)
- o262.BackgroundTransparency = 0.5
- o262.BorderSizePixel = 0
- o262.Font = Enum.Font.SourceSans
- o262.FontSize = Enum.FontSize.Size14
- o262.TextColor3 = Color3.new(1, 1, 1)
- o263.Name = "ToggleTCS"
- o263.Parent = o234
- o263.Position = UDim2.new(0,170,0,273)
- o263.Size = UDim2.new(0,300,0,15)
- o263.Position = UDim2.new(0,170,0,273)
- o263.BackgroundColor3 = Color3.new(0, 0, 0)
- o263.BackgroundTransparency = 0.5
- o263.BorderSizePixel = 0
- o263.Font = Enum.Font.SourceSans
- o263.FontSize = Enum.FontSize.Size14
- o263.TextColor3 = Color3.new(1, 1, 1)
- o264.Name = "ToggleMouseDrive"
- o264.Parent = o234
- o264.Position = UDim2.new(0,170,0,293)
- o264.Size = UDim2.new(0,300,0,15)
- o264.Position = UDim2.new(0,170,0,293)
- o264.BackgroundColor3 = Color3.new(0, 0, 0)
- o264.BackgroundTransparency = 0.5
- o264.BorderSizePixel = 0
- o264.Font = Enum.Font.SourceSans
- o264.FontSize = Enum.FontSize.Size14
- o264.TextColor3 = Color3.new(1, 1, 1)
- o265.Name = "T"
- o265.Parent = o234
- o265.Position = UDim2.new(1,150,0,20)
- o265.Text = "Throttle"
- o265.Position = UDim2.new(1,150,0,20)
- o265.BackgroundColor3 = Color3.new(1, 1, 1)
- o265.BackgroundTransparency = 1
- o265.BorderSizePixel = 0
- o265.Font = Enum.Font.SourceSansItalic
- o265.FontSize = Enum.FontSize.Size18
- o265.TextColor3 = Color3.new(1, 1, 1)
- o265.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o265.TextStrokeTransparency = 0.94999998807907
- o265.TextXAlignment = Enum.TextXAlignment.Right
- o266.Name = "T"
- o266.Parent = o234
- o266.Position = UDim2.new(1,150,0,40)
- o266.Text = "Brakes"
- o266.Position = UDim2.new(1,150,0,40)
- o266.BackgroundColor3 = Color3.new(1, 1, 1)
- o266.BackgroundTransparency = 1
- o266.BorderSizePixel = 0
- o266.Font = Enum.Font.SourceSansItalic
- o266.FontSize = Enum.FontSize.Size18
- o266.TextColor3 = Color3.new(1, 1, 1)
- o266.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o266.TextStrokeTransparency = 0.94999998807907
- o266.TextXAlignment = Enum.TextXAlignment.Right
- o267.Name = "T"
- o267.Parent = o234
- o267.Position = UDim2.new(1,150,0,60)
- o267.Text = "Steer"
- o267.Position = UDim2.new(1,150,0,60)
- o267.BackgroundColor3 = Color3.new(1, 1, 1)
- o267.BackgroundTransparency = 1
- o267.BorderSizePixel = 0
- o267.Font = Enum.Font.SourceSansItalic
- o267.FontSize = Enum.FontSize.Size18
- o267.TextColor3 = Color3.new(1, 1, 1)
- o267.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o267.TextStrokeTransparency = 0.94999998807907
- o267.TextXAlignment = Enum.TextXAlignment.Right
- o268.Name = "T"
- o268.Parent = o234
- o268.Position = UDim2.new(1,150,0,80)
- o268.Text = "Shift Up"
- o268.Position = UDim2.new(1,150,0,80)
- o268.BackgroundColor3 = Color3.new(1, 1, 1)
- o268.BackgroundTransparency = 1
- o268.BorderSizePixel = 0
- o268.Font = Enum.Font.SourceSansItalic
- o268.FontSize = Enum.FontSize.Size18
- o268.TextColor3 = Color3.new(1, 1, 1)
- o268.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o268.TextStrokeTransparency = 0.94999998807907
- o268.TextXAlignment = Enum.TextXAlignment.Right
- o269.Name = "T"
- o269.Parent = o234
- o269.Position = UDim2.new(1,150,0,100)
- o269.Text = "Shift Down"
- o269.Position = UDim2.new(1,150,0,100)
- o269.BackgroundColor3 = Color3.new(1, 1, 1)
- o269.BackgroundTransparency = 1
- o269.BorderSizePixel = 0
- o269.Font = Enum.Font.SourceSansItalic
- o269.FontSize = Enum.FontSize.Size18
- o269.TextColor3 = Color3.new(1, 1, 1)
- o269.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o269.TextStrokeTransparency = 0.94999998807907
- o269.TextXAlignment = Enum.TextXAlignment.Right
- o270.Name = "T"
- o270.Parent = o234
- o270.Position = UDim2.new(1,150,0,120)
- o270.Text = "Clutch"
- o270.Position = UDim2.new(1,150,0,120)
- o270.BackgroundColor3 = Color3.new(1, 1, 1)
- o270.BackgroundTransparency = 1
- o270.BorderSizePixel = 0
- o270.Font = Enum.Font.SourceSansItalic
- o270.FontSize = Enum.FontSize.Size18
- o270.TextColor3 = Color3.new(1, 1, 1)
- o270.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o270.TextStrokeTransparency = 0.94999998807907
- o270.TextXAlignment = Enum.TextXAlignment.Right
- o271.Name = "T"
- o271.Parent = o234
- o271.Position = UDim2.new(1,150,0,140)
- o271.Text = "Handbrake"
- o271.Position = UDim2.new(1,150,0,140)
- o271.BackgroundColor3 = Color3.new(1, 1, 1)
- o271.BackgroundTransparency = 1
- o271.BorderSizePixel = 0
- o271.Font = Enum.Font.SourceSansItalic
- o271.FontSize = Enum.FontSize.Size18
- o271.TextColor3 = Color3.new(1, 1, 1)
- o271.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o271.TextStrokeTransparency = 0.94999998807907
- o271.TextXAlignment = Enum.TextXAlignment.Right
- o272.Name = "MouseThrottle"
- o272.Parent = o234
- o272.Position = UDim2.new(1,170,0,13)
- o272.Size = UDim2.new(0,300,0,15)
- o272.Position = UDim2.new(1,170,0,13)
- o272.BackgroundColor3 = Color3.new(0, 0, 0)
- o272.BackgroundTransparency = 0.5
- o272.BorderSizePixel = 0
- o272.Font = Enum.Font.SourceSans
- o272.FontSize = Enum.FontSize.Size14
- o272.TextColor3 = Color3.new(1, 1, 1)
- o273.Name = "MouseBrake"
- o273.Parent = o234
- o273.Position = UDim2.new(1,170,0,33)
- o273.Size = UDim2.new(0,300,0,15)
- o273.Position = UDim2.new(1,170,0,33)
- o273.BackgroundColor3 = Color3.new(0, 0, 0)
- o273.BackgroundTransparency = 0.5
- o273.BorderSizePixel = 0
- o273.Font = Enum.Font.SourceSans
- o273.FontSize = Enum.FontSize.Size14
- o273.TextColor3 = Color3.new(1, 1, 1)
- o274.Name = "MouseSteer"
- o274.Parent = o234
- o274.Position = UDim2.new(1,170,0,53)
- o274.Size = UDim2.new(0,300,0,15)
- o274.Text = "MouseMove"
- o274.Position = UDim2.new(1,170,0,53)
- o274.Active = false
- o274.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- o274.BackgroundTransparency = 0.5
- o274.BorderSizePixel = 0
- o274.Font = Enum.Font.SourceSans
- o274.FontSize = Enum.FontSize.Size14
- o274.TextColor3 = Color3.new(0.690196, 0.690196, 0.690196)
- o275.Name = "MouseShiftUp"
- o275.Parent = o234
- o275.Position = UDim2.new(1,170,0,73)
- o275.Size = UDim2.new(0,300,0,15)
- o275.Position = UDim2.new(1,170,0,73)
- o275.Active = false
- o275.BackgroundColor3 = Color3.new(0, 0, 0)
- o275.BackgroundTransparency = 0.5
- o275.BorderSizePixel = 0
- o275.Font = Enum.Font.SourceSans
- o275.FontSize = Enum.FontSize.Size14
- o275.TextColor3 = Color3.new(1, 1, 1)
- o276.Name = "MouseShiftDown"
- o276.Parent = o234
- o276.Position = UDim2.new(1,170,0,93)
- o276.Size = UDim2.new(0,300,0,15)
- o276.Position = UDim2.new(1,170,0,93)
- o276.Active = false
- o276.BackgroundColor3 = Color3.new(0, 0, 0)
- o276.BackgroundTransparency = 0.5
- o276.BorderSizePixel = 0
- o276.Font = Enum.Font.SourceSans
- o276.FontSize = Enum.FontSize.Size14
- o276.TextColor3 = Color3.new(1, 1, 1)
- o277.Name = "MouseClutch"
- o277.Parent = o234
- o277.Position = UDim2.new(1,170,0,113)
- o277.Size = UDim2.new(0,300,0,15)
- o277.Position = UDim2.new(1,170,0,113)
- o277.Active = false
- o277.BackgroundColor3 = Color3.new(0, 0, 0)
- o277.BackgroundTransparency = 0.5
- o277.BorderSizePixel = 0
- o277.Font = Enum.Font.SourceSans
- o277.FontSize = Enum.FontSize.Size14
- o277.TextColor3 = Color3.new(1, 1, 1)
- o278.Name = "MousePBrake"
- o278.Parent = o234
- o278.Position = UDim2.new(1,170,0,133)
- o278.Size = UDim2.new(0,300,0,15)
- o278.Position = UDim2.new(1,170,0,133)
- o278.Active = false
- o278.BackgroundColor3 = Color3.new(0, 0, 0)
- o278.BackgroundTransparency = 0.5
- o278.BorderSizePixel = 0
- o278.Font = Enum.Font.SourceSans
- o278.FontSize = Enum.FontSize.Size14
- o278.TextColor3 = Color3.new(1, 1, 1)
- o279.Name = "T"
- o279.Parent = o234
- o279.Position = UDim2.new(2,150,0,20)
- o279.Text = "Throttle"
- o279.Position = UDim2.new(2,150,0,20)
- o279.BackgroundColor3 = Color3.new(1, 1, 1)
- o279.BackgroundTransparency = 1
- o279.BorderSizePixel = 0
- o279.Font = Enum.Font.SourceSansItalic
- o279.FontSize = Enum.FontSize.Size18
- o279.TextColor3 = Color3.new(1, 1, 1)
- o279.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o279.TextStrokeTransparency = 0.94999998807907
- o279.TextXAlignment = Enum.TextXAlignment.Right
- o280.Name = "T"
- o280.Parent = o234
- o280.Position = UDim2.new(2,150,0,40)
- o280.Text = "Brakes"
- o280.Position = UDim2.new(2,150,0,40)
- o280.BackgroundColor3 = Color3.new(1, 1, 1)
- o280.BackgroundTransparency = 1
- o280.BorderSizePixel = 0
- o280.Font = Enum.Font.SourceSansItalic
- o280.FontSize = Enum.FontSize.Size18
- o280.TextColor3 = Color3.new(1, 1, 1)
- o280.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o280.TextStrokeTransparency = 0.94999998807907
- o280.TextXAlignment = Enum.TextXAlignment.Right
- o281.Name = "T"
- o281.Parent = o234
- o281.Position = UDim2.new(2,150,0,60)
- o281.Text = "Steer"
- o281.Position = UDim2.new(2,150,0,60)
- o281.BackgroundColor3 = Color3.new(1, 1, 1)
- o281.BackgroundTransparency = 1
- o281.BorderSizePixel = 0
- o281.Font = Enum.Font.SourceSansItalic
- o281.FontSize = Enum.FontSize.Size18
- o281.TextColor3 = Color3.new(1, 1, 1)
- o281.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o281.TextStrokeTransparency = 0.94999998807907
- o281.TextXAlignment = Enum.TextXAlignment.Right
- o282.Name = "T"
- o282.Parent = o234
- o282.Position = UDim2.new(2,150,0,80)
- o282.Text = "Shift Up"
- o282.Position = UDim2.new(2,150,0,80)
- o282.BackgroundColor3 = Color3.new(1, 1, 1)
- o282.BackgroundTransparency = 1
- o282.BorderSizePixel = 0
- o282.Font = Enum.Font.SourceSansItalic
- o282.FontSize = Enum.FontSize.Size18
- o282.TextColor3 = Color3.new(1, 1, 1)
- o282.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o282.TextStrokeTransparency = 0.94999998807907
- o282.TextXAlignment = Enum.TextXAlignment.Right
- o283.Name = "T"
- o283.Parent = o234
- o283.Position = UDim2.new(2,150,0,100)
- o283.Text = "Shift Down"
- o283.Position = UDim2.new(2,150,0,100)
- o283.BackgroundColor3 = Color3.new(1, 1, 1)
- o283.BackgroundTransparency = 1
- o283.BorderSizePixel = 0
- o283.Font = Enum.Font.SourceSansItalic
- o283.FontSize = Enum.FontSize.Size18
- o283.TextColor3 = Color3.new(1, 1, 1)
- o283.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o283.TextStrokeTransparency = 0.94999998807907
- o283.TextXAlignment = Enum.TextXAlignment.Right
- o284.Name = "T"
- o284.Parent = o234
- o284.Position = UDim2.new(2,150,0,120)
- o284.Text = "Clutch"
- o284.Position = UDim2.new(2,150,0,120)
- o284.BackgroundColor3 = Color3.new(1, 1, 1)
- o284.BackgroundTransparency = 1
- o284.BorderSizePixel = 0
- o284.Font = Enum.Font.SourceSansItalic
- o284.FontSize = Enum.FontSize.Size18
- o284.TextColor3 = Color3.new(1, 1, 1)
- o284.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o284.TextStrokeTransparency = 0.94999998807907
- o284.TextXAlignment = Enum.TextXAlignment.Right
- o285.Name = "T"
- o285.Parent = o234
- o285.Position = UDim2.new(2,150,0,140)
- o285.Text = "Handbrake"
- o285.Position = UDim2.new(2,150,0,140)
- o285.BackgroundColor3 = Color3.new(1, 1, 1)
- o285.BackgroundTransparency = 1
- o285.BorderSizePixel = 0
- o285.Font = Enum.Font.SourceSansItalic
- o285.FontSize = Enum.FontSize.Size18
- o285.TextColor3 = Color3.new(1, 1, 1)
- o285.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o285.TextStrokeTransparency = 0.94999998807907
- o285.TextXAlignment = Enum.TextXAlignment.Right
- o286.Name = "T"
- o286.Parent = o234
- o286.Position = UDim2.new(2,150,0,180)
- o286.Text = "Toggle TCS"
- o286.Position = UDim2.new(2,150,0,180)
- o286.BackgroundColor3 = Color3.new(1, 1, 1)
- o286.BackgroundTransparency = 1
- o286.BorderSizePixel = 0
- o286.Font = Enum.Font.SourceSansItalic
- o286.FontSize = Enum.FontSize.Size18
- o286.TextColor3 = Color3.new(1, 1, 1)
- o286.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o286.TextStrokeTransparency = 0.94999998807907
- o286.TextXAlignment = Enum.TextXAlignment.Right
- o287.Name = "T"
- o287.Parent = o234
- o287.Position = UDim2.new(2,150,0,160)
- o287.Text = "Transmission Mode"
- o287.Position = UDim2.new(2,150,0,160)
- o287.BackgroundColor3 = Color3.new(1, 1, 1)
- o287.BackgroundTransparency = 1
- o287.BorderSizePixel = 0
- o287.Font = Enum.Font.SourceSansItalic
- o287.FontSize = Enum.FontSize.Size18
- o287.TextColor3 = Color3.new(1, 1, 1)
- o287.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o287.TextStrokeTransparency = 0.94999998807907
- o287.TextXAlignment = Enum.TextXAlignment.Right
- o288.Name = "ContlrThrottle"
- o288.Parent = o234
- o288.Position = UDim2.new(2,170,0,13)
- o288.Size = UDim2.new(0,300,0,15)
- o288.Position = UDim2.new(2,170,0,13)
- o288.BackgroundColor3 = Color3.new(0, 0, 0)
- o288.BackgroundTransparency = 0.5
- o288.BorderSizePixel = 0
- o288.Font = Enum.Font.SourceSans
- o288.FontSize = Enum.FontSize.Size14
- o288.TextColor3 = Color3.new(1, 1, 1)
- o289.Name = "ContlrBrake"
- o289.Parent = o234
- o289.Position = UDim2.new(2,170,0,33)
- o289.Size = UDim2.new(0,300,0,15)
- o289.Position = UDim2.new(2,170,0,33)
- o289.BackgroundColor3 = Color3.new(0, 0, 0)
- o289.BackgroundTransparency = 0.5
- o289.BorderSizePixel = 0
- o289.Font = Enum.Font.SourceSans
- o289.FontSize = Enum.FontSize.Size14
- o289.TextColor3 = Color3.new(1, 1, 1)
- o290.Name = "ContlrSteer"
- o290.Parent = o234
- o290.Position = UDim2.new(2,170,0,53)
- o290.Size = UDim2.new(0,300,0,15)
- o290.Position = UDim2.new(2,170,0,53)
- o290.BackgroundColor3 = Color3.new(0, 0, 0)
- o290.BackgroundTransparency = 0.5
- o290.BorderSizePixel = 0
- o290.Font = Enum.Font.SourceSans
- o290.FontSize = Enum.FontSize.Size14
- o290.TextColor3 = Color3.new(1, 1, 1)
- o291.Name = "ContlrShiftUp"
- o291.Parent = o234
- o291.Position = UDim2.new(2,170,0,73)
- o291.Size = UDim2.new(0,300,0,15)
- o291.Position = UDim2.new(2,170,0,73)
- o291.BackgroundColor3 = Color3.new(0, 0, 0)
- o291.BackgroundTransparency = 0.5
- o291.BorderSizePixel = 0
- o291.Font = Enum.Font.SourceSans
- o291.FontSize = Enum.FontSize.Size14
- o291.TextColor3 = Color3.new(1, 1, 1)
- o292.Name = "ContlrShiftDown"
- o292.Parent = o234
- o292.Position = UDim2.new(2,170,0,93)
- o292.Size = UDim2.new(0,300,0,15)
- o292.Position = UDim2.new(2,170,0,93)
- o292.BackgroundColor3 = Color3.new(0, 0, 0)
- o292.BackgroundTransparency = 0.5
- o292.BorderSizePixel = 0
- o292.Font = Enum.Font.SourceSans
- o292.FontSize = Enum.FontSize.Size14
- o292.TextColor3 = Color3.new(1, 1, 1)
- o293.Name = "ContlrClutch"
- o293.Parent = o234
- o293.Position = UDim2.new(2,170,0,113)
- o293.Size = UDim2.new(0,300,0,15)
- o293.Position = UDim2.new(2,170,0,113)
- o293.BackgroundColor3 = Color3.new(0, 0, 0)
- o293.BackgroundTransparency = 0.5
- o293.BorderSizePixel = 0
- o293.Font = Enum.Font.SourceSans
- o293.FontSize = Enum.FontSize.Size14
- o293.TextColor3 = Color3.new(1, 1, 1)
- o294.Name = "ContlrPBrake"
- o294.Parent = o234
- o294.Position = UDim2.new(2,170,0,133)
- o294.Size = UDim2.new(0,300,0,15)
- o294.Position = UDim2.new(2,170,0,133)
- o294.BackgroundColor3 = Color3.new(0, 0, 0)
- o294.BackgroundTransparency = 0.5
- o294.BorderSizePixel = 0
- o294.Font = Enum.Font.SourceSans
- o294.FontSize = Enum.FontSize.Size14
- o294.TextColor3 = Color3.new(1, 1, 1)
- o295.Name = "ContlrToggleTMode"
- o295.Parent = o234
- o295.Position = UDim2.new(2,170,0,153)
- o295.Size = UDim2.new(0,300,0,15)
- o295.Position = UDim2.new(2,170,0,153)
- o295.BackgroundColor3 = Color3.new(0, 0, 0)
- o295.BackgroundTransparency = 0.5
- o295.BorderSizePixel = 0
- o295.Font = Enum.Font.SourceSans
- o295.FontSize = Enum.FontSize.Size14
- o295.TextColor3 = Color3.new(1, 1, 1)
- o296.Name = "ContlrToggleTCS"
- o296.Parent = o234
- o296.Position = UDim2.new(2,170,0,173)
- o296.Size = UDim2.new(0,300,0,15)
- o296.Position = UDim2.new(2,170,0,173)
- o296.BackgroundColor3 = Color3.new(0, 0, 0)
- o296.BackgroundTransparency = 0.5
- o296.BorderSizePixel = 0
- o296.Font = Enum.Font.SourceSans
- o296.FontSize = Enum.FontSize.Size14
- o296.TextColor3 = Color3.new(1, 1, 1)
- o297.Name = "T"
- o297.Parent = o234
- o297.Position = UDim2.new(1,150,0,160)
- o297.Text = "Deadzone"
- o297.Position = UDim2.new(1,150,0,160)
- o297.BackgroundColor3 = Color3.new(1, 1, 1)
- o297.BackgroundTransparency = 1
- o297.BorderSizePixel = 0
- o297.Font = Enum.Font.SourceSansItalic
- o297.FontSize = Enum.FontSize.Size18
- o297.TextColor3 = Color3.new(1, 1, 1)
- o297.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o297.TextStrokeTransparency = 0.94999998807907
- o297.TextXAlignment = Enum.TextXAlignment.Right
- o298.Name = "T"
- o298.Parent = o234
- o298.Position = UDim2.new(1,150,0,180)
- o298.Text = "Control Width"
- o298.Position = UDim2.new(1,150,0,180)
- o298.BackgroundColor3 = Color3.new(1, 1, 1)
- o298.BackgroundTransparency = 1
- o298.BorderSizePixel = 0
- o298.Font = Enum.Font.SourceSansItalic
- o298.FontSize = Enum.FontSize.Size18
- o298.TextColor3 = Color3.new(1, 1, 1)
- o298.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o298.TextStrokeTransparency = 0.94999998807907
- o298.TextXAlignment = Enum.TextXAlignment.Right
- o299.Name = "T"
- o299.Parent = o234
- o299.Position = UDim2.new(2,150,0,200)
- o299.Text = "Left Deadzone"
- o299.Position = UDim2.new(2,150,0,200)
- o299.BackgroundColor3 = Color3.new(1, 1, 1)
- o299.BackgroundTransparency = 1
- o299.BorderSizePixel = 0
- o299.Font = Enum.Font.SourceSansItalic
- o299.FontSize = Enum.FontSize.Size18
- o299.TextColor3 = Color3.new(1, 1, 1)
- o299.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o299.TextStrokeTransparency = 0.94999998807907
- o299.TextXAlignment = Enum.TextXAlignment.Right
- o300.Name = "T"
- o300.Parent = o234
- o300.Position = UDim2.new(2,150,0,220)
- o300.Text = "Right Deadzone"
- o300.Position = UDim2.new(2,150,0,220)
- o300.BackgroundColor3 = Color3.new(1, 1, 1)
- o300.BackgroundTransparency = 1
- o300.BorderSizePixel = 0
- o300.Font = Enum.Font.SourceSansItalic
- o300.FontSize = Enum.FontSize.Size18
- o300.TextColor3 = Color3.new(1, 1, 1)
- o300.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o300.TextStrokeTransparency = 0.94999998807907
- o300.TextXAlignment = Enum.TextXAlignment.Right
- o301.Name = "MSteerDZone"
- o301.Parent = o234
- o301.Position = UDim2.new(1,200,0,160)
- o301.Text = "100%"
- o301.Position = UDim2.new(1,200,0,160)
- o301.BackgroundColor3 = Color3.new(1, 1, 1)
- o301.BackgroundTransparency = 1
- o301.BorderSizePixel = 0
- o301.Font = Enum.Font.SourceSansItalic
- o301.FontSize = Enum.FontSize.Size18
- o301.TextColor3 = Color3.new(1, 1, 1)
- o301.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o301.TextStrokeTransparency = 0.94999998807907
- o301.TextXAlignment = Enum.TextXAlignment.Right
- o302.Name = "S"
- o302.Parent = o301
- o302.Position = UDim2.new(0,10,0,2)
- o302.Size = UDim2.new(0,260,0,3)
- o302.Position = UDim2.new(0,10,0,2)
- o302.CanvasSize = UDim2.new(0,5200,0,0)
- o302.BackgroundColor3 = Color3.new(0, 0, 0)
- o302.BackgroundTransparency = 0.5
- o302.BorderSizePixel = 0
- o302.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o302.ScrollBarThickness = 8
- o302.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o303.Name = "MSteerWidth"
- o303.Parent = o234
- o303.Position = UDim2.new(1,200,0,180)
- o303.Text = "100%"
- o303.Position = UDim2.new(1,200,0,180)
- o303.BackgroundColor3 = Color3.new(1, 1, 1)
- o303.BackgroundTransparency = 1
- o303.BorderSizePixel = 0
- o303.Font = Enum.Font.SourceSansItalic
- o303.FontSize = Enum.FontSize.Size18
- o303.TextColor3 = Color3.new(1, 1, 1)
- o303.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o303.TextStrokeTransparency = 0.94999998807907
- o303.TextXAlignment = Enum.TextXAlignment.Right
- o304.Name = "S"
- o304.Parent = o303
- o304.Position = UDim2.new(0,10,0,2)
- o304.Size = UDim2.new(0,260,0,3)
- o304.Position = UDim2.new(0,10,0,2)
- o304.CanvasSize = UDim2.new(0,5200,0,0)
- o304.BackgroundColor3 = Color3.new(0, 0, 0)
- o304.BackgroundTransparency = 0.5
- o304.BorderSizePixel = 0
- o304.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o304.ScrollBarThickness = 8
- o304.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o305.Name = "ControlLDZone"
- o305.Parent = o234
- o305.Position = UDim2.new(2,200,0,200)
- o305.Text = "100%"
- o305.Position = UDim2.new(2,200,0,200)
- o305.BackgroundColor3 = Color3.new(1, 1, 1)
- o305.BackgroundTransparency = 1
- o305.BorderSizePixel = 0
- o305.Font = Enum.Font.SourceSansItalic
- o305.FontSize = Enum.FontSize.Size18
- o305.TextColor3 = Color3.new(1, 1, 1)
- o305.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o305.TextStrokeTransparency = 0.94999998807907
- o305.TextXAlignment = Enum.TextXAlignment.Right
- o306.Name = "S"
- o306.Parent = o305
- o306.Position = UDim2.new(0,10,0,2)
- o306.Size = UDim2.new(0,260,0,3)
- o306.Position = UDim2.new(0,10,0,2)
- o306.CanvasSize = UDim2.new(0,5200,0,0)
- o306.BackgroundColor3 = Color3.new(0, 0, 0)
- o306.BackgroundTransparency = 0.5
- o306.BorderSizePixel = 0
- o306.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o306.ScrollBarThickness = 8
- o306.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o307.Name = "ControlRDZone"
- o307.Parent = o234
- o307.Position = UDim2.new(2,200,0,220)
- o307.Text = "100%"
- o307.Position = UDim2.new(2,200,0,220)
- o307.BackgroundColor3 = Color3.new(1, 1, 1)
- o307.BackgroundTransparency = 1
- o307.BorderSizePixel = 0
- o307.Font = Enum.Font.SourceSansItalic
- o307.FontSize = Enum.FontSize.Size18
- o307.TextColor3 = Color3.new(1, 1, 1)
- o307.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o307.TextStrokeTransparency = 0.94999998807907
- o307.TextXAlignment = Enum.TextXAlignment.Right
- o308.Name = "S"
- o308.Parent = o307
- o308.Position = UDim2.new(0,10,0,2)
- o308.Size = UDim2.new(0,260,0,3)
- o308.Position = UDim2.new(0,10,0,2)
- o308.CanvasSize = UDim2.new(0,5200,0,0)
- o308.BackgroundColor3 = Color3.new(0, 0, 0)
- o308.BackgroundTransparency = 0.5
- o308.BorderSizePixel = 0
- o308.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o308.ScrollBarThickness = 8
- o308.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- o309.Name = "Error"
- o309.Parent = o226
- o309.Position = UDim2.new(0.5,0,0,20)
- o309.Text = "Invalid Input"
- o309.Position = UDim2.new(0.5,0,0,20)
- o309.Visible = false
- o309.BackgroundColor3 = Color3.new(1, 1, 1)
- o309.BackgroundTransparency = 1
- o309.BorderSizePixel = 0
- o309.Font = Enum.Font.SourceSansItalic
- o309.FontSize = Enum.FontSize.Size18
- o309.TextColor3 = Color3.new(1, 0, 0)
- o309.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- o309.TextStrokeTransparency = 0.94999998807907
- o310.Name = "Overlay"
- o310.Parent = o226
- o310.Size = UDim2.new(1,0,1,0)
- o310.Text = "[Press a key to assign or Enter to cancel]"
- o310.Visible = false
- o310.BackgroundColor3 = Color3.new(1, 1, 1)
- o310.BackgroundTransparency = 0.5
- o310.BorderSizePixel = 0
- o310.ZIndex = 2
- o310.Font = Enum.Font.SourceSansItalic
- o310.FontSize = Enum.FontSize.Size28
- o310.TextColor3 = Color3.new(1, 1, 1)
- o310.TextStrokeColor3 = Color3.new(0.184314, 0.184314, 0.184314)
- o310.TextStrokeTransparency = 0
- o311.Name = "Controls_AC6"
- o311.Parent = o224
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --[[
- ___ _______ _
- / _ |____/ ___/ / ___ ____ ___ (_)__
- / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
- /_/ |_| \___/_//_/\_,_/___/___/_/___/
- SecondLogic @ Inspare
- ]]
- ---Controls UI
- script.Parent.Parent:WaitForChild("Controls")
- script.Parent.Parent:WaitForChild("ControlsOpen")
- script.Parent:WaitForChild("Window")
- script.Parent:WaitForChild("Toggle")
- local car = script.Parent.Parent.Car.Value
- local _Tune = require(car["A-Chassis Tune"])
- local UserInputService = game:GetService("UserInputService")
- local cPanel = script.Parent
- local Controls = script.Parent.Parent.Controls
- local ver = require(car["A-Chassis Tune"].README)
- cPanel.Window["//INSPARE"].Text = "A-Chassis "..ver.." by //INSPARE"
- local controlsOpen = false
- local cInputB = nil
- local cInputT = nil
- local cInput = false
- for i,v in pairs(_Tune.Peripherals) do
- script.Parent.Parent.Controls:WaitForChild(i)
- local slider = cPanel.Window.Content[i]
- slider.Text = v.."%"
- slider.S.CanvasPosition=Vector2.new(v*(slider.S.CanvasSize.X.Offset-slider.S.Size.X.Offset)/100,0)
- slider.S.Changed:connect(function(property)
- if property=="CanvasPosition" then
- Controls[i].Value = math.floor(100*slider.S.CanvasPosition.x/(slider.S.CanvasSize.X.Offset-slider.S.Size.X.Offset))
- slider.Text = Controls[i].Value.."%"
- end
- end)
- end
- for i,v in pairs(_Tune.Controls) do
- script.Parent.Parent.Controls:WaitForChild(i)
- local button = cPanel.Window.Content[i]
- button.Text = v.Name
- button.MouseButton1Click:connect(function()
- script.Parent.Parent.ControlsOpen.Value = true
- cPanel.Window.Overlay.Visible = true
- cInput = true
- repeat wait() until cInputB~=nil
- if cInputB == Enum.KeyCode.Return or cInputB == Enum.KeyCode.KeypadEnter then
- --do nothing
- elseif string.find(i,"Contlr")~=nil then
- if cInputT.Name:find("Gamepad") then
- Controls[i].Value = cInputB.Name
- button.Text = cInputB.Name
- else
- cPanel.Window.Error.Visible = true
- end
- elseif i=="MouseThrottle" or i=="MouseBrake" then
- if cInputT == Enum.UserInputType.MouseButton1 or cInputT == Enum.UserInputType.MouseButton2 then
- Controls[i].Value = cInputT.Name
- button.Text = cInputT.Name
- else
- cPanel.Window.Error.Visible = true
- end
- else
- if cInputT == Enum.UserInputType.Keyboard then
- Controls[i].Value = cInputB.Name
- button.Text = cInputB.Name
- else
- cPanel.Window.Error.Visible = true
- end
- end
- cInputB = nil
- cInputT = nil
- cInput = false
- wait(.2)
- cPanel.Window.Overlay.Visible = false
- script.Parent.Parent.ControlsOpen.Value = false
- end)
- end
- cPanel.Window.Error.Changed:connect(function(property)
- if property == "Visible" then
- wait(3)
- cPanel.Window.Error.Visible = false
- end
- end)
- UserInputService.InputBegan:connect(function(input) if cInput then cInputB = input.KeyCode cInputT = input.UserInputType end end)
- UserInputService.InputChanged:connect(function(input) if cInput and (input.KeyCode==Enum.KeyCode.Thumbstick1 or input.KeyCode==Enum.KeyCode.Thumbstick2) then cInputB = input.KeyCode cInputT = input.UserInputType end end)
- cPanel.Toggle.MouseButton1Click:connect(function()
- controlsOpen = not controlsOpen
- if controlsOpen then
- cPanel.Toggle.BackgroundColor3 = Color3.new(1,85/255,.5)
- cPanel.Window:TweenPosition(UDim2.new(0.5, -250,0.5, -250),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.7,true)
- else
- cPanel.Toggle.BackgroundColor3 = Color3.new(1,170/255,0)
- cPanel.Window:TweenPosition(UDim2.new(0.5, -250,0, -500),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.7,true)
- end
- end)
- cPanel.Window.Tabs.Keyboard.MouseButton1Click:connect(function()
- cPanel.Window.Content:TweenPosition(UDim2.new(0, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- end)
- cPanel.Window.Tabs.Mouse.MouseButton1Click:connect(function()
- cPanel.Window.Content:TweenPosition(UDim2.new(-1, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- end)
- cPanel.Window.Tabs.Controller.MouseButton1Click:connect(function()
- cPanel.Window.Content:TweenPosition(UDim2.new(-2, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- end)
- wait(.5)
- cPanel.Toggle:TweenPosition(UDim2.new(0, 50, 1, -30),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,false)
- for i=1,6 do
- cPanel.Toggle.BackgroundColor3 = Color3.new(100/255,100/255,100/255)
- wait(.2)
- if controlsOpen then
- cPanel.Toggle.BackgroundColor3 = Color3.new(1,85/255,.5)
- else
- cPanel.Toggle.BackgroundColor3 = Color3.new(1,170/255,0)
- end
- wait(.2)
- end
- end,o311)
- end))
- o312.Name = "BrakeHeat"
- o312.Parent = o203
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local heat = 0
- local pheat = heat
- local car = script.Parent.Car.Value
- local Drive = car.Wheels:GetChildren()
- local _Tune = require(car["A-Chassis Tune"])
- car.DriveSeat.ChildRemoved:connect(function(child)
- for i,a in pairs(Drive) do
- a.Parts.Heat.Transparency=1
- a.Parts.Heat.L.Range=0
- end
- end)
- while wait(.2) do
- for i,a in pairs(Drive) do
- if script.Parent.Values.Brake.Value>.3 and a.RotVelocity.Magnitude>100 then
- heat=math.min(1,heat+math.min(.075,.075*script.Parent.Values.Brake.Value*(a.RotVelocity.Magnitude/300)))
- else
- heat=math.max(0,heat-.025)
- end
- if pheat~=heat then
- a.Parts.Heat.Transparency=1-heat
- a.Parts.Heat.L.Range=heat*6
- end
- end
- pheat = heat
- end
- end,o312)
- end))
- o313.Name = "Burnout"
- o313.Parent = o203
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local car = script.Parent.Car.Value
- local slip = 0
- local pslip = slip
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" then
- car.Wheels.RL.Burnout.Force = Vector3.new(0,0,0)
- car.Wheels.RR.Burnout.Force = Vector3.new(0,0,0)
- end
- end)
- while wait(.2) do
- if script.Parent.Values.PBrake.Value and not script.Parent.Values.TCS.Value and car.DriveSeat.Velocity.Magnitude < 5 and script.Parent.Values.RPM.Value > 4000 then
- slip = math.min(15000,slip+3000)
- else
- slip = math.max(0,slip-1000)
- end
- if pslip~=slip then
- car.Wheels.RL.Burnout.Force = Vector3.new(0,slip,0)
- car.Wheels.RR.Burnout.Force = Vector3.new(0,slip,0)
- end
- pslip=slip
- end
- end,o313)
- end))
- o314.Name = "Smoke"
- o314.Parent = o203
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local car = script.Parent.Car.Value
- car.Wheels.RL.SQ:Play()
- car.Wheels.RR.SQ:Play()
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" then
- car.Wheels.RL.SQ:Stop()
- car.Wheels.RR.SQ:Stop()
- car.Wheels.RL.Smoke.Rate=0
- car.Wheels.RR.Smoke.Rate=0
- end
- end)
- while wait(.2) do
- local r1 = Ray.new(car.Wheels.RL.Position,(car.Wheels.RL.Arm.CFrame*CFrame.Angles(-math.pi/2,0,0)).lookVector*(car.Wheels.RL.Size.x/2))
- local r1hit = 0
- if workspace:FindPartOnRay(r1,car)~=nil then r1hit=1 end
- local r2 = Ray.new(car.Wheels.RL.Position,(car.Wheels.RR.Arm.CFrame*CFrame.Angles(-math.pi/2,0,0)).lookVector*(car.Wheels.RR.Size.x/2))
- local r2hit = 0
- if workspace:FindPartOnRay(r2,car)~=nil then r2hit=1 end
- local rl = math.min((math.max(math.abs((car.Wheels.RL.RotVelocity.Magnitude*car.Wheels.RL.Size.x/2) - (car.Wheels.RL.Velocity.Magnitude))-20,0)),50)*r1hit
- local rr = math.min((math.max(math.abs((car.Wheels.RR.RotVelocity.Magnitude*car.Wheels.RR.Size.x/2) - (car.Wheels.RR.Velocity.Magnitude))-20,0)),50)*r2hit
- car.Wheels.RL.Smoke.Rate = rl
- car.Wheels.RR.Smoke.Rate = rr
- car.Wheels.RL.SQ.Volume = rl/50
- car.Wheels.RR.SQ.Volume = rr/50
- end
- end,o314)
- end))
- o315.Name = "Turbo"
- o315.Parent = o203
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- wait(0.1)
- local car = script.Parent.Car.Value
- local BOV = car.DriveSeat.BOV
- --tune
- local PSI = 35
- local Turbos = "Twin" -- "Twin","Single" no quad turbo s14s pls ;)
- local TurboSize = "Large" -- "Small","Medium","Large"
- local TwoStep = true
- local Valve = "BOV" -- "BOV","Bleed"
- --valve things
- local BOVsound = car.DriveSeat.BOV
- BOVsound.Volume = 1 --bov volume
- BOVsound.Pitch = 1 -- pitch, i wouldn't change this lol
- BOVsound.SoundId = "rbxassetid://337982546" --sound, duh.
- --ignore
- local CPSI = 0
- local Values = script.Parent.Parent:FindFirstChild("A-Chassis Interface")
- local Throttle = Values.Values.Throttle.Value
- local CurrentGear = Values.Values.Gear.Value
- local CurrentRPM = Values.Values.RPM.Value
- local _Tune = require(car["A-Chassis Tune"])
- local MaxRPM = _Tune.Redline
- Values.Values.TPSI.Value = PSI
- local DEADBOOST = PSI - 0.5
- local active = false
- local boom = true
- --notes
- --rpm = 11000 / 100000 = 0.1, rpm = 1000 / 100000 = 0.01 * 4 = 0.04
- Values.Values.RPM.Changed:connect(function()
- Throttle = Values.Values.Throttle.Value
- CurrentGear = Values.Values.Gear.Value
- CurrentRPM = Values.Values.RPM.Value
- if Throttle == 1 then
- active = true
- if CPSI < PSI then
- if Turbos == "Single" then
- if TurboSize == "Small" then
- CPSI = CPSI + (CurrentRPM / 75000) * 4
- wait(0.1)
- Values.Values.PSI.Value = CPSI * 8
- Values.Values.APSI.Value = CPSI
- end
- if TurboSize == "Medium" then
- CPSI = CPSI + (CurrentRPM / 100000) * 4
- wait(0.1)
- Values.Values.PSI.Value = CPSI * 10
- Values.Values.APSI.Value = CPSI
- end
- if TurboSize == "Large" then
- CPSI = CPSI + (CurrentRPM / 125000) * 4
- wait(0.1)
- Values.Values.PSI.Value = CPSI * 12
- Values.Values.APSI.Value = CPSI
- end
- elseif Turbos == "Twin" then
- if TurboSize == "Small" then
- CPSI = CPSI + (CurrentRPM / 75000) * 4
- wait(0.05)
- Values.Values.PSI.Value = CPSI * 8
- Values.Values.APSI.Value = CPSI
- end
- if TurboSize == "Medium" then
- CPSI = CPSI + (CurrentRPM / 100000) * 4
- wait(0.05)
- Values.Values.PSI.Value = CPSI * 10
- Values.Values.APSI.Value = CPSI
- end
- if TurboSize == "Large" then
- CPSI = CPSI + (CurrentRPM / 125000) * 4
- wait(0.05)
- Values.Values.PSI.Value = CPSI * 12
- Values.Values.APSI.Value = CPSI
- end
- end
- end
- if CurrentRPM > (_Tune.Redline - 500) and TwoStep == true and boom == true then
- boom = false
- if car.Body.Exhaust.E1.S.IsPlaying then
- else
- local i = math.random(1,4)
- i = math.ceil(i)
- while i >= 1 do
- car.Body.Exhaust.E2.S:Play()
- car.Body.Exhaust.E1.Afterburn.Enabled = true
- car.Body.Exhaust.E2.Afterburn.Enabled = true
- wait(math.random(0.2,.3))
- car.Body.Exhaust.E1.Afterburn.Enabled = false
- car.Body.Exhaust.E2.Afterburn.Enabled = false
- i= i - 1
- end
- wait(0.5)
- boom = true
- end
- end
- end
- if Throttle <= 0.01 and active == true and Valve == "BOV" then
- active = false
- CPSI = 0
- if TurboSize == "Large" then
- Values.Values.PSI.Value = CPSI * 12
- elseif TurboSize == "Medium" then
- Values.Values.PSI.Value = CPSI * 10
- elseif TurboSize == "Small" then
- Values.Values.PSI.Value = CPSI * 8
- end
- Values.Values.APSI.Value = CPSI
- if BOV.IsPlaying then
- else
- BOV:Play()
- end
- end
- if Throttle <= 0.01 and Valve == "Bleed" then
- if CPSI > 0 then
- CPSI = CPSI - 0.1
- wait(0.05)
- end
- if TurboSize == "Large" then
- Values.Values.PSI.Value = CPSI * 12
- elseif TurboSize == "Medium" then
- Values.Values.PSI.Value = CPSI * 10
- elseif TurboSize == "Small" then
- Values.Values.PSI.Value = CPSI * 8
- end
- Values.Values.APSI.Value = CPSI
- if active == true then
- if BOV.IsPlaying then
- else
- BOV:Play()
- active = false
- end
- end
- end
- end
- )
- if boom == false then wait(math.random(1)) boom = true end
- end,o315)
- end))
- o316.Name = "Backfire"
- o316.Parent = o203
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local car = script.Parent.Car.Value
- local _Tune = require(car["A-Chassis Tune"])
- local rate=0
- local prate=rate
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" then
- car.Body.Exhaust.E1.Afterburn.Rate=0
- car.Body.Exhaust.E1.L.Range = 0
- car.Body.Exhaust.E1.Sound:Stop()
- end
- end)
- function backfire()
- if script.Parent.IsOn.Value and script.Parent.Values.Throttle.Value <= _Tune.IdleThrottle and script.Parent.Values.RPM.Value>_Tune.PeakRPM and script.Parent.Values.Gear.Value~=-1 then
- rate = 50
- car.Body.Exhaust.E1.Sound:Play()
- elseif rate>0 then
- rate = math.max(rate-50,0)
- end
- if prate~=rate then
- car.Body.Exhaust.E1.Afterburn.Rate = rate
- car.Body.Exhaust.E1.L.Range = (7+(math.random(-10,10)/10))*rate/100
- end
- prate=rate
- if car.DriveSeat:FindFirstChild("Rev")~=nil then
- local on=1
- if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
- end
- end
- while wait(.1) do
- backfire()
- end
- script.Parent.Values.Throttle.Changed:connect(backfire())
- end,o316)
- end))
- o317.Name = "Backfire"
- o317.Parent = o203
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local car = script.Parent.Car.Value
- local _Tune = require(car["A-Chassis Tune"])
- local rate=0
- local prate=rate
- car.Body.Exhaust.E2.S:Play()
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" then
- car.Body.Exhaust.E2.S:Stop()
- car.Body.Exhaust.E2.Afterburn.Rate=0
- car.Body.Exhaust.E2.L.Range = 0
- end
- end)
- function backfire()
- if script.Parent.IsOn.Value and script.Parent.Values.Throttle.Value <= _Tune.IdleThrottle and script.Parent.Values.RPM.Value>_Tune.PeakRPM and script.Parent.Values.Gear.Value~=-1 then
- rate = 50
- elseif rate>0 then
- rate = math.max(rate-50,0)
- end
- if prate~=rate then
- car.Body.Exhaust.E2.Afterburn.Rate = rate
- car.Body.Exhaust.E2.L.Range = (7+(math.random(-10,10)/10))*rate/100
- end
- prate=rate
- if car.DriveSeat:FindFirstChild("Rev")~=nil then
- local on=1
- if not script.Parent.IsOn.Value then on=math.max(on-1,0) else on=1 end
- car.Body.Exhaust.E2.S.Volume = (((car.DriveSeat.Rev.Pitch - car.DriveSeat.Rev.SetPitch.Value)/car.DriveSeat.Rev.SetRev.Value)-math.min(1,car.DriveSeat.Velocity.Magnitude/40)*(script.Parent.Values.Throttle.Value))
- car.Body.Exhaust.E2.S.Pitch = (((car.DriveSeat.Rev.Pitch - car.DriveSeat.Rev.SetPitch.Value)/car.DriveSeat.Rev.SetRev.Value)-math.min(1,car.DriveSeat.Velocity.Magnitude/40)*(script.Parent.Values.Throttle.Value))
- end
- end
- while wait(.1) do
- backfire()
- end
- script.Parent.Values.Throttle.Changed:connect(backfire())
- end,o317)
- end))
- o318.Name = "Interior"
- o318.Parent = o203
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- while true do
- wait()
- local car = script.Parent.Car.Value
- local rpmvalue = script.Parent.Values.RPM.Value
- local speed = car.DriveSeat.Velocity.Magnitude
- local tc = car.Misc.TC.SS.Motor
- local sp = car.Misc.SP.SS.Motor
- tc.DesiredAngle = (-(math.pi/2))*(rpmvalue*(270 / 8000))/90
- sp.DesiredAngle = (math.pi/-2)*(speed)/90
- end
- end,o318)
- end))
- o319.Name = "Pedals"
- o319.Parent = o203
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local car = script.Parent.Car.Value
- script.Parent.Values.Throttle.Changed:connect(function()
- car.Misc.GP.SS.Motor.DesiredAngle = script.Parent.Values.Throttle.Value^2*math.rad(45)
- end)
- script.Parent.Values.Brake.Changed:connect(function()
- car.Misc.BP.SS.Motor.DesiredAngle = script.Parent.Values.Brake.Value^2*math.rad(45)
- end)
- end,o319)
- end))
- o320.Name = "Ignition"
- o320.Parent = o203
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local car = script.Parent.Car.Value
- script:WaitForChild("Start1")
- script:WaitForChild("Start2")
- for i,v in pairs(car.DriveSeat:GetChildren()) do
- for _,a in pairs(script:GetChildren()) do
- if v.Name==a.Name then v:Stop() wait() v:Destroy() end
- end
- end
- for i,v in pairs(script:GetChildren()) do
- v.Parent=car.DriveSeat
- end
- car.DriveSeat.Start1:Play()
- wait(2)
- car.DriveSeat.Start2:Play()
- script.Parent.IsOn.Value=true
- wait(5)
- car.DriveSeat.Start1:Stop()
- car.DriveSeat.Start2:Stop()
- end,o320)
- end))
- o321.Name = "Start1"
- o321.Parent = o320
- o321.SoundId = "rbxassetid://739230574"
- o321.Volume = 6
- o322.Name = "Start2"
- o322.Parent = o320
- o322.SoundId = "rbxassetid://739230574"
- o322.Volume = 0
- o323.Name = "SteeringWheel"
- o323.Parent = o203
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local car = script.Parent.Car.Value
- script.Parent.Values.SteerC.Changed:connect(function()
- local ex = 1
- if script.Parent.Values.SteerC.Value<0 then ex=-1 end
- car.Misc.SW.SS.Motor.DesiredAngle = script.Parent.Values.SteerC.Value^2*math.rad(-90)*ex
- end)
- end,o323)
- end))
- o324.Name = "AC6_Stock_Sound"
- o324.Parent = o203
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local FE = workspace.FilteringEnabled
- local car = script.Parent.Car.Value
- local _Tune = require(car["A-Chassis Tune"])
- local on = 0
- script:WaitForChild("Rev")
- if not FE then
- for i,v in pairs(car.DriveSeat:GetChildren()) do
- for _,a in pairs(script:GetChildren()) do
- if v.Name==a.Name then v:Stop() wait() v:Destroy() end
- end
- end
- for i,v in pairs(script:GetChildren()) do
- v.Parent=car.DriveSeat
- end
- car.DriveSeat.Rev:Play()
- while wait() do
- local _RPM = script.Parent.Values.RPM.Value
- if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
- car.DriveSeat.Rev.Pitch = (car.DriveSeat.Rev.SetPitch.Value + car.DriveSeat.Rev.SetRev.Value*_RPM/_Tune.Redline)*on^2
- end
- else
- local handler = car.AC6_FE_Sounds
- handler:FireServer("newSound","Rev",car.DriveSeat,script.Rev.SoundId,0,script.Rev.Volume,true)
- handler:FireServer("playSound","Rev")
- local pitch=0
- while wait() do
- local _RPM = script.Parent.Values.RPM.Value
- if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
- pitch = (script.Rev.SetPitch.Value + script.Rev.SetRev.Value*_RPM/_Tune.Redline)*on^2
- handler:FireServer("updateSound","Rev",script.Rev.SoundId,pitch,script.Rev.Volume)
- end
- end
- end,o324)
- end))
- o325.Name = "Rev"
- o325.Parent = o324
- o325.SoundId = "rbxassetid://347190582"
- o325.Volume = 5
- o325.Looped = true
- o326.Name = "SetRev"
- o326.Parent = o325
- o326.Value = 2
- o327.Name = "SetPitch"
- o327.Parent = o325
- o327.Value = 0.1
- o328.Name = "AC6_FE_Sounds"
- o328.Parent = o324
- o329.Name = "Handler"
- o329.Parent = o328
- o329.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local Sounds = {}
- local F = {}
- F.newSound = function(name,par,id,pitch,volume,loop)
- for i,v in pairs(Sounds) do
- if i==name then
- v:Stop()
- v:Destroy()
- end
- end
- local sn = Instance.new("Sound",par)
- sn.Name = name
- sn.SoundId = id
- sn.Pitch = pitch
- sn.Volume = volume
- sn.Looped = loop
- sn.AncestryChanged:connect(function(child,parent) print(parent) end)
- Sounds[name]=sn
- end
- F.updateSound = function(sound,id,pit,vol)
- local sn = Sounds[sound]
- if id~=sn.SoundId then sn.SoundId = id end
- if pit~=sn.Pitch then sn.Pitch = pit end
- if vol~=sn.Volume then sn.Volume = vol end
- end
- F.playSound = function(sound)
- Sounds[sound]:Play()
- end
- F.pauseSound = function(sound)
- Sounds[sound]:Pause()
- end
- F.stopSound = function(sound)
- Sounds[sound]:Stop()
- end
- F.removeSound = function(sound)
- Sounds[sound]:Stop()
- Sounds[sound]:Destroy()
- Sounds[sound]=nil
- end
- script.Parent.OnServerEvent:connect(function(pl,Fnc,...)
- F[Fnc](...)
- end)
- end,o329)
- end))
- o330.Name = "Lights"
- o330.Parent = o203
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- script.Parent:WaitForChild("Values")
- local is = game:GetService("UserInputService")
- local cr = script.Parent.Car.Value
- local lt = cr.Body.Lights
- local tk = cr.Body.TK
- local vl = script.Parent.Values
- local GBrake = vl.Brake
- local gr = vl.Gear
- local bk = vl.Brake.Value
- local l1 = lt.RunL
- local r1 = lt.RunR
- local b1 = tk.RLeft
- local b2 = tk.RRight
- local b3 = lt.Brake
- local b4 = tk.Brake
- local lw = lt.B
- local lww = lt.L
- local lwww = lt.L2
- local hi = lt.HB
- local rb = tk.RB
- local rv = tk.Reverse
- local left = false
- local right = false
- local hazards = false
- local reverse = false
- local headlt = false
- local highlt = false
- local relay = false
- local brake = false
- function DealWithInput(input,processed)
- if (processed) then return end
- if input.KeyCode == Enum.KeyCode.S or input.KeyCode == Enum.KeyCode.Down then --Brake
- if input.UserInputState == Enum.UserInputState.Begin then
- brake=true
- b3.BrickColor = BrickColor.new("Really red")
- b3.Material = Enum.Material.Neon
- b4.BrickColor = BrickColor.new("Really red")
- b4.Material = Enum.Material.Neon
- elseif input.UserInputState == Enum.UserInputState.End then
- brake=false
- b3.BrickColor = BrickColor.new("Bright red")
- b3.Material = Enum.Material.SmoothPlastic
- b4.BrickColor = BrickColor.new("Black")
- b4.Material = Enum.Material.SmoothPlastic
- end
- elseif input.KeyCode == Enum.KeyCode.Z then if input.UserInputState == Enum.UserInputState.Begin then
- if hazards then return end
- left = not left
- right = false
- if relay then repeat wait() until not relay end
- while left do
- l1.BrickColor = BrickColor.new("Deep orange")
- l1.Material = Enum.Material.Neon
- b1.BrickColor = BrickColor.new("Really red")
- b1.Material = Enum.Material.Neon
- cr.DriveSeat.Indicator.Value = true
- cr.DriveSeat.LI.Value = true
- wait(1/3)
- l1.BrickColor = BrickColor.new("Medium stone grey")
- l1.Material = Enum.Material.SmoothPlastic
- cr.DriveSeat.Indicator.Value = false
- cr.DriveSeat.LI.Value = false
- if not headlt then
- b1.BrickColor = BrickColor.new("Bright red")
- b1.Material = Enum.Material.SmoothPlastic
- else
- b1.BrickColor = BrickColor.new("Bright red")
- b1.Material = Enum.Material.SmoothPlastic
- end
- wait(1/3)
- if not left then
- l1.Material = Enum.Material.Neon
- l1.BrickColor = BrickColor.new("Pearl")
- end
- end end
- elseif input.KeyCode == Enum.KeyCode.X then if input.UserInputState == Enum.UserInputState.Begin then
- if hazards == false then
- hazards = true
- left = true
- right = true
- else
- hazards = false
- left = false
- right = false
- end
- if hazards then left = false right = false end
- if relay then repeat wait() until not relay end
- while hazards do
- l1.BrickColor = BrickColor.new("Deep orange")
- l1.Material = Enum.Material.Neon
- r1.BrickColor = BrickColor.new("Deep orange")
- r1.Material = Enum.Material.Neon
- b1.BrickColor = BrickColor.new("Really red")
- b1.Material = Enum.Material.Neon
- b2.BrickColor = BrickColor.new("Really red")
- b2.Material = Enum.Material.Neon
- cr.DriveSeat.Indicator.Value = true
- cr.DriveSeat.LI.Value = true
- cr.DriveSeat.RI.Value = true
- wait(1/3)
- l1.BrickColor = BrickColor.new("Medium stone grey")
- l1.Material = Enum.Material.SmoothPlastic
- r1.BrickColor = BrickColor.new("Medium stone grey")
- r1.Material = Enum.Material.SmoothPlastic
- b1.BrickColor = BrickColor.new("Bright red")
- b1.Material = Enum.Material.SmoothPlastic
- b2.BrickColor = BrickColor.new("Bright red")
- b2.Material = Enum.Material.SmoothPlastic
- cr.DriveSeat.Indicator.Value = false
- cr.DriveSeat.LI.Value = false
- cr.DriveSeat.RI.Value = false
- wait(1/3)
- if not hazards then
- l1.Material = Enum.Material.Neon
- r1.Material = Enum.Material.Neon
- l1.BrickColor = BrickColor.new("Pearl")
- r1.BrickColor = BrickColor.new("Pearl")
- end
- end end
- elseif input.KeyCode == Enum.KeyCode.C then if input.UserInputState == Enum.UserInputState.Begin then
- if hazards then return end
- right = not right
- left = false
- if relay then repeat wait() until not relay end
- while right do
- r1.BrickColor = BrickColor.new("Deep orange")
- r1.Material = Enum.Material.Neon
- b2.BrickColor = BrickColor.new("Really red")
- b2.Material = Enum.Material.Neon
- cr.DriveSeat.Indicator.Value = true
- cr.DriveSeat.RI.Value = true
- wait(1/3)
- r1.BrickColor = BrickColor.new("Pearl")
- r1.Material = Enum.Material.SmoothPlastic
- cr.DriveSeat.Indicator.Value = false
- cr.DriveSeat.RI.Value = false
- if not headlt then
- b2.BrickColor = BrickColor.new("Bright red")
- b2.Material = Enum.Material.SmoothPlastic
- else
- b2.BrickColor = BrickColor.new("Bright red")
- b2.Material = Enum.Material.SmoothPlastic
- end
- wait(1/3)
- if not right then
- r1.Material = Enum.Material.Neon
- r1.BrickColor = BrickColor.new("Pearl")
- end
- end end
- elseif input.KeyCode == Enum.KeyCode.L then if input.UserInputState == Enum.UserInputState.Begin then
- if headlt and not highlt then
- highlt = true
- elseif headlt and highlt then
- headlt = false
- highlt = false
- elseif not headlt then
- headlt = true
- end
- if highlt then
- hi.BrickColor = BrickColor.new("Pearl")
- hi.Material = Enum.Material.Neon
- lwww.SpotLight.Enabled = true
- rb.BrickColor = BrickColor.new("Really red")
- rb.Material = Enum.Material.Neon
- elseif not highlt then
- hi.BrickColor = BrickColor.new("Pearl")
- hi.Material = Enum.Material.SmoothPlastic
- lwww.SpotLight.Enabled = false
- if not headlt then
- rb.BrickColor = BrickColor.new("Bright red")
- rb.Material = Enum.Material.SmoothPlastic
- elseif not headlt or highlt then
- rb.BrickColor = BrickColor.new("Bright red")
- rb.Material = Enum.Material.SmoothPlastic
- end
- end
- if headlt then
- lw.BrickColor = BrickColor.new("Pearl")
- lw.Material = Enum.Material.Neon
- lww.SpotLight.Enabled = true
- rb.BrickColor = BrickColor.new("Really red")
- rb.Material = Enum.Material.Neon
- if not highlt then
- lw.BrickColor = BrickColor.new("Pearl")
- rb.BrickColor = BrickColor.new("Really red")
- rb.Material = Enum.Material.Neon
- else
- end
- elseif not headlt then
- lw.BrickColor = BrickColor.new("Pearl")
- lw.Material = Enum.Material.SmoothPlastic
- lww.SpotLight.Enabled = false
- if not brake then
- end
- end end
- end
- end
- is.InputBegan:connect(DealWithInput)
- is.InputChanged:connect(DealWithInput)
- is.InputEnded:connect(DealWithInput)
- gr.Changed:connect(function()
- if gr.Value == -1 then
- rv.Material = Enum.Material.Neon
- else
- rv.Material = Enum.Material.SmoothPlastic
- end
- end)
- end,o330)
- end))
- o331.Name = "AC6_Stock_Gauges"
- o331.Parent = o203
- o331.Position = UDim2.new(0,0,0,300)
- o331.Size = UDim2.new(1,0,1,0)
- o331.Position = UDim2.new(0,0,0,300)
- o331.BackgroundColor3 = Color3.new(1, 1, 1)
- o331.BackgroundTransparency = 1
- o331.BorderSizePixel = 0
- o332.Name = "Gauges_AC6"
- o332.Parent = o331
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --[[
- ___ _______ _
- / _ |____/ ___/ / ___ ____ ___ (_)__
- / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
- /_/ |_| \___/_//_/\_,_/___/___/_/___/
- SecondLogic @ Inspare
- ]]
- script.Parent:WaitForChild("Speedo")
- script.Parent:WaitForChild("Tach")
- script.Parent:WaitForChild("ln")
- script.Parent:WaitForChild("Gear")
- script.Parent:WaitForChild("Speed")
- local car = script.Parent.Parent.Car.Value
- car.DriveSeat.HeadsUpDisplay = false
- local _Tune = require(car["A-Chassis Tune"])
- local _pRPM = _Tune.PeakRPM
- local _lRPM = _Tune.Redline
- local revEnd = math.ceil(_lRPM/1000)
- local Drive={}
- if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
- if car.Wheels:FindFirstChild("FL")~= nil then
- table.insert(Drive,car.Wheels.FL)
- end
- if car.Wheels:FindFirstChild("FR")~= nil then
- table.insert(Drive,car.Wheels.FR)
- end
- if car.Wheels:FindFirstChild("F")~= nil then
- table.insert(Drive,car.Wheels.F)
- end
- end
- if _Tune.Config == "RWD" or _Tune.Config == "AWD" then
- if car.Wheels:FindFirstChild("RL")~= nil then
- table.insert(Drive,car.Wheels.RL)
- end
- if car.Wheels:FindFirstChild("RR")~= nil then
- table.insert(Drive,car.Wheels.RR)
- end
- if car.Wheels:FindFirstChild("R")~= nil then
- table.insert(Drive,car.Wheels.R)
- end
- end
- local wDia = 0
- for i,v in pairs(Drive) do
- if v.Size.x>wDia then wDia = v.Size.x end
- end
- Drive = nil
- local maxSpeed = math.ceil(wDia*math.pi*_lRPM/60/_Tune.Ratios[#_Tune.Ratios]/_Tune.FinalDrive)
- local spInc = math.max(math.ceil(maxSpeed/200)*20,20)
- for i=0,revEnd*2 do
- local ln = script.Parent.ln:clone()
- ln.Parent = script.Parent.Tach
- ln.Rotation = 45 + i * 225 / (revEnd*2)
- ln.Num.Text = i/2
- ln.Num.Rotation = -ln.Rotation
- if i*500>=math.floor(_pRPM/500)*500 then
- ln.Frame.BackgroundColor3 = Color3.new(1,0,0)
- if i<revEnd*2 then
- ln2 = ln:clone()
- ln2.Parent = script.Parent.Tach
- ln2.Rotation = 45 + (i+.5) * 225 / (revEnd*2)
- ln2.Num:Destroy()
- ln2.Visible=true
- end
- end
- if i%2==0 then
- ln.Frame.Size = UDim2.new(0,3,0,10)
- ln.Frame.Position = UDim2.new(0,-1,0,100)
- ln.Num.Visible = true
- else
- ln.Num:Destroy()
- end
- ln.Visible=true
- end
- for i=1,90 do
- local ln = script.Parent.ln:clone()
- ln.Parent = script.Parent.Speedo
- ln.Rotation = 45 + 225*(i/90)
- if i%2==0 then
- ln.Frame.Size = UDim2.new(0,2,0,10)
- ln.Frame.Position = UDim2.new(0,-1,0,100)
- else
- ln.Frame.Size = UDim2.new(0,3,0,5)
- end
- ln.Num:Destroy()
- ln.Visible=true
- end
- for i=0,maxSpeed,spInc do
- local ln = script.Parent.ln:clone()
- ln.Parent = script.Parent.Speedo
- ln.Rotation = 45 + 225*(i/maxSpeed)
- ln.Num.Text = i
- ln.Num.Rotation = -ln.Rotation
- ln.Frame:Destroy()
- ln.Num.Visible=true
- ln.Visible=true
- end
- if script.Parent.Parent.IsOn.Value then
- script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
- end
- script.Parent.Parent.IsOn.Changed:connect(function()
- if script.Parent.Parent.IsOn.Value then
- script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
- end
- end)
- script.Parent.Parent.Values.RPM.Changed:connect(function()
- script.Parent.Tach.Needle.Rotation = 45 + 225 * math.min(1,script.Parent.Parent.Values.RPM.Value / (revEnd*1000))
- end)
- script.Parent.Parent.Values.Gear.Changed:connect(function()
- local gearText = script.Parent.Parent.Values.Gear.Value
- if gearText == 0 then gearText = "N"
- elseif gearText == -1 then gearText = "R"
- end
- script.Parent.Gear.Text = gearText
- end)
- script.Parent.Parent.Values.TCS.Changed:connect(function()
- if script.Parent.Parent.Values.TCS.Value then
- script.Parent.TCS.TextColor3 = Color3.new(1,170/255,0)
- script.Parent.TCS.TextStrokeColor3 = Color3.new(1,170/255,0)
- if script.Parent.Parent.Values.TCSActive.Value then
- wait()
- script.Parent.TCS.Visible = not script.Parent.TCS.Visible
- else
- wait()
- script.Parent.TCS.Visible = false
- end
- else
- script.Parent.TCS.Visible = true
- script.Parent.TCS.TextColor3 = Color3.new(1,0,0)
- script.Parent.TCS.TextStrokeColor3 = Color3.new(1,0,0)
- end
- end)
- script.Parent.Parent.Values.TCSActive.Changed:connect(function()
- if script.Parent.Parent.Values.TCSActive.Value and script.Parent.Parent.Values.TCS.Value then
- wait()
- script.Parent.TCS.Visible = not script.Parent.TCS.Visible
- elseif not script.Parent.Parent.Values.TCS.Value then
- wait()
- script.Parent.TCS.Visible = true
- else
- wait()
- script.Parent.TCS.Visible = false
- end
- end)
- script.Parent.TCS.Changed:connect(function()
- if script.Parent.Parent.Values.TCSActive.Value and script.Parent.Parent.Values.TCS.Value then
- wait()
- script.Parent.TCS.Visible = not script.Parent.TCS.Visible
- elseif not script.Parent.Parent.Values.TCS.Value then
- wait()
- script.Parent.TCS.Visible = true
- end
- end)
- script.Parent.Parent.Values.PBrake.Changed:connect(function()
- script.Parent.PBrake.Visible = script.Parent.Parent.Values.PBrake.Value
- end)
- script.Parent.Parent.Values.TransmissionMode.Changed:connect(function()
- if script.Parent.Parent.Values.TransmissionMode.Value == "Auto" then
- script.Parent.TMode.Text = "A/T"
- script.Parent.TMode.BackgroundColor3 = Color3.new(1,170/255,0)
- elseif script.Parent.Parent.Values.TransmissionMode.Value == "Semi" then
- script.Parent.TMode.Text = "S/T"
- script.Parent.TMode.BackgroundColor3 = Color3.new(0, 170/255, 127/255)
- else
- script.Parent.TMode.Text = "M/T"
- script.Parent.TMode.BackgroundColor3 = Color3.new(1,85/255,.5)
- end
- end)
- script.Parent.Parent.Values.Velocity.Changed:connect(function(property)
- script.Parent.Speedo.Needle.Rotation =45 + 225 * math.min(1,script.Parent.Parent.Values.Velocity.Value.Magnitude/maxSpeed)
- script.Parent.Speed.Text = math.floor(script.Parent.Parent.Values.Velocity.Value.Magnitude) .. " SPS"
- end)
- end,o332)
- end))
- o333.Name = "Tach"
- o333.Parent = o331
- o333.Position = UDim2.new(1,-400,1,-100)
- o333.Position = UDim2.new(1,-400,1,-100)
- o333.BackgroundColor3 = Color3.new(1, 1, 1)
- o333.BorderSizePixel = 0
- o334.Name = "Needle"
- o334.Parent = o333
- o334.Rotation = 45
- o334.BackgroundColor3 = Color3.new(1, 1, 1)
- o334.BorderSizePixel = 0
- o335.Parent = o334
- o335.Position = UDim2.new(0,-2,0,-10)
- o335.Size = UDim2.new(0,4,0,110)
- o335.Position = UDim2.new(0,-2,0,-10)
- o335.BackgroundColor3 = Color3.new(1, 0, 0)
- o335.BackgroundTransparency = 0.10000000149012
- o335.BorderSizePixel = 0
- o335.ZIndex = 2
- o336.Name = "Speedo"
- o336.Parent = o331
- o336.Position = UDim2.new(1,-150,1,-100)
- o336.Position = UDim2.new(1,-150,1,-100)
- o336.BackgroundColor3 = Color3.new(1, 1, 1)
- o336.BorderSizePixel = 0
- o337.Name = "Needle"
- o337.Parent = o336
- o337.Rotation = 45
- o337.BackgroundColor3 = Color3.new(1, 1, 1)
- o337.BorderSizePixel = 0
- o338.Parent = o337
- o338.Position = UDim2.new(0,-2,0,-10)
- o338.Size = UDim2.new(0,4,0,110)
- o338.Position = UDim2.new(0,-2,0,-10)
- o338.BackgroundColor3 = Color3.new(1, 0, 0)
- o338.BackgroundTransparency = 0.10000000149012
- o338.BorderSizePixel = 0
- o338.ZIndex = 2
- o339.Name = "ln"
- o339.Parent = o331
- o339.Rotation = 45
- o339.Visible = false
- o339.BackgroundColor3 = Color3.new(1, 1, 1)
- o339.BorderSizePixel = 0
- o340.Parent = o339
- o340.Position = UDim2.new(0,-2,0,105)
- o340.Size = UDim2.new(0,3,0,5)
- o340.Position = UDim2.new(0,-2,0,105)
- o340.BackgroundColor3 = Color3.new(1, 1, 1)
- o340.BackgroundTransparency = 0.10000000149012
- o340.BorderSizePixel = 0
- o341.Name = "Num"
- o341.Parent = o339
- o341.Position = UDim2.new(0,0,0,88)
- o341.Rotation = -45
- o341.Text = "0"
- o341.Position = UDim2.new(0,0,0,88)
- o341.Visible = false
- o341.BackgroundColor3 = Color3.new(1, 1, 1)
- o341.BackgroundTransparency = 1
- o341.BorderSizePixel = 0
- o341.Font = Enum.Font.ArialBold
- o341.FontSize = Enum.FontSize.Size18
- o341.TextColor3 = Color3.new(1, 1, 1)
- o341.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
- o341.TextStrokeTransparency = 0.89999997615814
- o341.TextTransparency = 0.10000000149012
- o342.Name = "Gear"
- o342.Parent = o331
- o342.Position = UDim2.new(1,-350,1,-70)
- o342.Text = "N"
- o342.Position = UDim2.new(1,-350,1,-70)
- o342.BackgroundColor3 = Color3.new(1, 1, 1)
- o342.BackgroundTransparency = 1
- o342.BorderSizePixel = 0
- o342.Font = Enum.Font.ArialBold
- o342.FontSize = Enum.FontSize.Size48
- o342.TextColor3 = Color3.new(1, 1, 1)
- o342.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
- o342.TextStrokeTransparency = 0.89999997615814
- o342.TextTransparency = 0.10000000149012
- o343.Name = "Speed"
- o343.Parent = o331
- o343.Position = UDim2.new(1,-90,1,-70)
- o343.Text = "0 SPS"
- o343.Position = UDim2.new(1,-90,1,-70)
- o343.BackgroundColor3 = Color3.new(1, 1, 1)
- o343.BackgroundTransparency = 1
- o343.BorderSizePixel = 0
- o343.Font = Enum.Font.ArialBold
- o343.FontSize = Enum.FontSize.Size24
- o343.TextColor3 = Color3.new(1, 1, 1)
- o343.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
- o343.TextStrokeTransparency = 0.89999997615814
- o343.TextTransparency = 0.10000000149012
- o343.TextXAlignment = Enum.TextXAlignment.Right
- o344.Name = "ABS"
- o344.Parent = o331
- o344.Position = UDim2.new(0.5,130,1,-100)
- o344.Text = "ABS"
- o344.Position = UDim2.new(0.5,130,1,-100)
- o344.Visible = false
- o344.BackgroundColor3 = Color3.new(1, 1, 1)
- o344.BackgroundTransparency = 1
- o344.BorderSizePixel = 0
- o344.Font = Enum.Font.ArialBold
- o344.FontSize = Enum.FontSize.Size18
- o344.TextColor3 = Color3.new(1, 0.666667, 0)
- o344.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
- o344.TextStrokeTransparency = 0.89999997615814
- o344.TextTransparency = 0.10000000149012
- o344.TextXAlignment = Enum.TextXAlignment.Right
- o345.Name = "PBrake"
- o345.Parent = o331
- o345.Position = UDim2.new(0.5,200,1,-120)
- o345.Text = "P"
- o345.Position = UDim2.new(0.5,200,1,-120)
- o345.Visible = false
- o345.BackgroundColor3 = Color3.new(1, 1, 1)
- o345.BackgroundTransparency = 1
- o345.BorderSizePixel = 0
- o345.Font = Enum.Font.ArialBold
- o345.FontSize = Enum.FontSize.Size24
- o345.TextColor3 = Color3.new(1, 0.333333, 0.498039)
- o345.TextStrokeColor3 = Color3.new(1, 0.333333, 0.498039)
- o345.TextStrokeTransparency = 0.89999997615814
- o345.TextTransparency = 0.10000000149012
- o345.TextXAlignment = Enum.TextXAlignment.Right
- o346.Name = "TCS"
- o346.Parent = o331
- o346.Position = UDim2.new(0.5,130,1,-120)
- o346.Text = "TCS"
- o346.Position = UDim2.new(0.5,130,1,-120)
- o346.Visible = false
- o346.BackgroundColor3 = Color3.new(1, 1, 1)
- o346.BackgroundTransparency = 1
- o346.BorderSizePixel = 0
- o346.Font = Enum.Font.ArialBold
- o346.FontSize = Enum.FontSize.Size18
- o346.TextColor3 = Color3.new(1, 0.666667, 0)
- o346.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
- o346.TextStrokeTransparency = 0.89999997615814
- o346.TextTransparency = 0.10000000149012
- o346.TextXAlignment = Enum.TextXAlignment.Right
- o347.Name = "TMode"
- o347.Parent = o331
- o347.Position = UDim2.new(1,-435,1,-40)
- o347.Size = UDim2.new(0,40,0,20)
- o347.Text = "A/T"
- o347.Position = UDim2.new(1,-435,1,-40)
- o347.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- o347.BackgroundTransparency = 0.5
- o347.BorderSizePixel = 0
- o347.Font = Enum.Font.ArialBold
- o347.FontSize = Enum.FontSize.Size18
- o347.TextColor3 = Color3.new(1, 1, 1)
- o347.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
- o347.TextStrokeTransparency = 0.89999997615814
- o347.TextTransparency = 0.10000000149012
- o348.Name = "A-Chassis Interface"
- o348.Parent = mas
- o349.Name = "Car"
- o349.Parent = o348
- o350.Name = "Values"
- o350.Parent = o348
- o351.Name = "RPM"
- o351.Parent = o350
- o352.Name = "Horsepower"
- o352.Parent = o350
- o353.Name = "Torque"
- o353.Parent = o350
- o354.Name = "TransmissionMode"
- o354.Parent = o350
- o355.Name = "Gear"
- o355.Parent = o350
- o356.Name = "Throttle"
- o356.Parent = o350
- o357.Name = "SteerC"
- o357.Parent = o350
- o358.Name = "SteerT"
- o358.Parent = o350
- o359.Name = "Brake"
- o359.Parent = o350
- o360.Name = "TCS"
- o360.Parent = o350
- o361.Name = "PBrake"
- o361.Parent = o350
- o362.Name = "TCSActive"
- o362.Parent = o350
- o363.Name = "Velocity"
- o363.Parent = o350
- o364.Name = "IsOn"
- o364.Parent = o348
- o365.Name = "ControlsOpen"
- o365.Parent = o348
- o366.Name = "Drive"
- o366.Parent = o348
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --[[
- ___ _______ _
- / _ |____/ ___/ / ___ ____ ___ (_)__
- / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
- /_/ |_| \___/_//_/\_,_/___/___/_/___/
- SecondLogic @ Inspare
- *I assume you know what you're doing if you're gonna change something here.* ]]--
- script.Parent:WaitForChild("Car")
- script.Parent:WaitForChild("IsOn")
- script.Parent:WaitForChild("ControlsOpen")
- script.Parent:WaitForChild("Values")
- --Vars
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local UserInputService = game:GetService("UserInputService")
- local cam = workspace.CurrentCamera
- local car = script.Parent.Car.Value
- local _Tune = require(car["A-Chassis Tune"])
- local _IsOn = _Tune.AutoStart
- if _Tune.AutoStart then script.Parent.IsOn.Value=true end
- local _GSteerT=0
- local _GSteerC=0
- local _GThrot=0
- local _GBrake=0
- local _ClutchOn = true
- local _ClPressing = false
- local _RPM = 0
- local _HP = 0
- local _OutTorque = 0
- local _CGear = 0
- local _PGear = _CGear
- local _TMode = _Tune.TransModes[1]
- local _MSteer = false
- local _SteerL = false
- local _SteerR = false
- local _PBrake = false
- local _TCS = true
- local _TCSActive = false
- local FlipWait=tick()
- local FlipDB=false
- local _InControls = false
- --Shutdown
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" and child:IsA("Weld") then
- script.Parent:Destroy()
- end
- end)
- --Controls
- local _CTRL = _Tune.Controls
- local Controls = Instance.new("Folder",script.Parent)
- Controls.Name = "Controls"
- for i,v in pairs(_CTRL) do
- local a=Instance.new("StringValue",Controls)
- a.Name=i
- a.Value=v.Name
- a.Changed:connect(function()
- if i=="MouseThrottle" or i=="MouseBrake" then
- _CTRL[i]=Enum.UserInputType[a.Value]
- else
- _CTRL[i]=Enum.KeyCode[a.Value]
- end
- end)
- end
- local _PPH = _Tune.Peripherals
- for i,v in pairs(_PPH) do
- local a = Instance.new("IntValue",Controls)
- a.Name = i
- a.Value = v
- a.Changed:connect(function()
- a.Value=math.min(100,math.max(0,a.Value))
- _PPH[i] = a.Value
- end)
- end
- function DealWithInput(input,IsRobloxFunction)
- if (UserInputService:GetFocusedTextBox()==nil) and not _InControls then --No texting while driving
- 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
- if _CGear == 0 and (_TMode=="Auto" or not _ClPressing) then _ClutchOn = true end
- _CGear = math.max(_CGear-1,-1)
- 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
- if _CGear == 0 and (_TMode=="Auto" or not _ClPressing) then _ClutchOn = true end
- _CGear = math.min(_CGear+1,#_Tune.Ratios-2)
- 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
- if input.UserInputState == Enum.UserInputState.Begin then
- _ClutchOn = false
- _ClPressing = true
- elseif input.UserInputState == Enum.UserInputState.End then
- _ClutchOn = true
- _ClPressing = false
- end
- elseif _IsOn and input.KeyCode ==_CTRL["ContlrPBrake"] or (_MSteer and input.KeyCode==_CTRL["MousePBrake"]) or ((not _MSteer) and input.KeyCode==_CTRL["PBrake"]) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _PBrake = not _PBrake
- elseif input.UserInputState == Enum.UserInputState.End then
- if car.DriveSeat.Velocity.Magnitude>5 then
- _PBrake = false
- end
- end
- elseif (input.KeyCode == _CTRL["ContlrToggleTMode"] or input.KeyCode==_CTRL["ToggleTransMode"]) and input.UserInputState == Enum.UserInputState.Begin then
- local n=1
- for i,v in pairs(_Tune.TransModes) do
- if v==_TMode then n=i break end
- end
- n=n+1
- if n>#_Tune.TransModes then n=1 end
- _TMode = _Tune.TransModes[n]
- elseif _IsOn and ((not _MSteer) and (input.KeyCode==_CTRL["Throttle"] or input.KeyCode == _CTRL["Throttle2"])) or (input.UserInputType == _CTRL["MouseThrottle"] and _MSteer) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _GThrot = 1
- else
- _GThrot = _Tune.IdleThrottle
- end
- elseif ((not _MSteer) and (input.KeyCode==_CTRL["Brake"] or input.KeyCode == _CTRL["Brake2"])) or (input.UserInputType == _CTRL["MouseBrake"] and _MSteer) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _GBrake = 1
- else
- _GBrake = 0
- end
- elseif (not _MSteer) and (input.KeyCode==_CTRL["SteerLeft"] or input.KeyCode == _CTRL["SteerLeft2"]) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _GSteerT = -1
- _SteerL = true
- else
- if _SteerR then
- _GSteerT = 1
- else
- _GSteerT = 0
- end
- _SteerL = false
- end
- elseif (not _MSteer) and (input.KeyCode==_CTRL["SteerRight"] or input.KeyCode == _CTRL["SteerRight2"]) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _GSteerT = 1
- _SteerR = true
- else
- if _SteerL then
- _GSteerT = -1
- else
- _GSteerT = 0
- end
- _SteerR = false
- end
- elseif input.KeyCode ==_CTRL["ToggleMouseDrive"] then
- if input.UserInputState == Enum.UserInputState.End then
- _MSteer = not _MSteer
- _GThrot = _Tune.IdleThrottle
- _GBrake = 0
- _GSteerT = 0
- _ClutchOn = true
- end
- elseif _IsOn and input.KeyCode == _CTRL["ToggleTCS"] or input.KeyCode == _CTRL["ContlrToggleTCS"] then
- if input.UserInputState == Enum.UserInputState.End then
- _TCS = not _TCS
- end
- end
- if input.UserInputType.Name:find("Gamepad") then
- if input.KeyCode == _CTRL["ContlrSteer"] then
- if input.Position.X>= 0 then
- local cDZone = math.min(.99,_Tune.Peripherals.ControlRDZone/100)
- if math.abs(input.Position.X)>cDZone then
- _GSteerT = (input.Position.X-cDZone)/(1-cDZone)
- else
- _GSteerT = 0
- end
- else
- local cDZone = math.min(.99,_Tune.Peripherals.ControlLDZone/100)
- if math.abs(input.Position.X)>cDZone then
- _GSteerT = (input.Position.X+cDZone)/(1-cDZone)
- else
- _GSteerT = 0
- end
- end
- elseif _IsOn and input.KeyCode == _CTRL["ContlrThrottle"] then
- _GThrot = math.max(_Tune.IdleThrottle,input.Position.Z)
- elseif input.KeyCode == _CTRL["ContlrBrake"] then
- _GBrake = input.Position.Z
- end
- end
- else
- _GThrot = _Tune.IdleThrottle
- _GSteerT = 0
- _GBrake = 0
- if _CGear~=0 then _ClutchOn = true end
- end
- end
- UserInputService.InputBegan:connect(DealWithInput)
- UserInputService.InputChanged:connect(DealWithInput)
- UserInputService.InputEnded:connect(DealWithInput)
- ---Drivetrain Initialize
- local wDia = 0
- local Drive={}
- if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
- table.insert(Drive,v)
- end
- end
- end
- if _Tune.Config == "RWD" or _Tune.Config == "AWD" then
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v.Name=="RL" or v.Name=="RR" or v.Name=="R" then
- table.insert(Drive,v)
- end
- end
- end
- for i,v in pairs(Drive) do
- if v.Size.x>wDia then wDia = v.Size.x end
- end
- for i,v in pairs(car.Wheels:GetChildren()) do
- if math.abs(v["#AV"].maxTorque.Magnitude-_Tune.PBrakeForce)<1 then
- _PBrake=true
- end
- end
- ---Camera
- game:GetService("RunService").RenderStepped:connect(function()
- if _MSteer then
- cam.CameraType = "Follow"
- local pspeed = math.min(1,car.DriveSeat.Velocity.Magnitude/500)
- local cc = car.DriveSeat.Position+Vector3.new(0,8+(pspeed*2),0)-(car.DriveSeat.CFrame.lookVector*17)+(car.DriveSeat.Velocity.Unit*-7*pspeed)
- cam.CoordinateFrame = CFrame.new(cc,car.DriveSeat.Position)
- elseif cam.CameraType ~= "Follow" then
- cam.CameraType = "Follow"
- end
- end)
- ---Steering
- function Steering()
- if _MSteer then
- local msWidth = math.max(1,mouse.ViewSizeX*_Tune.Peripherals.MSteerWidth/200)
- local mdZone = _Tune.Peripherals.MSteerDZone/100
- local mST = ((mouse.X-mouse.ViewSizeX/2)/msWidth)
- if math.abs(mST)<=mdZone then
- _GSteerT = 0
- else
- _GSteerT = (math.max(math.min((math.abs(mST)-mdZone),(1-mdZone)),0)/(1-mdZone))^_Tune.MSteerExp * (mST / math.abs(mST))
- end
- end
- if _GSteerC < _GSteerT then
- _GSteerC = math.min(_GSteerT,_GSteerC+_Tune.SteerSpeed)
- else
- _GSteerC = math.max(_GSteerT,_GSteerC-_Tune.SteerSpeed)
- end
- local sDecay = (1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-_Tune.MinSteer))
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v.Name=="F" then
- v.Arm.Steer.cframe=car.Wheels.F.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
- elseif v.Name=="FL" then
- if _GSteerC>= 0 then
- v.Arm.Steer.cframe=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerOuter*sDecay),0)
- else
- v.Arm.Steer.cframe=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
- end
- elseif v.Name=="FR" then
- if _GSteerC>= 0 then
- v.Arm.Steer.cframe=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
- else
- v.Arm.Steer.cframe=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerOuter*sDecay),0)
- end
- end
- end
- end
- --Engine
- function Engine()
- --Neutral Gear
- if _CGear==0 then _ClutchOn = false end
- --Car is off
- local revMin = _Tune.IdleRPM
- if not _IsOn then
- revMin = 0
- _CGear = 0
- _ClutchOn = false
- _GThrot = _Tune.IdleThrottle
- end
- --Determine RPM
- local maxSpin=0
- for i,v in pairs(Drive) do
- if v.RotVelocity.Magnitude>maxSpin then maxSpin = v.RotVelocity.Magnitude end
- end
- if _ClutchOn then
- local aRPM = math.max(math.min(maxSpin*_Tune.Ratios[_CGear+2]*_Tune.FinalDrive*30/math.pi,_Tune.Redline+100),revMin)
- local clutchP = math.min(math.abs(aRPM-_RPM)/_Tune.ClutchTol,.9)
- _RPM = ( (_RPM*2*clutchP) + (aRPM*2*(1-clutchP)) )/2
- _HP = (_Tune.Horsepower/2) * math.sin((math.pi/((1+(math.min(10,_Tune.IdleOffset)/100))*_Tune.PeakRPM)) * (_RPM - (((2-(1+(math.min(10,_Tune.IdleOffset)/100)))* _Tune.PeakRPM)/2))) + (_Tune.Horsepower/2)
- _OutTorque = _HP * 5250 / _RPM * _Tune.Ratios[_CGear+2] * _Tune.FinalDrive
- else
- if _GThrot-_Tune.IdleThrottle>0 then
- _RPM = math.min(_RPM+_Tune.RevAccel*_GThrot,_Tune.Redline+100)
- else
- _RPM = math.max(_RPM-_Tune.RevDecay,revMin)
- end
- _OutTorque = 0
- end
- --Rev Limiter
- local spLimit = 0
- if _RPM>_Tune.Redline then
- if _CGear<#_Tune.Ratios-2 then
- _RPM = _RPM-_Tune.RevBounce
- spLimit = 0
- else
- _RPM = _RPM-_Tune.RevBounce*.5
- end
- else
- spLimit = (_Tune.Redline+100)*math.pi/(30*_Tune.Ratios[_CGear+2]*_Tune.FinalDrive)
- end
- --Automatic Transmission
- if _TMode == "Auto" and _IsOn then
- _ClutchOn = true
- if _CGear == 0 then _CGear = 1 end
- if _CGear >= 1 then
- if _CGear==1 and _GBrake > 0 and car.DriveSeat.Velocity.Magnitude < 20 then
- _CGear = -1
- else
- if _Tune.AutoShiftMode == "RPM" then
- if _RPM>(_Tune.PeakRPM+_Tune.AutoUpThresh) then
- _CGear=math.min(_CGear+1,#_Tune.Ratios-2)
- elseif math.max(math.min(maxSpin*_Tune.Ratios[_CGear+1]*_Tune.FinalDrive*30/math.pi,_Tune.Redline+100),_Tune.IdleRPM)<(_Tune.PeakRPM-_Tune.AutoDownThresh) then
- _CGear=math.max(_CGear-1,1)
- end
- else
- if car.DriveSeat.Velocity.Magnitude > math.ceil(wDia*math.pi*(_Tune.PeakRPM+_Tune.AutoUpThresh)/60/_Tune.Ratios[_CGear+2]/_Tune.FinalDrive) then
- _CGear=math.min(_CGear+1,#_Tune.Ratios-2)
- elseif car.DriveSeat.Velocity.Magnitude < math.ceil(wDia*math.pi*(_Tune.PeakRPM-_Tune.AutoDownThresh)/60/_Tune.Ratios[_CGear+1]/_Tune.FinalDrive) then
- _CGear=math.max(_CGear-1,1)
- end
- end
- end
- else
- if _GThrot-_Tune.IdleThrottle > 0 and car.DriveSeat.Velocity.Magnitude < 20 then
- _CGear = 1
- end
- end
- end
- --Differential Stuff
- local fwspeed=0
- local fwcount=0
- local rwspeed=0
- local rwcount=0
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v.Name=="FL" or v.Name=="FR" or v.Name == "F" then
- fwspeed=fwspeed+v.RotVelocity.Magnitude
- fwcount=fwcount+1
- elseif v.Name=="RL" or v.Name=="RR" or v.Name == "R" then
- rwspeed=rwspeed+v.RotVelocity.Magnitude
- rwcount=rwcount+1
- end
- end
- fwspeed=fwspeed/fwcount
- rwspeed=rwspeed/rwcount
- local cwspeed=(fwspeed+rwspeed)/2
- --Apply Forces
- for i,v in pairs(car.Wheels:GetChildren()) do
- local Ref=v.Axle.CFrame.lookVector
- local aRef=1
- local diffMult=1
- if v.Name=="FL" or v.Name=="RL" then aRef=-1 end
- --Torque Compensation
- if _Tune.Config ~= "AWD" then _OutTorque = _OutTorque*1.3 end
- --Differential
- if v.Name=="FL" or v.Name=="FR" then
- diffMult=math.max(0,math.min(1,1+((((v.RotVelocity.Magnitude-fwspeed)/fwspeed)/(math.max(_Tune.FDiffSlipThres,1)/100))*((_Tune.FDiffLockThres-50)/50))))
- if _Tune.Config == "AWD" then
- diffMult=math.max(0,math.min(1,diffMult*(1+((((fwspeed-cwspeed)/cwspeed)/(math.max(_Tune.CDiffSlipThres,1)/100))*((_Tune.CDiffLockThres-50)/50)))))
- end
- elseif v.Name=="RL" or v.Name=="RR" then
- diffMult=math.max(0,math.min(1,1+((((v.RotVelocity.Magnitude-rwspeed)/rwspeed)/(math.max(_Tune.RDiffSlipThres,1)/100))*((_Tune.RDiffLockThres-50)/50))))
- if _Tune.Config == "AWD" then
- diffMult=math.max(0,math.min(1,diffMult*(1+((((rwspeed-cwspeed)/cwspeed)/(math.max(_Tune.CDiffSlipThres,1)/100))*((_Tune.CDiffLockThres-50)/50)))))
- end
- end
- --Output
- 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
- v["#AV"].maxTorque=Vector3.new(math.abs(Ref.x),math.abs(Ref.y),math.abs(Ref.z))*_Tune.PBrakeForce
- v["#AV"].angularvelocity=Vector3.new()
- else
- 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==0 )))then
- local driven = false
- for _,a in pairs(Drive) do if a==v then driven = true end end
- if driven then
- local on=1
- if not script.Parent.IsOn.Value then on=0 end
- local throt = _GThrot
- if _TMode == "Auto" and _CGear==-1 then throt = _GBrake end
- local tqTCS = 1
- if _TCS then
- 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))
- end
- if tqTCS < 1 then
- _TCSActive = true
- else
- _TCSActive = false
- end
- local dir = 1
- if _CGear==-1 then dir = -1 end
- 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
- v["#AV"].angularvelocity=Ref*aRef*spLimit*dir
- else
- v["#AV"].maxTorque=Vector3.new()
- v["#AV"].angularvelocity=Vector3.new()
- end
- else
- local brake = _GBrake
- if _TMode == "Auto" and _CGear==-1 then brake = _GThrot end
- v["#AV"].maxTorque=Vector3.new(math.abs(Ref.x),math.abs(Ref.y),math.abs(Ref.z))*_Tune.BrakeForce*brake
- v["#AV"].angularvelocity=Vector3.new()
- end
- end
- end
- end
- ---Flip
- function Flip()
- if (car.DriveSeat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.y > .1 or FlipDB then
- FlipWait=tick()
- else
- if tick()-FlipWait>=3 then
- FlipDB=true
- local gyro = car.DriveSeat.Flip
- gyro.maxTorque = Vector3.new(10000,0,10000)
- gyro.P=3000
- gyro.D=500
- wait(1)
- gyro.maxTorque = Vector3.new(0,0,0)
- gyro.P=0
- gyro.D=0
- FlipDB=false
- end
- end
- end
- --Run
- local ver=require(car["A-Chassis Tune"].README)
- print("//INSPARE: AC6 Loaded - Build "..ver)
- while wait() do
- Steering()
- Engine()
- if _Tune.AutoFlip then Flip() end
- _IsOn = script.Parent.IsOn.Value
- _InControls = script.Parent.ControlsOpen.Value
- script.Parent.Values.Gear.Value = _CGear
- script.Parent.Values.RPM.Value = _RPM
- script.Parent.Values.Horsepower.Value = _HP
- script.Parent.Values.Torque.Value = _HP * 5250 / _RPM
- script.Parent.Values.TransmissionMode.Value = _TMode
- script.Parent.Values.Throttle.Value = _GThrot
- script.Parent.Values.Brake.Value = _GBrake
- script.Parent.Values.SteerC.Value = _GSteerC*(1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-_Tune.MinSteer))
- script.Parent.Values.SteerT.Value = _GSteerT
- script.Parent.Values.PBrake.Value = _PBrake
- script.Parent.Values.TCS.Value = _TCS
- script.Parent.Values.TCSActive.Value = _TCSActive
- script.Parent.Values.Velocity.Value = car.DriveSeat.Velocity
- if _PGear~=_CGear then
- _PGear=_CGear
- car.DriveSeat.MaxSpeed = car.DriveSeat.Velocity.Magnitude*(_Tune.Redline/_RPM)
- end
- end
- end,o366)
- end))
- o367.Name = " Initialize"
- o367.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --BasedWeld2.0
- local JS = game:GetService("JointsService")
- function MakeWeld(x,y,type,s)
- if type==nil then type="Weld" end
- local W=Instance.new(type,JS)
- W.Part0=x W.Part1=y
- W.C0=x.CFrame:inverse()*x.CFrame
- W.C1=y.CFrame:inverse()*x.CFrame
- if type=="Motor" and s~=nil then
- W.MaxVelocity=s
- end
- return W
- end
- function ModelWeld(a,b)
- if a:IsA("BasePart") then
- MakeWeld(b,a,"Weld")
- elseif a:IsA("Model") then
- for i,v in pairs(a:GetChildren()) do
- ModelWeld(v,b)
- end
- end
- end
- function UnAnchor(a)
- if a:IsA("BasePart") then a.Anchored=false end for i,v in pairs(a:GetChildren()) do UnAnchor(v) end
- end
- --
- script.Parent:WaitForChild("A-Chassis Interface")
- script.Parent:WaitForChild("Plugins")
- script.Parent:WaitForChild("README")
- local car=script.Parent.Parent
- local _Tune=require(script.Parent)
- local Drive=car.Wheels:GetChildren()
- function getParts(model,t,a)
- for i,v in pairs(model:GetChildren()) do
- if v:IsA("BasePart") then table.insert(t,{v,a.CFrame:toObjectSpace(v.CFrame)})
- elseif v:IsA("Model") then getParts(v,t,a)
- end
- end
- end
- for _,v in pairs(Drive) do
- for _,a in pairs({"Top","Bottom","Left","Right","Front","Back"}) do
- v[a.."Surface"]=Enum.SurfaceType.SmoothNoOutlines
- end
- local WParts = {}
- local tPos = v.Position-car.DriveSeat.Position
- if v.Name=="FL" or v.Name=="RL" then
- v.CFrame = car.DriveSeat.CFrame*CFrame.Angles(math.rad(90),0,math.rad(90))
- else
- v.CFrame = car.DriveSeat.CFrame*CFrame.Angles(math.rad(90),0,math.rad(-90))
- end
- v.CFrame = v.CFrame+tPos
- if v:FindFirstChild("Parts")~=nil then
- getParts(v.Parts,WParts,v)
- end
- if v:FindFirstChild("Fixed")~=nil then
- getParts(v.Fixed,WParts,v)
- end
- if v.Name=="FL" or v.Name=="FR" then
- v.CFrame = v.CFrame*CFrame.Angles(math.rad(_Tune.FCamber),0,0)
- if v.Name=="FL" then
- v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(_Tune.FToe))
- else
- v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(-_Tune.FToe))
- end
- elseif v.Name=="RL" or v.Name=="RR" then
- v.CFrame = v.CFrame*CFrame.Angles(math.rad(_Tune.RCamber),0,0)
- if v.Name=="RL" then
- v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(_Tune.RToe))
- else
- v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(-_Tune.RToe))
- end
- end
- for _,a in pairs(WParts) do
- a[1].CFrame=v.CFrame:toWorldSpace(a[2])
- end
- if v.Name=="FL" then
- v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(-_Tune.FCaster),0)
- elseif v.Name=="FR" or v.Name=="F" then
- v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(_Tune.FCaster),0)
- elseif v.Name=="RL" then
- v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(-_Tune.RCaster),0)
- elseif v.Name=="RR" or v.Name=="R" then
- v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(_Tune.RCaster),0)
- end
- local arm=Instance.new("Part",v)
- arm.Name="Arm"
- arm.Anchored=true
- arm.CanCollide=false
- arm.FormFactor=Enum.FormFactor.Custom
- arm.Size=Vector3.new(1,1,1)
- arm.CFrame=(v.CFrame*CFrame.new(0,_Tune.StAxisOffset,0))*CFrame.Angles(-math.pi/2,-math.pi/2,0)
- arm.TopSurface=Enum.SurfaceType.Smooth
- arm.BottomSurface=Enum.SurfaceType.Smooth
- arm.Transparency=1
- local base=arm:Clone()
- base.Parent=v
- base.Name="Base"
- base.CFrame=base.CFrame*CFrame.new(0,1,0)
- base.BottomSurface=Enum.SurfaceType.Hinge
- local axle=arm:Clone()
- axle.Parent=v
- axle.Name="Axle"
- 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)
- axle.BackSurface=Enum.SurfaceType.Hinge
- if v.Name=="F" or v.Name=="R" then
- local axle2=arm:Clone()
- axle2.Parent=v
- axle2.Name="Axle"
- 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)
- axle2.BackSurface=Enum.SurfaceType.Hinge
- MakeWeld(arm,axle2)
- end
- MakeWeld(car.DriveSeat,base)
- if v.Parent.Name == "RL" or v.Parent.Name == "RR" or v.Name=="R" then
- MakeWeld(car.DriveSeat,arm)
- end
- MakeWeld(arm,axle)
- arm:MakeJoints()
- axle:MakeJoints()
- if v:FindFirstChild("Fixed")~=nil then
- ModelWeld(v.Fixed,axle)
- end
- if v:FindFirstChild("Parts")~=nil then
- ModelWeld(v.Parts,v)
- end
- if v:FindFirstChild("Steer") then
- v:FindFirstChild("Steer"):Destroy()
- end
- local gyro=Instance.new("BodyGyro",v)
- gyro.Name="Stabilizer"
- if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
- gyro.D=_Tune.FGyroD
- gyro.MaxTorque=_Tune.FGyroMaxTorque
- gyro.P=_Tune.FGyroP
- else
- gyro.D=_Tune.RGyroD
- gyro.MaxTorque=_Tune.RGyroMaxTorque
- gyro.P=_Tune.RGyroP
- end
- if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
- local steer=Instance.new("BodyGyro",arm)
- steer.Name="Steer"
- steer.P=_Tune.SteerP
- steer.D=_Tune.SteerD
- steer.MaxTorque=Vector3.new(0,_Tune.SteerMaxTorque,0)
- steer.cframe=base.CFrame
- else
- MakeWeld(base,axle,"Weld")
- end
- local AV=Instance.new("BodyAngularVelocity",v)
- AV.Name="#AV"
- AV.angularvelocity=Vector3.new(0,0,0)
- AV.maxTorque=Vector3.new(_Tune.PBrakeForce,0,_Tune.PBrakeForce)
- AV.P=1e9
- end
- for i,v in pairs(script:GetChildren()) do
- if v:IsA("ModuleScript") then
- require(v)
- end
- end
- wait()
- ModelWeld(car.Body,car.DriveSeat)
- local flipG = Instance.new("BodyGyro",car.DriveSeat)
- flipG.Name = "Flip"
- flipG.D = 0
- flipG.MaxTorque = Vector3.new(0,0,0)
- flipG.P = 0
- wait()
- UnAnchor(car)
- script.Parent["A-Chassis Interface"].Car.Value=car
- for i,v in pairs(script.Parent.Plugins:GetChildren()) do
- for _,a in pairs(v:GetChildren()) do
- if a:IsA("RemoteEvent") or a:IsA("RemoteFunction") then
- a.Parent=car
- for _,b in pairs(a:GetChildren()) do
- if b:IsA("Script") then b.Disabled=false end
- end
- end
- end
- v.Parent = script.Parent["A-Chassis Interface"]
- end
- script.Parent.Plugins:Destroy()
- car.DriveSeat.ChildAdded:connect(function(child)
- if child.Name=="SeatWeld" and child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
- local p=game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- car.DriveSeat:SetNetworkOwner(p)
- local g=script.Parent["A-Chassis Interface"]:Clone()
- g.Parent=p.PlayerGui
- end
- end)
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" and child:IsA("Weld") then
- for i,v in pairs(car.DriveSeat:GetChildren()) do
- if v:IsA("Sound") then v:Stop() end
- end
- if car.DriveSeat:FindFirstChild("Flip")~=nil then
- car.DriveSeat.Flip.MaxTorque = Vector3.new()
- end
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v:FindFirstChild("#AV")~=nil then
- if v["#AV"].AngularVelocity.Magnitude>0 then
- v["#AV"].AngularVelocity = Vector3.new()
- v["#AV"].MaxTorque = Vector3.new()
- end
- end
- end
- end
- end)
- ver = require(script.Parent.README)
- end,o367)
- end))
- o370.Name = "Shadow"
- o370.Parent = o1
- o370.MaxHealth = 0
- o371.Name = "Wheels"
- o371.Parent = o1
- o372.Name = "RR"
- o372.Parent = o371
- o372.Material = Enum.Material.SmoothPlastic
- o372.BrickColor = BrickColor.new("Really black")
- o372.Transparency = 1
- o372.Position = Vector3.new(40.7351761, 1.42467594, 141.67627)
- o372.Rotation = Vector3.new(89.9799957, 0.00999999978, -89.9799957)
- o372.Anchored = true
- o372.Elasticity = 1
- o372.FormFactor = Enum.FormFactor.Symmetric
- o372.Friction = 1.7999999523163
- o372.Shape = Enum.PartType.Ball
- o372.Size = Vector3.new(2.82399988, 2.82399988, 2.82399988)
- o372.CFrame = CFrame.new(40.7351761, 1.42467594, 141.67627, 0.000395337906, 1.00000072, 0.000197924339, -0.000268617412, 0.000198030539, -1.00000072, -0.999999881, 0.000395284442, 0.000268695469)
- o372.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o372.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o372.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o372.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o372.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o372.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o372.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o372.Position = Vector3.new(40.7351761, 1.42467594, 141.67627)
- o373.Name = "Fixed"
- o373.Parent = o372
- o375.Parent = o373
- o375.Material = Enum.Material.SmoothPlastic
- o375.BrickColor = BrickColor.new("Gold")
- o375.Reflectance = 0.045000001788139
- o375.Transparency = 1
- o375.Position = Vector3.new(40.9538994, 1.53710401, 141.095825)
- o375.Rotation = Vector3.new(-75.0299988, -90, 0)
- o375.Anchored = true
- o375.CanCollide = false
- o375.FormFactor = Enum.FormFactor.Custom
- o375.Size = Vector3.new(0.333240569, 0.529042721, 0.24788782)
- o375.CFrame = CFrame.new(40.9538994, 1.53710401, 141.095825, -5.95167803e-05, -0.000265187438, -1.00000072, 0.966075599, 0.258262634, -0.000125985607, 0.258262455, -0.966074824, 0.000240819747)
- o375.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o375.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o375.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o375.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o375.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o375.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o375.Color = Color3.new(0.937255, 0.721569, 0.219608)
- o375.Position = Vector3.new(40.9538994, 1.53710401, 141.095825)
- o376.Parent = o375
- o376.Offset = Vector3.new(0, 0, -0.00200000009)
- o376.Scale = Vector3.new(1.5, 1, 1.42499995)
- o377.Parent = o375
- o377.Texture = "rbxassetid://77053443"
- o378.Name = "Parts"
- o378.Parent = o372
- o381.Name = "Dust"
- o381.Parent = mas
- o381.Transparency = NumberSequence.new(0.4972972869873,1)
- o381.Size = NumberSequence.new(1,10)
- o381.Color = ColorSequence.new(Color3.new(1, 0.917647, 0.721569),Color3.new(1, 0.917647, 0.721569))
- o381.Enabled = false
- o381.Texture = "rbxassetid://534886217"
- o381.Lifetime = NumberRange.new(3.5,3.5)
- o381.Rate = 60
- o381.Speed = NumberRange.new(0,0)
- o382.Name = "DustScript"
- o382.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- while wait(0.25) do
- function onTouched(part)
- if part.Name == "Sand" and script.Parent.Velocity.Magnitude > 15 then
- script.Parent.Dust.Enabled = true
- else
- script.Parent.Dust.Enabled = false
- end
- end
- script.Parent.Touched:connect(onTouched)
- end
- end,o382)
- end))
- o385.Name = "RL"
- o385.Parent = o371
- o385.Material = Enum.Material.SmoothPlastic
- o385.BrickColor = BrickColor.new("Really black")
- o385.Transparency = 1
- o385.Position = Vector3.new(34.1048355, 1.42299795, 141.677261)
- o385.Rotation = Vector3.new(90.0099945, 0.0199999996, 90.0199966)
- o385.Anchored = true
- o385.Elasticity = 1
- o385.FormFactor = Enum.FormFactor.Symmetric
- o385.Friction = 1.7999999523163
- o385.Shape = Enum.PartType.Ball
- o385.Size = Vector3.new(2.82399988, 2.82399988, 2.82399988)
- o385.CFrame = CFrame.new(34.1048355, 1.42299795, 141.677261, -0.000395192445, -1.0000006, 0.000308081624, -0.000149390267, -0.000308022572, -1.00000083, 1, -0.000395238079, -0.00014926841)
- o385.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o385.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o385.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o385.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o385.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o385.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o385.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o385.Position = Vector3.new(34.1048355, 1.42299795, 141.677261)
- o386.Name = "Fixed"
- o386.Parent = o385
- o388.Parent = o386
- o388.Material = Enum.Material.SmoothPlastic
- o388.BrickColor = BrickColor.new("Gold")
- o388.Reflectance = 0.045000001788139
- o388.Transparency = 1
- o388.Position = Vector3.new(33.8861084, 1.53538895, 142.257706)
- o388.Rotation = Vector3.new(75.0199966, 90, 0)
- o388.Anchored = true
- o388.CanCollide = false
- o388.FormFactor = Enum.FormFactor.Custom
- o388.Size = Vector3.new(0.333240569, 0.529042721, 0.24788782)
- o388.CFrame = CFrame.new(33.8861084, 1.53538895, 142.257706, -0.000405691128, 0.000140700533, 1.00000083, 0.966039181, 0.258398712, 0.000355556433, -0.258398443, 0.966038465, -0.000240751906)
- o388.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o388.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o388.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o388.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o388.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o388.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o388.Color = Color3.new(0.937255, 0.721569, 0.219608)
- o388.Position = Vector3.new(33.8861084, 1.53538895, 142.257706)
- o389.Parent = o388
- o389.Offset = Vector3.new(0, 0, -0.00200000009)
- o389.Scale = Vector3.new(1.5, 1, 1.42499995)
- o390.Parent = o388
- o390.Texture = "rbxassetid://77053443"
- o391.Name = "Parts"
- o391.Parent = o385
- o394.Name = "Dust"
- o394.Parent = mas
- o394.Transparency = NumberSequence.new(0.4972972869873,1)
- o394.Size = NumberSequence.new(1,10)
- o394.Color = ColorSequence.new(Color3.new(1, 0.917647, 0.721569),Color3.new(1, 0.917647, 0.721569))
- o394.Enabled = false
- o394.Texture = "rbxassetid://534886217"
- o394.Lifetime = NumberRange.new(3.5,3.5)
- o394.Rate = 60
- o394.Speed = NumberRange.new(0,0)
- o395.Name = "DustScript"
- o395.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- while wait(0.25) do
- function onTouched(part)
- if part.Name == "Sand" and script.Parent.Velocity.Magnitude > 15 then
- script.Parent.Dust.Enabled = true
- else
- script.Parent.Dust.Enabled = false
- end
- end
- script.Parent.Touched:connect(onTouched)
- end
- end,o395)
- end))
- o398.Name = "FL"
- o398.Parent = o371
- o398.Material = Enum.Material.SmoothPlastic
- o398.BrickColor = BrickColor.new("Really black")
- o398.Transparency = 1
- o398.Position = Vector3.new(33.9543571, 1.33284795, 130.928665)
- o398.Rotation = Vector3.new(90.0099945, 0.0199999996, 90.0199966)
- o398.Anchored = true
- o398.Elasticity = 1
- o398.FormFactor = Enum.FormFactor.Symmetric
- o398.Friction = 1.7999999523163
- o398.Shape = Enum.PartType.Ball
- o398.Size = Vector3.new(2.64400005, 2.64400005, 2.64400005)
- o398.CFrame = CFrame.new(33.9543571, 1.33284795, 130.928665, -0.000395454728, -1.0000006, 0.000308082963, -0.000148377032, -0.00030802426, -1.00000083, 1, -0.000395500043, -0.000148255087)
- o398.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o398.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o398.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o398.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o398.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o398.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o398.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o398.Position = Vector3.new(33.9543571, 1.33284795, 130.928665)
- o399.Name = "Fixed"
- o399.Parent = o398
- o401.Parent = o399
- o401.Material = Enum.Material.SmoothPlastic
- o401.BrickColor = BrickColor.new("Gold")
- o401.Reflectance = 0.045000001788139
- o401.Transparency = 1
- o401.Position = Vector3.new(33.7844238, 1.180076, 130.437607)
- o401.Rotation = Vector3.new(75.0199966, 90, 0)
- o401.Anchored = true
- o401.CanCollide = false
- o401.FormFactor = Enum.FormFactor.Custom
- o401.Size = Vector3.new(0.483240575, 0.649042726, 0.24788782)
- o401.CFrame = CFrame.new(33.7844238, 1.180076, 130.437607, -0.000406150095, 0.000141494762, 1.00000083, 0.966038883, 0.258399606, 0.000355794386, -0.258399338, 0.966038167, -0.000241638103)
- o401.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o401.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o401.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o401.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o401.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o401.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o401.Color = Color3.new(0.937255, 0.721569, 0.219608)
- o401.Position = Vector3.new(33.7844238, 1.180076, 130.437607)
- o402.Parent = o401
- o402.Offset = Vector3.new(0, 0, -0.00200000009)
- o402.Scale = Vector3.new(1.5, 1, 1.42499995)
- o403.Parent = o401
- o403.Texture = "rbxassetid://77053443"
- o404.Name = "Parts"
- o404.Parent = o398
- o408.Name = "Dust"
- o408.Parent = mas
- o408.Transparency = NumberSequence.new(0.4972972869873,1)
- o408.Size = NumberSequence.new(1,10)
- o408.Color = ColorSequence.new(Color3.new(1, 0.917647, 0.721569),Color3.new(1, 0.917647, 0.721569))
- o408.Enabled = false
- o408.Texture = "rbxassetid://534886217"
- o408.Lifetime = NumberRange.new(3.5,3.5)
- o408.Rate = 60
- o408.Speed = NumberRange.new(0,0)
- o409.Name = "DustScript"
- o409.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- while wait(0.25) do
- function onTouched(part)
- if part.Name == "Sand" and script.Parent.Velocity.Magnitude > 15 then
- script.Parent.Dust.Enabled = true
- else
- script.Parent.Dust.Enabled = false
- end
- end
- script.Parent.Touched:connect(onTouched)
- end
- end,o409)
- end))
- o411.Name = "FR"
- o411.Parent = o371
- o411.Material = Enum.Material.SmoothPlastic
- o411.BrickColor = BrickColor.new("Really black")
- o411.Transparency = 1
- o411.Position = Vector3.new(40.8947334, 1.33461201, 130.927658)
- o411.Rotation = Vector3.new(89.9799957, 0.00999999978, -89.9799957)
- o411.Anchored = true
- o411.Elasticity = 1
- o411.FormFactor = Enum.FormFactor.Symmetric
- o411.Friction = 1.7999999523163
- o411.Shape = Enum.PartType.Ball
- o411.Size = Vector3.new(2.64400005, 2.64400005, 2.64400005)
- o411.CFrame = CFrame.new(40.8947334, 1.33461201, 130.927658, 0.000395554525, 1.00000072, 0.000197923102, -0.000267603988, 0.000198028953, -1.00000072, -0.999999881, 0.000395501265, 0.000267682073)
- o411.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o411.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o411.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o411.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o411.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o411.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o411.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o411.Position = Vector3.new(40.8947334, 1.33461201, 130.927658)
- o412.Name = "Fixed"
- o412.Parent = o411
- o414.Parent = o412
- o414.Material = Enum.Material.SmoothPlastic
- o414.BrickColor = BrickColor.new("Gold")
- o414.Reflectance = 0.045000001788139
- o414.Transparency = 1
- o414.Position = Vector3.new(41.0647011, 1.18198001, 131.418716)
- o414.Rotation = Vector3.new(-75.0299988, -90, 0)
- o414.Anchored = true
- o414.CanCollide = false
- o414.FormFactor = Enum.FormFactor.Custom
- o414.Size = Vector3.new(0.483240575, 0.649042726, 0.24788782)
- o414.CFrame = CFrame.new(41.0647011, 1.18198001, 131.418716, -5.90390118e-05, -0.000264892878, -1.00000072, 0.966075122, 0.258264422, -0.000125448423, 0.258264273, -0.966074288, 0.000240658352)
- o414.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o414.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o414.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o414.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o414.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o414.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o414.Color = Color3.new(0.937255, 0.721569, 0.219608)
- o414.Position = Vector3.new(41.0647011, 1.18198001, 131.418716)
- o415.Parent = o414
- o415.Offset = Vector3.new(0, 0, -0.00200000009)
- o415.Scale = Vector3.new(1.5, 1, 1.42499995)
- o416.Parent = o414
- o416.Texture = "rbxassetid://77053443"
- o417.Name = "Parts"
- o417.Parent = o411
- o421.Name = "Dust"
- o421.Parent = mas
- o421.Transparency = NumberSequence.new(0.4972972869873,1)
- o421.Size = NumberSequence.new(1,10)
- o421.Color = ColorSequence.new(Color3.new(1, 0.917647, 0.721569),Color3.new(1, 0.917647, 0.721569))
- o421.Enabled = false
- o421.Texture = "rbxassetid://534886217"
- o421.Lifetime = NumberRange.new(3.5,3.5)
- o421.Rate = 60
- o421.Speed = NumberRange.new(0,0)
- o422.Name = "DustScript"
- o422.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- while wait(0.25) do
- function onTouched(part)
- if part.Name == "Sand" and script.Parent.Velocity.Magnitude > 15 then
- script.Parent.Dust.Enabled = true
- else
- script.Parent.Dust.Enabled = false
- end
- end
- script.Parent.Touched:connect(onTouched)
- end
- end,o422)
- end))
- o424.Name = "Misc"
- o424.Parent = o1
- o425.Name = "Popups"
- o425.Parent = o424
- o426.Name = "Parts"
- o426.Parent = o425
- o427.Parent = o426
- o429.Name = "Wing"
- o429.Parent = o426
- o431.Name = "R"
- o431.Parent = o426
- o433.Name = "Light"
- o433.Parent = mas
- o433.Color = Color3.new(0.666667, 0, 0)
- o433.Enabled = false
- o433.Brightness = 3
- o433.Range = 15
- o433.Shadows = true
- o433.Angle = 50
- o433.Face = Enum.NormalId.Back
- o434.Name = "Hinge"
- o434.Parent = o425
- o434.Material = Enum.Material.SmoothPlastic
- o434.BrickColor = BrickColor.new("Mulberry")
- o434.Transparency = 1
- o434.Position = Vector3.new(40.4100342, 3.91669607, 143.889633)
- o434.Rotation = Vector3.new(89.659996, 90, 0)
- o434.Anchored = true
- o434.CanCollide = false
- o434.Size = Vector3.new(0.231999993, 0.231999993, 0.231999993)
- o434.CFrame = CFrame.new(40.4100342, 3.91669607, 143.889633, -0.000240764828, 8.23939554e-05, 1.00000083, 0.999983251, 0.00592887029, 0.000240272115, -0.00592884608, 0.999982417, -8.38199048e-05)
- o434.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o434.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o434.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o434.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o434.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o434.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o434.Color = Color3.new(0.34902, 0.133333, 0.34902)
- o434.Position = Vector3.new(40.4100342, 3.91669607, 143.889633)
- o435.Name = "SW"
- o435.Parent = o424
- o436.Name = "Body"
- o436.Parent = o435
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local P = script.Parent
- local mainPart = P.SS
- ----- NO EDITING BELOW -----
- local weldedParts = {}
- table.insert(weldedParts,mainPart)
- function Weld(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local CJ = CFrame.new(x.Position)
- weld.C0 = x.CFrame:inverse() * CJ
- weld.C1 = y.CFrame:inverse() * CJ
- weld.Parent = x
- table.insert(weldedParts,y)
- end
- function WeldRec(instance)
- local childs = instance:GetChildren()
- for _,v in pairs(childs) do
- if v:IsA("BasePart") then
- Weld(mainPart, v)
- end
- WeldRec(v)
- end
- end
- WeldRec(P)
- --WeldRec(P.Parent.Lights)
- for _,v in pairs(weldedParts) do
- if v:IsA("BasePart") then
- v.Anchored = false
- end
- end
- script:Destroy()
- end,o436)
- end))
- o437.Parent = o435
- o441.Name = "SS"
- o441.Parent = o435
- o441.BrickColor = BrickColor.new("Institutional white")
- o441.Transparency = 1
- o441.Position = Vector3.new(35.9496689, 2.76416397, 134.415878)
- o441.Rotation = Vector3.new(-12.0099993, 0.0299999993, 90)
- o441.Anchored = true
- o441.CanCollide = false
- o441.FormFactor = Enum.FormFactor.Custom
- o441.Size = Vector3.new(0.851503372, 0.851503134, 0.851503074)
- o441.CFrame = CFrame.new(35.9496689, 2.76416397, 134.415878, -5.74823935e-05, -1.00000072, 0.000562827219, 0.978118062, 6.08743576e-05, 0.208054885, -0.208054751, 0.000562469941, 0.978117049)
- o441.BackSurface = Enum.SurfaceType.Unjoinable
- o441.BottomSurface = Enum.SurfaceType.Smooth
- o441.LeftSurface = Enum.SurfaceType.Unjoinable
- o441.TopSurface = Enum.SurfaceType.Unjoinable
- o441.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o441.Position = Vector3.new(35.9496689, 2.76416397, 134.415878)
- o442.Name = "Body"
- o442.Parent = o1
- o456.Parent = mas
- o456.SoundId = "rbxassetid://553325070"
- o456.Volume = 5
- o457.Name = "Hit"
- o457.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- function onTouched(part)
- if script.Parent.Velocity.Magnitude > 20 then
- if part.Parent.Humanoid.Health > 0 then
- part.Parent.Humanoid.PlatformStand = true
- part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - script.Parent.Velocity.Magnitude / math.random(1, 1.65)
- script.Parent.Sound.Playing = true
- S = script.GetUp:Clone()
- S.Parent = part.Parent
- S.Disabled = false
- script.Disabled = true
- wait(0.5)
- script.Disabled = false
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end,o457)
- end))
- o458.Name = "GetUp"
- o458.Parent = o457
- o458.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- wait(math.random(1, 6))
- script.Parent.Humanoid.PlatformStand = false
- wait()
- script:remove()
- end,o458)
- end))
- o459.Name = "Break"
- o459.Parent = mas
- o459.SoundId = "rbxassetid://1228439088"
- o459.Volume = 5
- o460.Name = "Collide"
- o460.Parent = mas
- o460.SoundId = "rbxassetid://215550851"
- o460.Volume = 5
- o461.Name = "Health"
- o461.Parent = mas
- o461.Value = 160
- o462.Name = "Sparks"
- o462.Parent = mas
- o462.Transparency = NumberSequence.new(0.5,0.5)
- o462.Size = NumberSequence.new(0.25,0.25)
- o462.Enabled = false
- o462.LightEmission = 1
- o462.Texture = "rbxassetid://253975502"
- o462.Acceleration = Vector3.new(0, -50, 0)
- o462.Rate = 40
- o462.RotSpeed = NumberRange.new(-50,50)
- o462.Speed = NumberRange.new(15,15)
- o462.VelocitySpread = 50
- o463.Name = "Crash"
- o463.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- function crashed(hit)
- if script.Parent.Velocity.Magnitude > hit.Velocity.Magnitude + 45 and hit.CanCollide == true or hit.Velocity.Magnitude > script.Parent.Velocity.Magnitude + 35 then
- script.Disabled = true
- script.Parent.Health.Value = script.Parent.Health.Value - script.Parent.Velocity.Magnitude / 1.25
- wait()
- if script.Parent.Health.Value > 0 then
- script.Parent.Sparks.Enabled = true
- local sound = math.random(1, 2)
- if sound == 1 then
- script.Parent.Collide.SoundId = "rbxassetid://490314550"
- end
- if sound == 2 then
- script.Parent.Collide.SoundId = "rbxassetid://215550851"
- end
- script.Parent.Collide.Playing = true
- wait(0.5)
- script.Parent.Sparks.Enabled = false
- wait()
- script.Disabled = false
- else
- script.Disabled = true
- script.Parent:BreakJoints()
- script.Parent.CanCollide = true
- script.Parent.Break.Playing = true
- script.Parent.Parent = workspace
- wait(15)
- script.Parent:remove()
- end
- end
- end
- script.Parent.Touched:connect(crashed)
- end,o463)
- end))
- o469.Name = "Motors"
- o469.Parent = o442
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local sw = Instance.new("Motor", script.Parent.Parent.Misc.SW.SS) --sw
- sw.MaxVelocity = 0.167
- sw.Part0 = script.Parent.SW
- sw.Part1 = sw.Parent
- end,o469)
- end))
- o472.Name = "Break"
- o472.Parent = mas
- o472.SoundId = "rbxassetid://1228439088"
- o472.Volume = 5
- o473.Name = "Collide"
- o473.Parent = mas
- o473.SoundId = "rbxassetid://215550851"
- o473.Volume = 5
- o474.Name = "Crash"
- o474.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- function crashed(hit)
- if script.Parent.Velocity.Magnitude > hit.Velocity.Magnitude + 40 and hit.CanCollide == true or hit.Velocity.Magnitude > script.Parent.Velocity.Magnitude + 35 then
- script.Disabled = true
- script.Parent.Health.Value = script.Parent.Health.Value - script.Parent.Velocity.Magnitude / 1.25
- wait()
- if script.Parent.Health.Value > 0 then
- script.Parent.Sparks.Enabled = true
- local sound = math.random(1, 2)
- if sound == 1 then
- script.Parent.Collide.SoundId = "rbxassetid://490314550"
- end
- if sound == 2 then
- script.Parent.Collide.SoundId = "rbxassetid://215550851"
- end
- script.Parent.Collide.Playing = true
- wait(0.5)
- script.Parent.Sparks.Enabled = false
- wait()
- script.Disabled = false
- else
- script.Disabled = true
- script.Parent:BreakJoints()
- script.Parent.CanCollide = true
- script.Parent.Break.Playing = true
- script.Parent.Parent = workspace
- wait(15)
- script.Parent:remove()
- end
- end
- end
- script.Parent.Touched:connect(crashed)
- end,o474)
- end))
- o475.Name = "Health"
- o475.Parent = mas
- o475.Value = 110
- o476.Name = "Sparks"
- o476.Parent = mas
- o476.Transparency = NumberSequence.new(0.5,0.5)
- o476.Size = NumberSequence.new(0.25,0.25)
- o476.Enabled = false
- o476.LightEmission = 1
- o476.Texture = "rbxassetid://253975502"
- o476.Acceleration = Vector3.new(0, -50, 0)
- o476.Rate = 40
- o476.RotSpeed = NumberRange.new(-50,50)
- o476.Speed = NumberRange.new(15,15)
- o476.VelocitySpread = 50
- o490.Parent = mas
- o490.Transparency = 0.89999997615814
- o490.Texture = "rbxassetid://192248506"
- o490.Face = Enum.NormalId.Top
- o492.Name = "Break"
- o492.Parent = mas
- o492.SoundId = "rbxassetid://1228439088"
- o492.Volume = 5
- o493.Name = "Collide"
- o493.Parent = mas
- o493.SoundId = "rbxassetid://215550851"
- o493.Volume = 5
- o494.Name = "Health"
- o494.Parent = mas
- o494.Value = 50
- o495.Name = "Sparks"
- o495.Parent = mas
- o495.Transparency = NumberSequence.new(0.5,0.5)
- o495.Size = NumberSequence.new(0.25,0.25)
- o495.Enabled = false
- o495.LightEmission = 1
- o495.Texture = "rbxassetid://253975502"
- o495.Acceleration = Vector3.new(0, -50, 0)
- o495.Rate = 40
- o495.RotSpeed = NumberRange.new(-50,50)
- o495.Speed = NumberRange.new(15,15)
- o495.VelocitySpread = 50
- o496.Name = "Crash"
- o496.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- function crashed(hit)
- if script.Parent.Velocity.Magnitude > hit.Velocity.Magnitude + 35 and hit.CanCollide == true or hit.Velocity.Magnitude > script.Parent.Velocity.Magnitude + 35 then
- script.Disabled = true
- script.Parent.Health.Value = script.Parent.Health.Value - script.Parent.Velocity.Magnitude / 1.25
- wait()
- if script.Parent.Health.Value > 0 then
- script.Parent.Sparks.Enabled = true
- local sound = math.random(1, 2)
- if sound == 1 then
- script.Parent.Collide.SoundId = "rbxassetid://490314550"
- end
- if sound == 2 then
- script.Parent.Collide.SoundId = "rbxassetid://215550851"
- end
- script.Parent.Collide.Playing = true
- wait(0.5)
- script.Parent.Sparks.Enabled = false
- wait()
- script.Disabled = false
- else
- script.Disabled = true
- script.Parent:BreakJoints()
- script.Parent.CanCollide = true
- script.Parent.Break.Playing = true
- script.Parent.Parent = workspace
- wait(15)
- script.Parent:remove()
- end
- end
- end
- script.Parent.Touched:connect(crashed)
- end,o496)
- end))
- o498.Name = "Hit"
- o498.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- function onTouched(part)
- if script.Parent.Velocity.Magnitude > 20 then
- if part.Parent.Humanoid.Health > 0 then
- part.Parent.Humanoid.PlatformStand = true
- part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - script.Parent.Velocity.Magnitude / math.random(1, 1.65)
- script.Parent.Sound.Playing = true
- S = script.GetUp:Clone()
- S.Parent = part.Parent
- S.Disabled = false
- script.Disabled = true
- wait(0.5)
- script.Disabled = false
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end,o498)
- end))
- o499.Name = "GetUp"
- o499.Parent = o498
- o499.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- wait(math.random(1, 6))
- script.Parent.Humanoid.PlatformStand = false
- wait()
- script:remove()
- end,o499)
- end))
- o500.Parent = mas
- o500.SoundId = "rbxassetid://553325070"
- o500.Volume = 5
- o501.Name = "Health"
- o501.Parent = mas
- o501.Value = 220
- o502.Name = "Sparks"
- o502.Parent = mas
- o502.Transparency = NumberSequence.new(0.5,0.5)
- o502.Size = NumberSequence.new(0.25,0.25)
- o502.Enabled = false
- o502.LightEmission = 1
- o502.Texture = "rbxassetid://253975502"
- o502.Acceleration = Vector3.new(0, -50, 0)
- o502.Rate = 40
- o502.RotSpeed = NumberRange.new(-50,50)
- o502.Speed = NumberRange.new(15,15)
- o502.VelocitySpread = 50
- o503.Name = "Collide"
- o503.Parent = mas
- o503.SoundId = "rbxassetid://215550851"
- o503.Volume = 5
- o504.Name = "Break"
- o504.Parent = mas
- o504.SoundId = "rbxassetid://1228439088"
- o504.Volume = 5
- o505.Name = "Crash"
- o505.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- function crashed(hit)
- if script.Parent.Velocity.Magnitude > hit.Velocity.Magnitude + 45 and hit.CanCollide == true or hit.Velocity.Magnitude > script.Parent.Velocity.Magnitude + 35 then
- script.Disabled = true
- script.Parent.Health.Value = script.Parent.Health.Value - script.Parent.Velocity.Magnitude / 1.25
- wait()
- if script.Parent.Health.Value > 0 then
- script.Parent.Sparks.Enabled = true
- local sound = math.random(1, 2)
- if sound == 1 then
- script.Parent.Collide.SoundId = "rbxassetid://490314550"
- end
- if sound == 2 then
- script.Parent.Collide.SoundId = "rbxassetid://215550851"
- end
- script.Parent.Collide.Playing = true
- wait(0.5)
- script.Parent.Sparks.Enabled = false
- wait()
- script.Disabled = false
- else
- script.Disabled = true
- script.Parent:BreakJoints()
- script.Parent.CanCollide = true
- script.Parent.Break.Playing = true
- script.Parent.Parent = workspace
- wait(15)
- script.Parent:remove()
- end
- end
- end
- script.Parent.Touched:connect(crashed)
- end,o505)
- end))
- o512.Name = "Misc"
- o512.Parent = o442
- o513.Name = "PassengerSeat"
- o513.Parent = o512
- o513.Material = Enum.Material.SmoothPlastic
- o513.BrickColor = BrickColor.new("Bright blue")
- o513.Transparency = 1
- o513.Position = Vector3.new(38.9480286, 0.73585999, 136.032013)
- o513.Rotation = Vector3.new(9.97999954, 0.00999999978, 0.00999999978)
- o513.Anchored = true
- o513.CanCollide = false
- o513.Elasticity = 0
- o513.Size = Vector3.new(1.22171223, 0.610856116, 1.22170961)
- o513.CFrame = CFrame.new(38.9480286, 0.73585999, 136.032013, 1.00000072, -0.000151933142, 0.00019220775, 0.000182957592, 0.984855175, -0.173383266, -0.000162953889, 0.173383161, 0.984854519)
- o513.BackSurface = Enum.SurfaceType.Unjoinable
- o513.BottomSurface = Enum.SurfaceType.Unjoinable
- o513.FrontSurface = Enum.SurfaceType.Motor
- o513.LeftSurface = Enum.SurfaceType.Unjoinable
- o513.RightSurface = Enum.SurfaceType.Unjoinable
- o513.TopSurface = Enum.SurfaceType.Hinge
- o513.HeadsUpDisplay = false
- o513.MaxSpeed = 0
- o513.Torque = 0
- o513.TurnSpeed = 0
- o513.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- o513.Position = Vector3.new(38.9480286, 0.73585999, 136.032013)
- o514.Name = "Gui Giver"
- o514.Parent = o513
- o514.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- GUI = script.Parent.Screen
- script.Parent.ChildAdded:connect(function(child)
- if child:IsA("Weld") then
- child.C0 = CFrame.new(0,-0.1,0)*CFrame.fromEulerAnglesXYZ(-(math.pi/2),0,0) --// Reposition player
- if child.Part1.Name == "HumanoidRootPart" then
- player = game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- if player and (not player.PlayerGui:FindFirstChild("Screen")) then --// The part after the "and" prevents multiple GUI's to be copied over.
- GUI.CarSeat.Value = script.Parent --// Puts a reference of the seat in this ObjectValue, now you can use this ObjectValue's value to find the car directly.
- GUI:Clone().Parent = player.PlayerGui --// Compact version
- end
- end
- end
- end)
- script.Parent.ChildRemoved:connect(function(child)
- if child:IsA("Weld") then
- if child.Part1.Name == "HumanoidRootPart" then
- game.Workspace.CurrentCamera.FieldOfView = 70
- player = game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- if player and player.PlayerGui:FindFirstChild("Screen") then
- player.PlayerGui:FindFirstChild("Screen"):Destroy()
- end
- end
- end
- end)
- end,o514)
- end))
- o515.Name = "TheFix"
- o515.Parent = o514
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- wait(2)
- script.Parent.Disabled = false
- end,o515)
- end))
- o516.Name = "Screen"
- o516.Parent = o513
- o517.Name = "CarSeat"
- o517.Parent = o516
- o518.Name = "GuiScript"
- o518.Parent = o516
- o518.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --// SS3.33T Police Edit originally for 2017 Mercedes-Benz E300 by Itzt and MASERATl, base SS by Inspare
- wait(0.1)
- local player = game.Players.LocalPlayer
- local HUB = script.Parent.HUB
- local limitButton = HUB.Name
- local lightOn = false
- local Camera = game.Workspace.CurrentCamera
- local cam = script.Parent.nxtcam.Value
- local carSeat = script.Parent.CarSeat.Value
- local mouse = game.Players.LocalPlayer:GetMouse()
- -------------------------
- mouse.KeyDown:connect(function (key)
- key = string.lower(key)
- if key == "t" then --Camera controls
- if cam == ("car") then
- Camera.CameraSubject = player.Character.Humanoid
- Camera.CameraType = ("Custom")
- cam = ("freeplr")
- Camera.FieldOfView = 70
- limitButton.Text = "Free Camera"
- wait(3)
- limitButton.Text = ""
- elseif cam == ("freeplr") then
- Camera.CameraSubject = player.Character.Humanoid
- Camera.CameraType = ("Attach")
- cam = ("lockplr")
- Camera.FieldOfView = 45
- limitButton.Text = "FPV Camera"
- wait(3)
- limitButton.Text = ""
- elseif cam == ("lockplr") then
- Camera.CameraSubject = carSeat
- Camera.CameraType = ("Custom")
- cam = ("car")
- Camera.FieldOfView = 70
- limitButton.Text = "Standard Camera"
- wait(3)
- limitButton.Text = ""
- end
- end
- end)
- end,o518)
- end))
- o519.Name = "TheFix"
- o519.Parent = o518
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- wait(2)
- script.Parent.Disabled = false
- end,o519)
- end))
- o520.Name = "HUB"
- o520.Parent = o516
- o520.Position = UDim2.new(0,0,0,600)
- o520.Size = UDim2.new(0,140,0,30)
- o520.Position = UDim2.new(0,0,0,600)
- o520.Active = true
- o520.BackgroundColor3 = Color3.new(0, 0, 0)
- o520.BackgroundTransparency = 1
- o520.BorderSizePixel = 0
- o520.Draggable = true
- o521.Name = "Name"
- o521.Parent = o520
- o521.Position = UDim2.new(0,0,0,-40)
- o521.Size = UDim2.new(0,140,0,30)
- o521.Text = "Press T to change views"
- o521.Position = UDim2.new(0,0,0,-40)
- o521.BackgroundColor3 = Color3.new(0, 0, 0)
- o521.BackgroundTransparency = 0.60000002384186
- o521.BorderSizePixel = 0
- o521.Font = Enum.Font.SourceSansLight
- o521.FontSize = Enum.FontSize.Size24
- o521.TextColor3 = Color3.new(1, 1, 1)
- o521.TextScaled = true
- o521.TextWrapped = true
- o522.Name = "nxtcam"
- o522.Parent = o516
- o522.Value = "car"
- o523.Name = "Speed Reader"
- o523.Parent = o442
- o524.Name = "SpeedGUI"
- o524.Parent = o523
- o524.Material = Enum.Material.SmoothPlastic
- o524.BrickColor = BrickColor.new("Black")
- o524.Transparency = 1
- o524.Position = Vector3.new(35.8926163, 3.02791595, 133.174072)
- o524.Rotation = Vector3.new(178.470001, -89.4899979, 88.4799957)
- o524.Anchored = true
- o524.FormFactor = Enum.FormFactor.Symmetric
- o524.Size = Vector3.new(0.276738554, 0.212875783, 0.468326747)
- o524.CFrame = CFrame.new(35.8926163, 3.02791595, 133.174072, 0.000240746958, -0.00906011462, -0.999959767, -1.00000083, 0.000143378726, -0.000242055889, 0.000145565777, 0.999958992, -0.00906007271)
- o524.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o524.Position = Vector3.new(35.8926163, 3.02791595, 133.174072)
- o525.Parent = o524
- o525.Face = Enum.NormalId.Top
- o525.CanvasSize = Vector2.new(200, 100)
- o526.Name = "Gauges"
- o526.Parent = o525
- o526.Position = UDim2.new(1,15,1,0)
- o526.Position = UDim2.new(1,15,1,0)
- o526.BackgroundColor3 = Color3.new(1, 1, 1)
- o526.BackgroundTransparency = 1
- o526.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- o526.BorderSizePixel = 0
- o527.Name = "MPH"
- o527.Parent = o526
- o527.Position = UDim2.new(0,-60,0,-80)
- o527.Position = UDim2.new(0,-60,0,-80)
- o527.BackgroundColor3 = Color3.new(1, 1, 1)
- o527.BackgroundTransparency = 1
- o527.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- o527.BorderSizePixel = 0
- o528.Name = "A"
- o528.Parent = o527
- o528.Size = UDim2.new(0,30,0,50)
- o528.BackgroundColor3 = Color3.new(1, 1, 1)
- o528.BackgroundTransparency = 1
- o528.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- o528.BorderSizePixel = 0
- o528.Image = "http://www.roblox.com/asset/?id=180354115"
- o529.Name = "B"
- o529.Parent = o527
- o529.Position = UDim2.new(0,-35,0,0)
- o529.Size = UDim2.new(0,30,0,50)
- o529.Position = UDim2.new(0,-35,0,0)
- o529.BackgroundColor3 = Color3.new(1, 1, 1)
- o529.BackgroundTransparency = 1
- o529.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- o529.BorderSizePixel = 0
- o529.Image = "http://www.roblox.com/asset/?id=180354115"
- o530.Name = "C"
- o530.Parent = o527
- o530.Position = UDim2.new(0,-70,0,0)
- o530.Size = UDim2.new(0,30,0,50)
- o530.Position = UDim2.new(0,-70,0,0)
- o530.BackgroundColor3 = Color3.new(1, 1, 1)
- o530.BackgroundTransparency = 1
- o530.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- o530.BorderSizePixel = 0
- o530.Image = "http://www.roblox.com/asset/?id=180354115"
- o531.Parent = o527
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --Version 1.43 Made my PistonsofDoom--
- local carSeat=script.Parent.Parent.Parent.Parent
- local numbers={180354176,180354121,180354128,180354131,180354134,180354138,180354146,180354158,180354160,180354168,180355596,180354115}
- while true do
- wait(0.01)
- local value=(carSeat.Velocity.magnitude)/1 --This is the velocity so if it was 1.6 it should work. If not PM me! or comment!--
- if value<10000 then
- local nnnn=math.floor(value/1000)
- local nnn=(math.floor(value/100))-(nnnn*10)
- local nn=(math.floor(value/10)-(nnn*10))-(nnnn*100)
- local n=(math.floor(value)-(nn*10)-(nnn*100))-(nnnn*1000)
- script.Parent.A.Image="http://www.roblox.com/asset/?id="..numbers[n+1]
- if value>=10 then
- script.Parent.B.Image="http://www.roblox.com/asset/?id="..numbers[nn+1]
- else
- script.Parent.B.Image="http://www.roblox.com/asset/?id="..numbers[12]
- end
- if value>=100 then
- script.Parent.C.Image="http://www.roblox.com/asset/?id="..numbers[nnn+1]
- else
- script.Parent.C.Image="http://www.roblox.com/asset/?id="..numbers[12]
- end
- else
- script.Parent.A.Image="http://www.roblox.com/asset/?id="..numbers[10]
- script.Parent.B.Image="http://www.roblox.com/asset/?id="..numbers[10]
- script.Parent.C.Image="http://www.roblox.com/asset/?id="..numbers[10]
- end
- end
- end,o531)
- end))
- o532.Name = "TK"
- o532.Parent = o442
- o534.Name = "Light"
- o534.Parent = mas
- o534.Color = Color3.new(0.666667, 0, 0)
- o534.Enabled = false
- o534.Brightness = 3
- o534.Range = 15
- o534.Shadows = true
- o534.Angle = 50
- o534.Face = Enum.NormalId.Back
- o536.Name = "Light"
- o536.Parent = mas
- o536.Color = Color3.new(0.666667, 0, 0)
- o536.Enabled = false
- o536.Brightness = 3
- o536.Range = 15
- o536.Shadows = true
- o536.Angle = 50
- o536.Face = Enum.NormalId.Back
- o540.Name = "Light"
- o540.Parent = mas
- o540.Enabled = false
- o540.Face = Enum.NormalId.Back
- o541.Name = "Lights"
- o541.Parent = o442
- o543.Name = "Light"
- o543.Parent = mas
- o543.Color = Color3.new(0.654902, 0.956863, 1)
- o543.Enabled = false
- o543.Brightness = 15
- o543.Range = 60
- o543.Shadows = true
- o544.Name = "L"
- o544.Parent = o541
- o544.Material = Enum.Material.SmoothPlastic
- o544.BrickColor = BrickColor.new("Institutional white")
- o544.Transparency = 1
- o544.Position = Vector3.new(37.388588, 1.70590496, 129.609375)
- o544.Rotation = Vector3.new(-0.00999999978, 0.00999999978, 0.00999999978)
- o544.Anchored = true
- o544.CanCollide = false
- o544.FormFactor = Enum.FormFactor.Custom
- o544.Size = Vector3.new(1.17876232, 0.829499125, 0.213045105)
- o544.CFrame = CFrame.new(37.388588, 1.70590496, 129.609375, 1.00000083, -0.000252981525, 0.000148927415, 0.000252959842, 1.00000083, 0.000145601749, -0.000148964144, -0.000145563958, 1)
- o544.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o544.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o544.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o544.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o544.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o544.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o544.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o544.Position = Vector3.new(37.388588, 1.70590496, 129.609375)
- o545.Name = "SpotLight"
- o545.Parent = o544
- o545.Enabled = false
- o545.Brightness = 3
- o545.Range = 50
- o545.Shadows = true
- o545.Angle = 130
- o546.Parent = o544
- o546.Scale = Vector3.new(1, 1, 0.819692135)
- o547.Name = "L2"
- o547.Parent = o541
- o547.Material = Enum.Material.SmoothPlastic
- o547.BrickColor = BrickColor.new("Institutional white")
- o547.Transparency = 1
- o547.Position = Vector3.new(37.388588, 1.70589197, 129.504593)
- o547.Rotation = Vector3.new(-0.00999999978, 0.00999999978, 0.00999999978)
- o547.Anchored = true
- o547.CanCollide = false
- o547.FormFactor = Enum.FormFactor.Custom
- o547.Size = Vector3.new(1.17876232, 0.829499125, 0.213045105)
- o547.CFrame = CFrame.new(37.388588, 1.70589197, 129.504593, 1.00000083, -0.000252981525, 0.000148927415, 0.000252959842, 1.00000083, 0.000145601749, -0.000148964144, -0.000145563958, 1)
- o547.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o547.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o547.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o547.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o547.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o547.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o547.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o547.Position = Vector3.new(37.388588, 1.70589197, 129.504593)
- o548.Name = "SpotLight"
- o548.Parent = o547
- o548.Enabled = false
- o548.Brightness = 3
- o548.Range = 60
- o548.Shadows = true
- o548.Angle = 100
- o549.Parent = o547
- o549.Scale = Vector3.new(1, 1, 0.819692135)
- o551.Name = "Light"
- o551.Parent = mas
- o551.Enabled = false
- o551.Brightness = 15
- o551.Range = 35
- o551.Shadows = true
- o553.Name = "Light"
- o553.Parent = mas
- o553.Enabled = false
- o553.Brightness = 15
- o553.Range = 35
- o553.Shadows = true
- o555.Name = "Light"
- o555.Parent = mas
- o555.Color = Color3.new(0.666667, 0, 0)
- o555.Enabled = false
- o555.Brightness = 3
- o555.Range = 15
- o555.Shadows = true
- o555.Angle = 50
- o555.Face = Enum.NormalId.Back
- o557.Name = "Light"
- o557.Parent = mas
- o557.Color = Color3.new(0.654902, 0.956863, 1)
- o557.Enabled = false
- o557.Brightness = 15
- o557.Range = 60
- o557.Shadows = true
- o558.Name = "SW"
- o558.Parent = o442
- o558.BrickColor = BrickColor.new("Institutional white")
- o558.Transparency = 1
- o558.Position = Vector3.new(35.9575806, 2.86006594, 134.422821)
- o558.Rotation = Vector3.new(-18.0299988, -0.00999999978, 90.0099945)
- o558.Anchored = true
- o558.CanCollide = false
- o558.FormFactor = Enum.FormFactor.Custom
- o558.Size = Vector3.new(0.851503372, 0.851503134, 0.851503074)
- o558.CFrame = CFrame.new(35.9575806, 2.86006594, 134.422821, -0.000228932768, -1.00000083, -0.000111834393, 0.950899363, -0.000252304919, 0.309502423, -0.309502214, -3.54879558e-05, 0.950898707)
- o558.BackSurface = Enum.SurfaceType.Unjoinable
- o558.BottomSurface = Enum.SurfaceType.Smooth
- o558.LeftSurface = Enum.SurfaceType.Unjoinable
- o558.TopSurface = Enum.SurfaceType.Unjoinable
- o558.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o558.Position = Vector3.new(35.9575806, 2.86006594, 134.422821)
- o559.Name = "Exhaust"
- o559.Parent = o442
- o560.Name = "E1"
- o560.Parent = o559
- o560.Material = Enum.Material.SmoothPlastic
- o560.BrickColor = BrickColor.new("Smoky grey")
- o560.Transparency = 1
- o560.Position = Vector3.new(34.5612335, 1.32983601, 144.615982)
- o560.Rotation = Vector3.new(5.96000004, -88.5, -82.9899979)
- o560.Anchored = true
- o560.CanCollide = false
- o560.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- o560.CFrame = CFrame.new(34.5612335, 1.32983601, 144.615982, 0.00319975708, 0.0260199644, -0.999657214, -0.999827743, 0.0184013266, -0.00272133737, 0.0183241777, 0.999492109, 0.0260743257)
- o560.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o560.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o560.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o560.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o560.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o560.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o560.Color = Color3.new(0.356863, 0.364706, 0.411765)
- o560.Position = Vector3.new(34.5612335, 1.32983601, 144.615982)
- o561.Parent = o560
- o561.Pitch = 0.89999997615814
- o561.Volume = 10
- o562.Name = "Afterburn"
- o562.Parent = o560
- o562.Transparency = NumberSequence.new(1,1)
- o562.Rotation = NumberRange.new(180,180)
- o562.Size = NumberSequence.new(0.3125,0.8125,0.1875)
- o562.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(0, 0, 0.498039),Color3.new(1, 0.333333, 0),Color3.new(1, 0.333333, 0))
- o562.LightEmission = 0.80000001192093
- o562.Texture = "rbxassetid://462433141"
- o562.Acceleration = Vector3.new(0, 0, 5)
- o562.Lifetime = NumberRange.new(0.090000003576279,0.15000000596046)
- o562.Rate = 0
- o562.RotSpeed = NumberRange.new(9000,9000)
- o562.Speed = NumberRange.new(15,15)
- o562.VelocitySpread = 1
- o563.Name = "L"
- o563.Parent = o560
- o563.Color = Color3.new(0.74902, 0.52549, 1)
- o563.Brightness = 0
- o563.Range = 0
- o564.Name = "E2"
- o564.Parent = o559
- o564.Material = Enum.Material.SmoothPlastic
- o564.BrickColor = BrickColor.new("Smoky grey")
- o564.Transparency = 1
- o564.Position = Vector3.new(40.3108749, 1.33174896, 144.615768)
- o564.Rotation = Vector3.new(90, -90, 0)
- o564.Anchored = true
- o564.CanCollide = false
- o564.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- o564.CFrame = CFrame.new(40.3108749, 1.33174896, 144.615768, 0.000241421018, 2.36195842e-06, -1.00000083, -1.00000083, 1.69988652e-07, -0.000241421018, 1.69418286e-07, 1, 2.36199753e-06)
- o564.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o564.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o564.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o564.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o564.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o564.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o564.Color = Color3.new(0.356863, 0.364706, 0.411765)
- o564.Position = Vector3.new(40.3108749, 1.33174896, 144.615768)
- o565.Name = "S"
- o565.Parent = o564
- o565.Pitch = 0
- o565.Volume = 10
- o565.Looped = true
- o566.Name = "Afterburn"
- o566.Parent = o564
- o566.Transparency = NumberSequence.new(1,1)
- o566.Rotation = NumberRange.new(180,180)
- o566.Size = NumberSequence.new(0.3125,0.8125,0.1875)
- o566.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(0, 0, 0.498039),Color3.new(1, 0.333333, 0),Color3.new(1, 0.333333, 0))
- o566.LightEmission = 0.80000001192093
- o566.Texture = "rbxassetid://462433141"
- o566.Acceleration = Vector3.new(0, 0, 5)
- o566.Lifetime = NumberRange.new(0.090000003576279,0.15000000596046)
- o566.Rate = 0
- o566.RotSpeed = NumberRange.new(9000,9000)
- o566.Speed = NumberRange.new(15,15)
- o566.VelocitySpread = 1
- o567.Name = "L"
- o567.Parent = o564
- o567.Color = Color3.new(0.74902, 0.52549, 1)
- o567.Brightness = 0
- o567.Range = 0
- o568.Name = "License Plate"
- o568.Parent = o442
- o568.Material = Enum.Material.SmoothPlastic
- o568.BrickColor = BrickColor.new("Really black")
- o568.Position = Vector3.new(37.3846207, 1.56812894, 144.649277)
- o568.Rotation = Vector3.new(177.839996, -1.49000001, 179.789993)
- o568.Anchored = true
- o568.CanCollide = false
- o568.Elasticity = 0
- o568.FormFactor = Enum.FormFactor.Custom
- o568.Friction = 0.69999998807907
- o568.Size = Vector3.new(1.29561448, 0.588916183, 0.200000003)
- o568.CFrame = CFrame.new(37.3846207, 1.56812894, 144.649277, -0.999655545, -0.00371213816, -0.0260131322, -0.00273193745, 0.999289393, -0.0376157612, 0.0261342395, -0.0375316814, -0.99895364)
- o568.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o568.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o568.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o568.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o568.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o568.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o568.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o568.Position = Vector3.new(37.3846207, 1.56812894, 144.649277)
- o569.Name = "S"
- o569.Parent = o568
- o569.CanvasSize = Vector2.new(210, 60)
- o570.Name = "T"
- o570.Parent = o569
- o570.Position = UDim2.new(0,1,0,3)
- o570.Size = UDim2.new(1,0,1,0)
- o570.Text = ""
- o570.Position = UDim2.new(0,1,0,3)
- o570.BackgroundColor3 = Color3.new(1, 1, 1)
- o570.BackgroundTransparency = 1
- o570.BorderColor3 = Color3.new(0.0705882, 0.0705882, 0.0627451)
- o570.BorderSizePixel = 0
- o570.ZIndex = 2
- o570.ClearTextOnFocus = false
- o570.Font = Enum.Font.Highway
- o570.FontSize = Enum.FontSize.Size48
- o570.TextColor3 = Color3.new(0, 0, 0.313726)
- o570.TextStrokeColor3 = Color3.new(1, 1, 1)
- o570.TextWrapped = true
- o571.Parent = o568
- o571.Offset = Vector3.new(0, 0, 0.00800000038)
- o571.Scale = Vector3.new(1, 1, 0.571637094)
- o572.Name = "s"
- o572.Parent = o568
- o572.Texture = "rbxassetid://575391537"
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
- game:GetService("Lighting").Brightness = 1
- game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
- game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
- game:GetService("Lighting").GlobalShadows = true
- game:GetService("Lighting").OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
- game:GetService("Lighting").Outlines = false
- game:GetService("Lighting").GeographicLatitude = 41.733299255371
- game:GetService("Lighting").TimeOfDay = "14:00:00"
- game:GetService("Lighting").FogColor = Color3.new(0.75, 0.75, 0.75)
- game:GetService("Lighting").FogEnd = 100000
- game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement