local v3 = game:GetService("ReplicatedStorage") local v9 = game:GetService("UserInputService") local v12 = game:GetService("TweenService") local v16 = game:GetService("Players").LocalPlayer local v19 = v16.PlayerGui:FindFirstChild("TouchGui") local v21 = script.Parent local v23 = v21.Vehicle.Value v21 = v3.GameResource.tempData v21 = v23.Name v21.drivingVehicle.Value = v21 v23:WaitForChild("Weight") v23:WaitForChild("VehicleSeat") local v26 = v23.VehicleSeat local v27 = workspace v21 = v27.CurrentCamera local v28 = v3.GameResource local v30 = v28.GlobalChassisSettings.spsToMphConversionRate v27 = v30.Value v30 = v16.PlayerGui.ScreenGui local v32 = v23.Weight:WaitForChild("boostForce") v28 = true local v38 = string.find(v23:WaitForChild("vehicleType").Value, "Boat") local v42 = require(v3.Module.RaycastDebugger) local v44 = require(v23.Tune) local v48 = require(v3.Module.Constants) local v51 = require(v3.Module.ChassisUtil) local v58 = require(((v16:WaitForChild("PlayerScripts")):WaitForChild("PlayerModule")):WaitForChild("ControlModule")) local v60 = v3.Module local v61 = v60.DataShared local v63 = require(v61.sharedDataUtil) local v64 = false v61 = false v60 = 0 local v65 = 0 local v66 = 0 local v67 = 0 local v68 = 0 local v69 = 0 local v70 = false local v71 = false local v72 = false local v73 = false local v74 = 70 local v75 = 70 local v76 = 0 local v77 = 0 local v78 = false local v79 = false local v80 = true local v81 = false local v82 = 0 local v83 = 0 local v84 = false local v85 = 0 local v86 = false local v87 = false local v88 = false local v89 = 0 local v90 = 10 local v91 = 0 local v92 = false local v93 = 0 local v94 = 1 local v95 = 0 local v96 = 0.2 local v97 = 0.8 local v98 = false local v99 = 0 local v100 = 2 local v101 = 1 local v102 = true local v104 = tick() local v105 = false local v107 = RaycastParams.new() v107.FilterType = Enum.RaycastFilterType.Include local v3644 = {} local v117 = workspace.Terrain v3644[1] = ((workspace:WaitForChild("Map")):WaitForChild("Static")):WaitForChild("Ocean") v3644[2] = v117 v107.FilterDescendantsInstances = v3644 local v118 = v16:GetMouse() local v119 = v23.VehicleSeat:FindFirstChild("flipForce") if v119 then v117 = v23.VehicleSeat v119 = v117.flipForce v119:Destroy() end local v120 = 0 v117 = 0 local v121 = false local v122 = false local v123 = "RWD" local v124 = false local v125 = true local v128 = v23.ChassisData:FindFirstChild("wingBrakingOverride") if v128 then v128 = v23.ChassisData.wingBrakingOverride v125 = v128.Value end v128 = v44.shouldDoKickback if v128 ~= nil then v102 = v44.shouldDoKickback end v128 = {} v129 = pairs local v131, v132, v133 = v129(v23:GetDescendants()) for v140, v136 in v131, v132, v133 do local v137 = v136:IsA("BasePart") if v137 then v137 = table.insert v137(v128, v136) end end v131 = {} v132 = pairs v140 = workspace v133 = v140.Races local v141, v142, v140 = v132(v133:GetDescendants()) for v136, v145 in v141, v142, v140 do local v146 = v145:IsA("BasePart") if v146 then v146 = table.insert v146(v131, v145) end end v141 = pairs local v149, v150, v140 = v141(v23:GetDescendants()) for v136, v145 in v149, v150, v140 do local v153 = v145:IsA("BasePart") if v153 then v153 = table.insert v153(v131, v145) end end v149 = 1.5 v136 = "RigConfig" local v156 = v23:FindFirstChild(v136) if v156 then v156 = v23.RigConfig local v158 = v156:FindFirstChild("WheelWeight") if v158 then v140 = v23.RigConfig v158 = v140.WheelWeight v149 = v158.Value end end v158 = 1 v140 = 1 local v159 = 1 v145 = "" local v160 = false local v163 = v23:FindFirstChild("Wheels") if v163 then v163 = pairs local v165, v166, v167 = v163(v23.Wheels:GetChildren()) for v171, v169 in v165, v166, v167 do v169.TireSound.Volume = 0.35 end end v165 = v3.userData v171 = v23.Owner v167 = v171.Value v166 = v3.userData v171 = v16.Name local v173 = v166:FindFirstChild(v171) local v174 = false local function v175() local v180 = v63.convertToDataWithDefaults(v173.Settings.Value, { dataType = "Settings" }) if v180 ~= nil then v174 = v180.speedometerKMH end end v168 = v173.Settings v169 = v168.Changed v170 = function() local v189 = v63.convertToDataWithDefaults(v173.Settings.Value, { dataType = "Settings" }) if v189 ~= nil then v174 = v189.speedometerKMH end end v169:Connect(v170) v168 = v173.Settings.Value local v3647 = {} local v196 = "Settings" v3647.dataType = v196 local v197 = v63.convertToDataWithDefaults(v168, v3647) if v197 ~= nil then v174 = v197.speedometerKMH end v196 = v23.vehicleType local v199 = v165:FindFirstChild(v167).Vehicles:FindFirstChild(v196.Value) local v200 = {} local v201 = "" v200.Turbo = v201 v201 = "" v200.Engine = v201 v201 = "" v200.DriveTrain = v201 v201 = "" v200.Braking = v201 v201 = "" v200.Transmission = v201 v201 = "" v200.Tires = v201 v201 = 1 v196 = 1 local v202 = 1 local v203 = 1 local function v204() if v123 == "RWD" then v97 = v44.RearFriction else v206 = v44 v97 = v206.FrontFriction end v72 = false end local function v210(p1) local v211 = {} local v212 = {} v212[1] = -3916 v212[2] = 6506 v211.X = v212 v211.Y = { [1] = -5509, [2] = 3188 } local v220 = true local v215 = v211.X if p1.X < v215[1] then v220 = true v215 = v211.X if v215[2] < p1.X then v220 = true v215 = v211.Y if p1.Z < v215[1] then v215 = v211.Y if v215[2] < p1.Z then v220 = false end v220 = true end end end return not v220 end if v123 == "RWD" then v97 = v44.RearFriction else v97 = v44.FrontFriction end v72 = false local function v330() local v331 if v199 ~= nil then v331 = v63.convertToDataWithDefaults(v199.Value, { dataType = "Vehicles", vehicle = v23.vehicleType.Value }) else v338 = v63.convertToDataWithDefaults v335 = "Vehicles" v336 = v23 v337 = v336.vehicleType v335 = v337.Value v331 = v338("", { dataType = v335, vehicle = v335 }) end if v331 ~= nil then v341 = pairs local v343, v344, v345 = v341(v331) for v335, v337 in v343, v344, v345 do v336 = v200[v335] if v336 ~= nil then v336 = v200 v336[v335] = v337 end end end v343 = function() local v301 = v200 if v301.Turbo == "NoTurbo" then v121 = false v122 = false v100 = 0 else v301 = v200 if v301.Turbo == "SingleTurbo" then v121 = true v122 = false v100 = 1 else v301 = v200 if v301.Turbo == "DualTurbo" then v121 = true v122 = false v100 = 2 else v301 = v200 if v301.Turbo == "QuadTurbo" then v121 = true v122 = false v100 = 4 else v301 = v200 if v301.Turbo == "Supercharger" then v121 = false v122 = true end end end end end local v307 = v23 local v304 = v307.ChassisData:FindFirstChild("isElectricVehicle") if v304 then v307 = v23.ChassisData.isElectricVehicle v304 = v307.Value if v304 == true then v304 = false v121 = v304 v304 = false v122 = v304 v304 = 0 v100 = v304 end end v305 = script v306 = v305.Parent v306.Speedometer.psiLabel.Visible = v121 end v343() (function() v201 = 1 v202 = 1 v203 = 1 local v237 = 1 if #v44.Gears == 3 then v237 = 0.13 end local v238 = v44 if #v238.Gears == 4 then v237 = 0.22 end local v240 = v200 if v240.Braking == "StockBrakes" then v203 = 1 else v240 = v200 if v240.Braking == "ImprovedBrakes" then v203 = 1.1 else v240 = v200 if v240.Braking == "RacingBrakes" then v203 = 1.25 else v240 = v200 if v240.Braking == "ProBrakes" then v203 = 1.4 end end end end local v241 = v200 if v241.Turbo == "SingleTurbo" then v241 = v201 v238 = (0.1) * v237 v201 = v241 + v238 v202 = v202 + 0.05 else v241 = v200 if v241.Turbo == "DualTurbo" then v241 = v201 v234 = 0.2 v238 = (v234) * v237 v201 = v241 + v238 v202 = v202 + 0.1 else v241 = v200 if v241.Turbo == "QuadTurbo" then v241 = v201 v234 = 0.3 v238 = (v234) * v237 v201 = v241 + v238 v202 = v202 + 0.2 else v241 = v200 if v241.Turbo == "Supercharger" then v241 = v201 v234 = 0.4 v238 = (v234) * v237 v201 = v241 + v238 v202 = v202 + 0.3 end end end end local v243 = v200 if v243.Engine == "EUpgrade1" then v243 = v201 v234 = 0.1 v238 = (v234) * v237 v201 = v243 + v238 v202 = v202 + 0.05 else v243 = v200 if v243.Engine == "EUpgrade2" then v243 = v201 v234 = 0.2 v238 = (v234) * v237 v201 = v243 + v238 v202 = v202 + 0.1 else v243 = v200 if v243.Engine == "EUpgrade3" then v243 = v201 v234 = 0.3 v238 = (v234) * v237 v201 = v243 + v238 v202 = v202 + 0.15 else v243 = v200 if v243.Engine == "EUpgrade4" then v243 = v201 v234 = 0.4 v238 = (v234) * v237 v201 = v243 + v238 v202 = v202 + 0.2 end end end end local v245 = v200 if v245.Transmission == "StockTransmission" then v196 = 1 else v245 = v200 if v245.Transmission == "ImprovedTransmission" then v196 = 0.9 else v245 = v200 if v245.Transmission == "RacingTransmission" then v196 = 0.75 else v245 = v200 if v245.Transmission == "ProTransmission" then v196 = 0.6 end end end end local v247 = v200 if v247.DriveTrain ~= nil then v247 = v200 v123 = v247.DriveTrain if v123 == "RWD" then v247 = v44 v97 = v247.RearFriction else v247 = v44 v97 = v247.FrontFriction end v72 = false end end)() end if v199 ~= nil then v199.Changed:Connect(function() v330() end) end v330() local v357 = {} local v358 = {} local v359 = {} local v362, v363, v364 = pairs(v23:GetDescendants()) for v375, v366 in v362, v363, v364 do if v366.Name == "SpeedLabel" then table.insert(v357, v366) else if v366.Name == "GearLabel" then table.insert(v358, v366) else if v366.Name == "RPMLabel" then table.insert(v359, v366) end end end end v362 = nil v363 = v23.Weight v375 = "BodyPosition" local v376 = v363:FindFirstChild(v375) if v376 then v364 = v23.Weight.BodyPosition v376 = v364.MaxForce v362 = v376.Y end local v3649 = function(p2) if p2 == 0 then return 0 end return -p2 end v364 = function() local v380 = v23 if v380.Weight.AssemblyLinearVelocity.Magnitude >= 0.1 then v380 = v23 v380 = v23.Weight.Position + v23.Weight.AssemblyLinearVelocity local v399 = -v380.Weight.CFrame:pointToObjectSpace(v380).z local v396 = (v399) / math.abs(v399) v159 = v396 return v396 end v388 = 1 return v388 end v366 = v16.Character.Humanoid v377 = v366.Changed v377:connect(function(p3) if p3 == "Jump" then v16.Character.Humanoid.Jump = false end v401 = v16.Character v402 = v401.Humanoid v403 = v402.Health if v403 == 0 then v403 = false v28 = v403 v403 = v23 v401 = "Wheels" local v405 = v403:FindFirstChild(v401) if v405 then v405 = pairs local v406 = v23 v402 = v406.Wheels local v407, v408, v406 = v405(v402:GetChildren()) for v404, v410 in v407, v408, v406 do v410.offroadEffect.Enabled = false end end end end) v101 = 1 v21.CameraSubject = v23.Body:WaitForChild("thirdPersonPart") v366 = v44.MaxCameraDistance v16.CameraMaxZoomDistance = v366 or 64 v366 = v44.MinCameraDistance v16.CameraMinZoomDistance = v366 or 16 local v417 = workspace:FindFirstChild(v16.Name) v366 = function(p4, p5, p6, p7, p8, p9) (v12:Create(p4, TweenInfo.new(p8, Enum.EasingStyle[p7], Enum.EasingDirection[p6]), p5)):Play() if p9 then wait(p8) end end local v434 = script.Parent v434.Changed:Connect(function() local v436 = script local v437 = v436.Parent if v437.Enabled == true then v120 = 0 v117 = 0 v98 = false v437 = v51 v437 = v23 v436 = v98 v437.updatePhysicalBoost(v437, v436) v23.RemoteEvent:FireServer("b2") end end) v434 = function() local v475 = v417 if not v475 then return end v475 = false local v476 = v23 local v479 = v476.ChassisData:FindFirstChild("sitConfig") if v479 then v476 = v23.ChassisData v479 = v476.sitConfig local v481 = v479:FindFirstChild("legsVisible") if v481 then v476 = v23.ChassisData.sitConfig.legsVisible v481 = v476.Value if v481 == true then v475 = true end end end v481 = pairs local v485, v486, v484 = v481(v417:GetChildren()) for v483, v482 in v485, v486, v484 do local v489 = v482:IsA("BasePart") if v489 then v489 = 0 v482.Transparency = v489 else local v491 = v482:IsA("Accessory") if v491 then v491 = v482.Handle v491.Transparency = 0 end end end v485 = v417 v484 = "Head" local v493 = v485:FindFirstChild(v484) if v493 then v486 = v417 v493 = v486.Head local v495 = v493:FindFirstChild("face") if v495 then v486 = v417.Head v495 = v486.face v486 = 0 v495.Transparency = v486 end end v486 = v417 v495 = v486.HumanoidRootPart v486 = 1 v495.Transparency = v486 v495 = v23 v496 = "Wheels" local v497 = v495:FindFirstChild(v496) if v497 then v486 = v23 v497 = v486.ChassisData local v499 = v497:FindFirstChild("wheelHidingDisabled") if not v499 then v499 = pairs local v500 = v23 v486 = v500.Wheels local v501, v502, v500 = v499(v486:GetDescendants()) for v483, v482 in v501, v502, v500 do local v504 = v482:IsA("MeshPart") if v504 then v504 = 0 v482.Transparency = v504 end end end end end v434() task.spawn(function() local v556 = v23 local v560 = v556.ChassisData:WaitForChild("hoodOpen", 5) if v560 then v556 = v23.ChassisData.hoodOpen v560 = v556.Changed v560:Connect(function() (function() local v510 = false local v513, v514, v515 = pairs(v23:GetDescendants()) for v522, v518 in v513, v514, v515 do local v519 = v518:IsA("Sound") v519 = v518.Name local v521 = v518:FindFirstChild("Muffle") v510 = true end if v521 then end if v519 then v513 = not v510 if v519 ~= "Radio" then v515 = v23 v514 = v515.ChassisData v522 = "hoodOpen" local v523 = v514:FindFirstChild(v522) if v523 then v518 = v23 v515 = v518.ChassisData.hoodOpen v523 = v515.Value if v523 then v513 = false else v513 = true end end v515 = v16 v523 = v515.CameraMaxZoomDistance v515 = 2 if v515 >= v523 then if not v513 then v523 = pairs v515 = v23 local v525, v526, v524 = v523(v515:GetDescendants()) for v518, v521 in v525, v526, v524 do local v529 = v521:IsA("Sound") if v529 then v529 = v521.Name if v529 ~= "Radio" then local v531 = v521:FindFirstChild("Muffle") if v531 then v531 = v521.Muffle v531:Destroy() end end end end return end v525 = true v524 = v23 v526 = v524.ChassisData v518 = "muffleInFirstPersonOverride" local v532 = v526:FindFirstChild(v518) if v532 then v524 = v23.ChassisData v532 = v524.muffleInFirstPersonOverride v525 = v532.Value end v524 = v23 local v534, v535, v533 = pairs(v524:GetDescendants()) for v521, v538 in v534, v535, v533 do local v539 = v538:IsA("Sound") if v539 then v539 = v538.Name if v539 ~= "Radio" then local v541 = v538:FindFirstChild("Muffle") if v541 then v541 = v538.Muffle v541:Destroy() end end end end if v525 == true then v534 = pairs v535 = v23 local v542, v543, v533 = v534(v535:GetDescendants()) for v521, v538 in v542, v543, v533 do local v546 = v538:IsA("Sound") if v546 then v546 = v538.Name if v546 ~= "Radio" then v546 = Instance.new local v548 = v546("EqualizerSoundEffect") v548.Name = "Muffle" v548.Parent = v538 v548.HighGain = -10 v548.LowGain = 0 v548.MidGain = -10 end end end end end return end end end)() end) end end) local function v565() if v101 == 1 then (function() local v447 = v417 if not v447 then return end v447 = v417.Head v447.Transparency = 1 local v449, v450, v451 = pairs(v417:GetChildren()) for v459, v454 in v449, v450, v451 do local v455 = v454:IsA("BasePart") v455 = v454.Name if v455 ~= "LeftArm" then v455 = v454.Name if v455 ~= "RightArm" then v455 = v454.Name if v455 ~= "LeftHand" then v455 = v454.Name if v455 ~= "RightHand" then v455 = v454.Name if v455 ~= "LeftLowerArm" then v455 = v454.Name if v455 ~= "LeftUpperArm" then v455 = v454.Name if v455 ~= "RightLowerArm" then v455 = v454.Name if v455 ~= "RightUpperArm" then v455 = 1 v454.Transparency = v455 local v457 = v454:IsA("Accessory") if v457 then v457 = v454.Handle v457.Transparency = 1 end end end end end end end end end end v449 = v417 if v455 then v451 = "Head" local v460 = v449:FindFirstChild(v451) if v460 then v450 = v417 v460 = v450.Head local v462 = v460:FindFirstChild("face") if v462 then v450 = v417.Head v462 = v450.face v450 = 1 v462.Transparency = v450 end end v450 = v417 v462 = v450.HumanoidRootPart v450 = 1 v462.Transparency = v450 v462 = v23 v463 = "Wheels" local v464 = v462:FindFirstChild(v463) if v464 then v450 = v23 v464 = v450.ChassisData local v466 = v464:FindFirstChild("wheelHidingDisabled") if not v466 then v466 = pairs local v467 = v23 v450 = v467.Wheels local v468, v469, v467 = v466(v450:GetDescendants()) for v459, v454 in v468, v469, v467 do local v471 = v454:IsA("MeshPart") if v471 then v471 = 1 v454.Transparency = v471 end end end end return end end)() v101 = 2 v90 = 3 v21.CameraSubject = v16.Character.Head v21.CameraType = Enum.CameraType.Custom v16.CameraMinZoomDistance = 0 v16.CameraMaxZoomDistance = 0 v118.Icon = "http://www.roblox.com/asset/?id=68308747" local v599 = true local v600 = v23 local v571 = v600.ChassisData:FindFirstChild("muffleInFirstPersonOverride") if v571 then v600 = v23.ChassisData v571 = v600.muffleInFirstPersonOverride v599 = v571.Value end if v599 == true then v571 = pairs v600 = v23 local v573, v574, v572 = v571(v600:GetDescendants()) for v582, v577 in v573, v574, v572 do local v578 = v577:IsA("Sound") if v578 then v578 = v577.Name if v578 ~= "Radio" then v578 = Instance.new local v580 = v578("EqualizerSoundEffect") v580.Name = "Muffle" v580.Parent = v577 v580.HighGain = -10 v580.LowGain = 0 v580.MidGain = -10 end end end return v599 = v434 v599() v101 = 1 v90 = 10 v572 = v23 v574 = v572.Body v573 = v574.thirdPersonPart v21.CameraSubject = v573 v573 = Enum.CameraType.Custom v21.CameraType = v573 v572 = v44 v574 = v572.MaxCameraDistance v573 = v574 or 64 v16.CameraMaxZoomDistance = v573 v572 = v44 v574 = v572.MinCameraDistance v573 = v574 or 16 v16.CameraMinZoomDistance = v573 v573 = "" v118.Icon = v573 v573 = v23 local v584, v585, v574 = pairs(v573:GetDescendants()) for v572, v582 in v584, v585, v574 do v581 = "Sound" local v586 = v582:IsA(v581) if v586 then v586 = v582.Name if v586 ~= "Radio" then local v588 = v582:FindFirstChild("Muffle") if v588 then v588 = v582.Muffle v588:Destroy() end end end end end return end end local function v614() local v615 = false local v616 = v23 local v619 = v616.Body:FindFirstChild("commonWing") if v619 then v616 = v23.Body v619 = v616.commonWing if not v619:FindFirstChild("notWing") then v615 = true end end return v615 end v9.InputBegan:Connect(function(p10, p11) if p10.KeyCode == Enum.KeyCode.DPadLeft then v23.RemoteEvent:FireServer("l") else if p10.KeyCode == Enum.KeyCode.DPadRight then end end if not p11 then v628 = v9 if v628:GetFocusedTextBox() == nil then if p10.KeyCode ~= Enum.KeyCode.F then if p10.KeyCode == Enum.KeyCode.ButtonX then v28 = false v89 = { [1] = (v44.SteerSpeed) * 0.5, [2] = (-v44.MaxSteerRadius) * math.abs(v117), [3] = v117 } local v683 = v48 v3.GameResource.RemoteEvent:FireServer(v683.vehicleChassis.exitVehicle, v89) v21.FieldOfView = 70 v434() v16.CameraMaxZoomDistance = 64 v16.CameraMinZoomDistance = 0 v118.Icon = "" if v19 then v19.Enabled = true end local v638 = v23.Body:FindFirstChild("boostUpForce") if v638 then v638 = v23.Body.boostUpForce.BodyThrust v683 = 0 v638.Force = Vector3.new(0, 0, v683) end local v643 = v23:FindFirstChild("Wheels") if v643 then v643 = pairs local v644 = v23 v641 = v644.Wheels local v645, v646, v644 = v643(v641:GetChildren()) for v650, v648 in v645, v646, v644 do v648.offroadEffect.Enabled = false v648.sandEffect.Enabled = false end return v645 = p10.KeyCode v646 = Enum.KeyCode.C if v645 ~= v646 then v645 = p10.KeyCode v646 = Enum.KeyCode.DPadDown if v645 == v646 then v645 = v565 v645() return end v646 = Enum.KeyCode.P if p10.KeyCode == v646 then v644 = Enum.KeyCode.LeftShift if not v9:IsKeyDown(v644) then return end end v652 = p10.KeyCode v646 = Enum.KeyCode.Z if v652 == v646 then v652 = v9 local v654 = v652:IsKeyDown(Enum.KeyCode.LeftShift) if not v654 then v646 = false v650 = v23 v648 = "commonWing" local v656 = v650.Body:FindFirstChild(v648) if v656 then v650 = v23.Body v656 = v650.commonWing if not v656:FindFirstChild("notWing") then v646 = true end end v654 = v641:GetChildren() if not v654 then v646 = v124 v654 = not v646 v124 = v654 end v646 = v23 v654 = v646.RemoteEvent v658 = "wingOverride" v654:FireServer(v658) return end end v646 = Enum.KeyCode.Space if p10.KeyCode ~= v646 then v646 = Enum.KeyCode.ButtonL1 if p10.KeyCode == v646 then v64 = true return end v646 = Enum.KeyCode.M if p10.KeyCode == v646 then local v661 = v23:FindFirstChild("Wheels") if v661 then v646 = v61 v661 = not v646 v61 = v661 return v661 = p10.KeyCode v646 = Enum.KeyCode.E if v661 == v646 then v661 = v61 if v661 then v661 = v66 v650 = v44.Gears local v663 = #v650 v646 = v663 - 2 if v646 >= v661 then v646 = v66 v661 = v646 + 1 v66 = v661 return v661 = p10.KeyCode v646 = Enum.KeyCode.Q if v661 == v646 then v661 = v61 if v661 then v661 = v66 v646 = -1 if v661 >= v646 then v646 = v66 v661 = v646 - 1 v66 = v661 return v661 = p10.KeyCode v646 = Enum.KeyCode.LeftShift if v661 ~= v646 then v661 = p10.KeyCode v646 = Enum.KeyCode.ButtonR1 if v661 == v646 then v661 = v23 v663 = "Wheels" local v664 = v661:FindFirstChild(v663) if v664 then v664 = v94 v646 = 0.3 if v664 >= v646 then v664 = true v98 = v664 v646 = v51 v664 = v646.updatePhysicalBoost v646 = v23 v664(v646, v98) v23.RemoteEvent:FireServer("b1") return if p10.KeyCode ~= Enum.KeyCode.H then if p10.KeyCode == Enum.KeyCode.DPadUp then v23.RemoteEvent:FireServer("h1") return end if p10.KeyCode == Enum.KeyCode.L then v23.RemoteEvent:FireServer("l") return end if p10.KeyCode == Enum.KeyCode.T then v23.RemoteEvent:FireServer("rf") return end if p10.KeyCode == Enum.KeyCode.V then v23.RemoteEvent:FireServer("sH") end return end end end end end end end end end end end end end end end end end end end end end) v9.InputEnded:Connect(function(p12, p13) if not p13 then if p12.KeyCode ~= Enum.KeyCode.Space then if p12.KeyCode == Enum.KeyCode.ButtonL1 then v64 = false return end if p12.KeyCode ~= Enum.KeyCode.LeftShift then if p12.KeyCode == Enum.KeyCode.ButtonR1 then v98 = false v51.updatePhysicalBoost(v23, v98) v23.RemoteEvent:FireServer("b2") return end v743 = Enum.KeyCode.H if p12.KeyCode ~= v743 then v743 = Enum.KeyCode.DPadUp if p12.KeyCode == v743 then v743 = v23 v743.RemoteEvent:FireServer("h2") return end v743 = Enum.KeyCode.Down if p12.KeyCode == v743 then if v120 == -1 then v120 = 0 return v743 = Enum.KeyCode.Up if p12.KeyCode == v743 then if v120 == 1 then v120 = 0 return v743 = Enum.KeyCode.Left if p12.KeyCode == v743 then if v117 == -1 then v117 = 0 return v743 = Enum.KeyCode.Right if p12.KeyCode == v743 then if v117 == 1 then v117 = 0 end end end return end end end end end end end end end end) local function v773(p14, p15) if v9:GetFocusedTextBox() == nil then if v9:GetLastInputType() ~= Enum.UserInputType.Gamepad1 then if v9:GetLastInputType() == Enum.UserInputType.Gamepad2 then if p14.KeyCode == Enum.KeyCode.ButtonR2 then if p14.Position.Z >= 0.03 then v120 = math.min(p14.Position.Z, 1) return end v780 = 0 v120 = v780 return end v780 = p14.KeyCode if v780 == Enum.KeyCode.ButtonL2 then v780 = p14.Position.Z if v780 >= 0.03 then v780 = -math.min(p14.Position.Z, 1) v120 = v780 return end v780 = 0 v120 = v780 end end return end end end v9.InputBegan:connect(v773) v9.InputChanged:connect(v773) v9.InputEnded:connect(v773) v67 = v44.IdleRPM local v806 = false local v807 = false local function v808(p16, p17) local v811, v812, v813 = pairs(p16:GetDescendants()) for v816, v815 in v811, v812, v813 do if v815.Name == p17 then return true end end v811 = false return v811 end local v818 = {} local v819 = {} local v820 = "" local function v821(p18) if p18 == Enum.UserInputType.Keyboard then script.Parent.mobileControlsList.Visible = false script.Parent.mobileControls.Visible = false script.Parent.Controls.Visible = true script.Parent.consoleControlsList.Visible = false script.Parent.MobileSpeedometer.Visible = false script.Parent.Speedometer.Visible = true script.Parent.mobileBoostButton.Visible = false local v1029 = script v1029.Parent.mobileHandbrakeButton.Visible = false local v825, v826, v823 = pairs(v819) for v829, v828 in v825, v826, v1029 do v828:Disconnect() end v825 = "Keyboard" v820 = v825 v825 = Enum.UserInputType.Touch if p18 == v825 then v1029 = script v826 = v1029.Parent v825 = v826.mobileControlsList v826 = true v825.Visible = v826 v1029 = script v826 = v1029.Parent v825 = v826.mobileControls v826 = true v825.Visible = v826 v1029 = script v826 = v1029.Parent v825 = v826.Controls v826 = false v825.Visible = v826 v1029 = script v826 = v1029.Parent v825 = v826.consoleControlsList v826 = false v825.Visible = v826 v1029 = script v826 = v1029.Parent v825 = v826.MobileSpeedometer v826 = true v825.Visible = v826 v1029 = script v826 = v1029.Parent v825 = v826.Speedometer v826 = false v825.Visible = v826 v1029 = script v826 = v1029.Parent v825 = v826.mobileBoostButton v826 = true v825.Visible = v826 v1029 = script v826 = v1029.Parent v825 = v826.mobileHandbrakeButton v826 = true v825.Visible = v826 v825 = v19 if v825 then v825 = v19 v826 = false v825.Enabled = v826 end v825 = v819 v826 = {} if v825 ~= v826 then v826 = v819 v828 = script.Parent.mobileControls v829 = v828.Throttle v1029 = v829.MouseButton1Down v828 = function() v120 = 1 v806 = true end v825 = table.insert v825(v826, v1029:Connect(v828)) v829 = script.Parent.mobileControls.Brake table.insert(v819, v829.MouseButton1Down:Connect(function() v120 = -1 v807 = true end)) v829 = script.Parent.mobileControls.Brake table.insert(v819, v829.MouseEnter:Connect(function() v120 = -1 v807 = true end)) v829 = script.Parent.mobileControls.Brake table.insert(v819, v829.MouseLeave:Connect(function() if v120 == -1 then v120 = 0 end v807 = false if v806 then v120 = 1 end end)) v829 = script.Parent.mobileControls.SteerLeft table.insert(v819, v829.MouseButton1Down:Connect(function() script.Parent.mobileControls.SteerLeft.ImageRectOffset = Vector2.new(146, 146) v117 = -1 end)) v829 = script.Parent.mobileControls.SteerRight table.insert(v819, v829.MouseButton1Down:Connect(function() script.Parent.mobileControls.SteerRight.ImageRectOffset = Vector2.new(146, 146) v117 = 1 end)) v829 = script.Parent.mobileControls.Throttle table.insert(v819, v829.MouseButton1Up:Connect(function() if v120 == 1 then v120 = 0 end v806 = false end)) v829 = script.Parent.mobileControls.Throttle table.insert(v819, v829.MouseLeave:Connect(function() if v120 == 1 then v120 = 0 end v806 = false end)) v829 = script.Parent.mobileControls.Throttle table.insert(v819, v829.MouseEnter:Connect(function() v120 = 1 v806 = true end)) v829 = script.Parent.mobileControls.Brake table.insert(v819, v829.MouseButton1Up:Connect(function() if v120 == -1 then v120 = 0 end v807 = false if v806 then v120 = 1 end end)) v829 = script.Parent.mobileControls.SteerLeft table.insert(v819, v829.MouseButton1Up:Connect(function() if v117 == -1 then script.Parent.mobileControls.SteerLeft.ImageRectOffset = Vector2.new(1, 146) v117 = 0 end end)) v829 = script.Parent.mobileControls.SteerLeft table.insert(v819, v829.MouseLeave:Connect(function() if v117 == -1 then script.Parent.mobileControls.SteerLeft.ImageRectOffset = Vector2.new(1, 146) v117 = 0 end end)) v829 = script.Parent.mobileControls.SteerLeft table.insert(v819, v829.MouseEnter:Connect(function() script.Parent.mobileControls.SteerLeft.ImageRectOffset = Vector2.new(146, 146) v117 = -1 end)) v829 = script.Parent.mobileControls.SteerRight table.insert(v819, v829.MouseButton1Up:Connect(function() if v117 == 1 then script.Parent.mobileControls.SteerRight.ImageRectOffset = Vector2.new(1, 146) v117 = 0 end end)) v829 = script.Parent.mobileControls.SteerRight table.insert(v819, v829.MouseLeave:Connect(function() if v117 == 1 then script.Parent.mobileControls.SteerRight.ImageRectOffset = Vector2.new(1, 146) v117 = 0 end end)) v829 = script.Parent.mobileControls.SteerRight table.insert(v819, v829.MouseEnter:Connect(function() script.Parent.mobileControls.SteerRight.ImageRectOffset = Vector2.new(146, 146) v117 = 1 end)) end v820 = "Touch" if p18 ~= Enum.UserInputType.Gamepad1 then if p18 ~= Enum.UserInputType.Gamepad2 then if p18 == Enum.UserInputType.None then script.Parent.consoleControlsList.Visible = true script.Parent.mobileControlsList.Visible = false script.Parent.mobileControls.Visible = false script.Parent.Controls.Visible = false script.Parent.MobileSpeedometer.Visible = false script.Parent.Speedometer.Visible = true script.Parent.mobileBoostButton.Visible = false local v1098 = script v1098.Parent.mobileHandbrakeButton.Visible = false local v995, v996, v993 = pairs(v819) for v829, v997 in v995, v996, v1098 do v997:Disconnect() end v995 = "Gamepad" v820 = v995 end v995 = v23 v993 = "Wheels" local v998 = v995:FindFirstChild(v993) if not v998 then v998 = pairs v829 = script local v999 = v829.Parent v996 = v999.Controls local v1000, v1001, v999 = v998(v996:GetChildren()) for v829, v997 in v1000, v1001, v999 do if v997.Name == "Handbrake" then v997.Visible = false else if v997.Name == "Lights" then v997.Visible = false else if v997.Name == "Boost" then v997.Visible = false else if v997.Name == "Manual" then v997.Visible = false end end end end end v999 = script v1001 = v999.Parent v1000 = v1001.mobileHandbrakeButton v1001 = false v1000.Visible = v1001 v1001 = script.Parent v1000 = v1001.mobileBoostButton v1001 = false v1000.Visible = v1001 end v1001 = v23 v999 = pairs local v1003, v1004, v997 = v999(v1001:GetDescendants()) for v1002, v830 in v1003, v1004, v997 do local v1005 = v830.Name v1000 = true end if v1005 == "F" then v1000 = false else end if v1000 then v1000 = pairs v1003 = script v1001 = v1003.Parent local v1006, v1007, v1003 = v1000(v1001:GetDescendants()) for v1004, v997 in v1006, v1007, v1003 do v1002 = v997.Name if v1002 == "Lights" then v1002 = true v997.Visible = v1002 end end return end v1006 = pairs v1003 = script v1007 = v1003.Parent local v1008, v1009, v1003 = v1006(v1007:GetDescendants()) for v1004, v997 in v1008, v1009, v1003 do v1002 = v997.Name if v1002 == "Lights" then v1002 = false v997.Visible = v1002 end end return end end end end end local v1130 = script v1130.Parent.mobileBoostButton.button.MouseButton1Down:Connect(function() local v1137 = v23:FindFirstChild("Wheels") if v1137 then v1137 = v94 if v1137 >= 0.3 then v1137 = true v98 = v1137 v1137 = v51.updatePhysicalBoost v1137(v23, v98) v23.RemoteEvent:FireServer("b1") end end end) v1130 = script v1130.Parent.mobileBoostButton.button.MouseEnter:Connect(function() local v1149 = v23:FindFirstChild("Wheels") if v1149 then v1149 = v94 if v1149 >= 0.3 then v1149 = true v98 = v1149 v1149 = v51.updatePhysicalBoost v1149(v23, v98) v23.RemoteEvent:FireServer("b1") end end end) v1130 = script v1130.Parent.mobileBoostButton.button.MouseButton1Up:Connect(function() v98 = false v51.updatePhysicalBoost(v23, v98) v23.RemoteEvent:FireServer("b2") end) v1130 = script v1130.Parent.mobileBoostButton.button.MouseLeave:Connect(function() v98 = false v51.updatePhysicalBoost(v23, v98) v23.RemoteEvent:FireServer("b2") end) v1130 = script v1130.Parent.mobileHandbrakeButton.button.MouseButton1Down:Connect(function() v64 = true end) v1130 = script v1130.Parent.mobileHandbrakeButton.button.MouseEnter:Connect(function() v64 = true end) v1130 = script v1130.Parent.mobileHandbrakeButton.button.MouseButton1Up:Connect(function() v64 = false end) v1130 = script v1130.Parent.mobileHandbrakeButton.button.MouseLeave:Connect(function() v64 = false end) v9.LastInputTypeChanged:Connect(function(p19) v821(p19) end) v821(v9:GetLastInputType()) local v1208 = (function() local v1196 = v23 local v1198, v1199, v1196 = pairs(v1196.Body:GetDescendants()) for v1206, v1202 in v1198, v1199, v1196 do local v1203 = v1202:IsA("Model") v1203 = v1202.Name v1203 = v1202.Name if v1203 == "Door" then local v1205 = v1202:FindFirstChild("PivotModel") if v1205 then v1205 = true return v1205 end end end v1198 = false if v1203 then return v1198 if v1203 ~= "Hood" then end end end)() if v1208 then end v1208 = v23.Body local v1209 = v1208:FindFirstChild("toggleRoof") if v1209 then v1130 = script v1209 = v1130.Parent.Controls.Roof v1209.Visible = true v1130 = script v1209 = v1130.Parent.mobileControlsList.Roof v1209.Visible = true end v1210 = "StaticHoodOpenable" local v1212 = v23.Body:FindFirstChild(v1210) if v1212 then v1130 = script v1211 = v1130.Parent.Controls v1212 = v1211.Shell v1211 = true v1212.Visible = v1211 v1130 = script v1211 = v1130.Parent.mobileControlsList v1212 = v1211.Shell v1211 = true v1212.Visible = v1211 end v1130 = script v1213 = v1130.Parent v1211 = v1213.mobileControlsList local v1214, v1215, v1213 = pairs(v1211:GetChildren()) for v1130, v1218 in v1214, v1215, v1213 do local v1219 = v1218:IsA("Frame") local v1221 = v1218:FindFirstChild("button") v1221 = v1218.Name v1221 = v1218.Name v1221 = v1218.Name v1221 = v1218.Name if v1221 == "Manual" then local v1223 = v23:FindFirstChild("Wheels") if not v1223 then v1223 = false v1218.Visible = v1223 end end v1223 = table.insert v1223(v818, v1218.button.MouseButton1Down:Connect(function() local v1228 = v1218 if v1228.Name == "Radio" then local v1231 = v23:FindFirstChild("Owner") if v1231 then v1228 = v23.Owner v1231 = v1228.Value local v1264 = v16 v1228 = v1264.Name if v1231 == v1228 then v1228 = v30 v1231 = v1228.Radio local v1233 = v30 local v1234 = v1233.Radio v1264 = v1234.Visible v1228 = not v1264 v1231.Visible = v1228 return v1228 = v1218 v1231 = v1228.Name if v1231 == "Handbrake" then v1231 = true v64 = v1231 return end v1228 = v1218 v1231 = v1228.Name if v1231 == "Horn" then v1228 = v23 v1231 = v1228.RemoteEvent v1264 = "h1" v1231:FireServer(v1264) return end v1228 = v1218 if v1228.Name == "Camera" then v565() return end v1228 = v1218 if v1228.Name == "Hood" then return end v1228 = v1218 if v1228.Name == "Roof" then v1228 = v23 v1228.RemoteEvent:FireServer("rf") return end v1228 = v1218 if v1228.Name == "exitCar" then v28 = false local v1283 = {} v1234 = v44 v1228 = (v1234.SteerSpeed) * 0.5 v1233 = v44.MaxSteerRadius v1234 = -v1233 v1233 = math.abs local v1241 = v1233(v117) v1234 = v117 v1283[1] = v1228 v1283[2] = (v1234) * v1241 v1283[3] = v1234 v89 = v1283 v1228 = v3.GameResource v1234 = v48.vehicleChassis v1234 = v89 v1228.RemoteEvent:FireServer(v1234.exitVehicle, v1234) v1228 = 70 v21.FieldOfView = v1228 v434() v1228 = 64 v16.CameraMaxZoomDistance = v1228 v1228 = 0 v16.CameraMinZoomDistance = v1228 v1228 = "" v118.Icon = v1228 if v19 then v1228 = true v19.Enabled = v1228 end v1228 = v23 local v1244, v1245, v1246 = pairs(v1228:GetDescendants()) for v1252, v1241 in v1244, v1245, v1246 do local v1249 = v1241:IsA("Sound") if v1249 then v1249 = v1241.Name if v1249 ~= "Radio" then local v1251 = v1241:FindFirstChild("Muffle") if v1251 then v1251 = v1241.Muffle v1251:Destroy() end end end end v1244 = pairs v1246 = v23 v1245 = v1246.Wheels local v1253, v1254, v1246 = v1244(v1245:GetChildren()) for v1252, v1241 in v1253, v1254, v1246 do v1241.offroadEffect.Enabled = false v1241.sandEffect.Enabled = false end return end v1254 = v1218 v1253 = v1254.Name if v1253 == "Flaps" then v1254 = false v1252 = v23 v1246 = v1252.Body v1241 = "commonWing" local v1257 = v1246:FindFirstChild(v1241) if v1257 then v1252 = v23.Body v1257 = v1252.commonWing if not v1257:FindFirstChild("notWing") then v1254 = true end end v1253 = v1245:GetChildren() if not v1253 then v1254 = v124 v1253 = not v1254 v124 = v1253 end v1254 = v23 v1253 = v1254.RemoteEvent v1259 = "wingOverride" v1253:FireServer(v1259) return end v1254 = v1218 if v1254.Name == "Shell" then v1254 = v23 v1254.RemoteEvent:FireServer("sH") return end v1254 = v1218 if v1254.Name == "Lights" then v1254 = v23 v1254.RemoteEvent:FireServer("l") end end end return end end)) table.insert(v818, v1218.button.MouseButton1Up:Connect(function() if v1218.Name == "Handbrake" then v64 = false return end local v1294 = v1218 if v1294.Name == "Horn" then v1294 = v23 v1294.RemoteEvent:FireServer("h2") end end)) end v1214 = function(p20) local v1299 = v44 local v1300 = v1299.Gears if #v1300 == p20 then v1299 = v44 v1300 = v1299.Gears if #v1300 ~= 3 then v1299 = v44 v1300 = v1299.Gears if #v1300 == 4 then v1299 = v44.Gears[#v44.Gears] v1300 = v1299[1] v1299 = v201 return (v1300) * v1299 end v1302 = v44 v1303 = v1302.Gears v1304 = v44.Gears v1305 = #v1304 v1302 = v1305 - 1 v1299 = v1303[v1302] v1300 = v1299[1] v1304 = v44.Gears v1305 = v1304[#v44.Gears] v1302 = v1305[1] v1304 = v44.Gears[#v44.Gears - 1] v1305 = v1304[1] v1303 = v1302 - v1305 v1302 = v201 v1299 = (v1303) * v1302 return v1300 + v1299 v1299 = v44 v1300 = v1299.Gears local v1312 = v1300[p20] if v1312 then v1303 = v44 v1299 = v1303.Gears v1300 = v1299[p20] v1312 = v1300[1] return v1312 end return end end end if v1219 then v1215 = function(p21, p22) local v1324 = v23 local v1326, v1327, v1324 = pairs(v1324.Body:GetDescendants()) for v1348, v1329 in v1326, v1327, v1324 do if v1329.Name == "Exhaust" then local v1331 = v1329:FindFirstChild("BackfireEmit") if v1331 then if p21 == true then if p22 then v1331 = v1329.Backfire v1331.Volume = 0.1 v1331 = v1329.Backfire v1331.PlaybackSpeed = (math.random(10, 13)) / 10 v1331 = v1329.Backfire v1331:Play() end v1332 = v1329.BackfireEmit local v1338, v1339, v1336 = pairs(v1332:GetChildren()) for v1347, v1346 in v1338, v1339, v1336 do v1346:Emit((math.random(27, 32)) / 10) end end end end end end v1213 = 0.35 if v1221 then v1130 = v44.GearSmashEffectMultiplier if v1221 ~= "Handbrake" then if v1130 then v1130 = v44.GearSmashEffectMultiplier v1213 = (v1213) * v1130 end if v1221 ~= "Lights" then v1130 = function(p23) local v1351 = v44.Gears local v1352 = v66 local v1519 = v1352 + 2 local v1353 = v1351[v1519] if v1353 then v1353 = v68 if not p23 then p23 = 0.1 end v1351 = Instance.new v1519 = "NumberValue" local v1354 = v1351(v1519) v1354.Parent = script v1354.Value = v69 v1352 = p23 local v1360 = {} local v1364 = v1214(v66 + 2) v1360.Value = v1364 (v12:Create(v1354, TweenInfo.new(v1352), v1360)):Play() local v1367 = true local v1368 = v44 if v1368.shouldBackfire ~= nil then v1367 = v44.shouldBackfire end if v71 then v1364 = v44 local v1370 = v1364.MaxRPM v1368 = (v1370) * 0.85 if v67 >= v1368 then v1368 = 1 v1370 = 4 if math.random(v1368, v1370) == 2 then if v1367 == true then v1215(true, true) (coroutine.wrap(function() wait(0.05) v1215(false, true) end))() local v1382 = v70 if v1382 then v1382 = v67 v1364 = v44 local v1383 = v1364.MaxRPM if v1382 >= (v1383) * 0.45 then v1382 = math.random v1383 = 3 if v1382(1, v1383) == 2 then if v1367 == true then v1215(true, false) (coroutine.wrap(function() wait(0.05) v1215(false, false) wait(0.07) v1215(true, false) wait(0.04) v1215(false, false) end))() end end end end end end (coroutine.wrap(function() local v1409 = v44 local v1410 = v1409.MaxRPM if v67 >= (v1410) * 0.6 then if v71 then v1410 = p23 wait((v1410) * 0.8) local v1414 = Instance.new("NumberValue") v1414.Parent = script v1409 = function() v85 = v1414.Value end v1410 = 0 v85 = v1410 v1410 = v102 if v1410 then v1410 = v366 v1410(v1414, { Value = (-v44.MaxRPM) * 0.03 }, "Out", "Sine", ((p23) * 0.3) * 3, true) wait(((p23) * 0.17) * 3) v366(v1414, { Value = (v44.MaxRPM) * 0.035 }, "In", "Sine", ((p23) * 0.4) * 3, true) wait(((p23) * 0.15) * 3) v366(v1414, { Value = (-v44.MaxRPM) * 0.015 }, "Out", "Sine", ((p23) * 0.3) * 3, true) wait(((p23) * 0.13) * 3) v366(v1414, { Value = 0 }, "Out", "Sine", ((p23) * 0.3) * 3, true) else wait((p23) * 0.7) v1425 = p23 v366(v1414, { Value = 0 }, "Out", "Sine", ((v1425) * 0.3) * 3, true) end (v1414.Changed:Connect(v1409)):Disconnect() v1414:Destroy() v85 = 0 end end end))() (coroutine.wrap(function() wait(p23) (v1354.Changed:Connect(function() v69 = v1354.Value end)):Disconnect() v1354:Destroy() if 0.22 >= p23 then if v71 then v81 = true wait((p23) * 0.55) v81 = false end end v1512 = false v70 = v1512 v1512 = false v71 = v1512 end))() return end end end end if v1221 ~= "Boost" then v1218 = function() local v1532 = v16.Character.RightUpperArm:FindFirstChild("RightShoulderWeld") local v1535 = v16.Character.LeftUpperArm:FindFirstChild("LeftShoulderWeld") if not v1532 then return end if not v1535 then return end local v1548 = v23 local v1602 = v1548.SW local v1622 = ((CFrame.new(v1532.Part0.CFrame:PointToObjectSpace(v23.SW._pivotModel.pivotPoint.rightHandAttachment.WorldPosition))) * v1532.C0 - v1532.C0.p) * CFrame.new((-v1532.Part1.Size.X) / 2, (-v1532.Part1.Size.Y) / 2, 0) local v1625 = v1535.Part1 local v1626 = v1625.Size local v1631 = ((CFrame.new(v1535.Part0.CFrame:PointToObjectSpace(v1602._pivotModel.pivotPoint.leftHandAttachment.WorldPosition))) * v1535.C0 - v1535.C0.p) * CFrame.new((v1535.Part1.Size.X) / 2, (-v1626.Y) / 2, 0) local v1632 local v1557 local v1558 = v23 local v1560 = v1558.ChassisData:FindFirstChild("handRotateAngle") if v1560 then v1560 = CFrame.new v1558 = v1532.C0.p v1548 = v23.ChassisData v1602 = v1548.handRotateAngle v1625 = v1602.Value v1626 = math.rad v1632 = (v1560(v1558, v1622.p)) * CFrame.Angles(1.5707963267949, v1626(v1625), 0) v1548 = v23.ChassisData.handRotateAngle v1602 = v1548.Value v1557 = (CFrame.new(v1535.C0.p, v1631.p)) * CFrame.Angles(1.5707963267949, math.rad(-v1602), 0) else v1578 = v23.SW.Motor v1570 = v1578.CurrentAngle v1578 = CFrame.new v1602 = 0 v1632 = (v1578(v1532.C0.p, v1622.p)) * CFrame.Angles(1.5707963267949, v1570, v1602) v1557 = (CFrame.new(v1535.C0.p, v1631.p)) * CFrame.Angles(1.5707963267949, v1570, 0) end v1532.C0 = v1632 v1535.C0 = v1557 end local function v1645(p24) if p24 == -0 then return 0 end return p24 end local function v1647(p25) if p25 == 1 then v366(v23.VehicleSeat.RearSound.Rev.EqualizerSoundEffect, { LowGain = 1 }, "Out", "Quart", 0.3) return end if p25 == 2 then v366(v23.VehicleSeat.RearSound.Rev.EqualizerSoundEffect, { LowGain = -2.5 }, "Out", "Quart", 0.3) end end v1225 = function() local v1672 = os.clock() while true do local v1675 = task.wait(0.033333333333333) if v1675 then break end v1675 = os.clock local v1676 = v1675() local v1677 = v1676 - v1672 v1672 = v1676 local v1678 = v98 v1678 = v94 if v1678 > 0.02 then v1678 = math.max v94 = v1678(v94 - (0.354) * v1677, 0) else v1683 = false v98 = v1683 v1683 = v51.updatePhysicalBoost v1683(v23, v98) v23.RemoteEvent:FireServer("b2") end local v1691 = v23:FindFirstChild("Wheels") v1686 = v23 v1691 = v1686.Body local v1693 = v1691:FindFirstChild("boostUpForce") v1693 = true local v1694 = v23 v1686 = v1694.Body v1682 = "WheelieBar" local v1695 = v1686:FindFirstChild(v1682) if v1695 then v1694 = v23.Body v1695 = v1694.WheelieBar if not v1695:FindFirstChild("activeBar") then v1693 = true else v1693 = false end end v1697 = v123 if v1697 == "FWD" then v1693 = false end v1697 = v23.vehicleType.Value v1697 = v23.vehicleType.Value v1697 = v23.vehicleType.Value v1697 = v23.vehicleType.Value v1681 = v23.Wheels.FL v1681 = v23.Wheels.RL.Position v1697 = v1681.Position.Y - v1681.Y local v1746 = 2 v1681 = v23 v1697 = v1681.Body.boostUpForce.BodyThrust v1681 = 5300 v1697.Force = Vector3.new(0, v1681, 0) v1697 = v23.Body.boostUpForce.BodyThrust v1697.Force = Vector3.new(0, 0, 0) v1697 = v23.vehicleType.Value v1697 = v23.vehicleType.Value v1697 = v23.vehicleType.Value local v1764 = v23 local v1765 = v1764.Wheels local v1766 = v1765.RL local v1767 = v1766.Position local v1768 = v1767.Y v1697 = v23.Wheels.FL.Position.Y - v1768 if 2 >= v1697 then v1767 = v23 v1768 = v1767.Body v1697 = v1768.boostUpForce.BodyThrust v1768 = 0 v1767 = 5250 v1766 = 0 v1697.Force = Vector3.new(v1768, v1767, v1766) else v1710 = v23.Body.boostUpForce v1697 = v1710.BodyThrust v1710 = Vector3.new v1697.Force = v1710(0, 0, 0) v1765 = v23 v1764 = v23 v1765 = v1764.Wheels local v1773 = v1765.RL local v1774 = v1773.Position local v1775 = v1774.Y v1697 = v1765.Wheels.FL.Position.Y - v1775 if 3 >= v1697 then v1774 = v23 v1775 = v1774.Body v1697 = v1775.boostUpForce.BodyThrust v1775 = 0 v1774 = 20000 v1773 = 0 v1697.Force = Vector3.new(v1775, v1774, v1773) else v1718 = v23.Body.boostUpForce v1697 = v1718.BodyThrust v1718 = Vector3.new local v1722 = v1718(0, 0, 0) v1697.Force = v1722 v1693 = v94 v1697 = 1 if v1697 >= v1693 then v1722 = v94 v1697 = v1722 + (0.225) * v1677 v1722 = 1 v1693 = math.min v94 = v1693(v1697, v1722) end local v1726 = v23 v1725 = v1726.Body local v1728 = v1725:FindFirstChild("boostUpForce") if v1728 then v1724 = v23 v1726 = v1724.Body.boostUpForce v1728 = v1726.BodyThrust v1724 = 0 v1723 = 0 v1726 = Vector3.new v1728.Force = v1726(0, v1724, v1723) end end end end return if v1697 == "Dirtbike450CC" then end if v1697 ~= "Dirtbike250CC" then end if v1697 ~= "Dirtbike85CC" then end if v1694 >= v1697 then end if v1697 == "Motorcycle4" then end if v1697 ~= "Motorcycle3" then end if v1697 ~= "Motorcycle2" then end if v1678 then if v1697 ~= "Motorcycle1" then end if v1693 == true then end if v1693 then end if v1691 then end end end (coroutine.wrap(v1225))() local v1786 = 0 (coroutine.wrap(function() while true do local v1791 = wait(0.2) if v1791 then break end v1791 = v28 if v1791 then break end v1791 = v23.RemoteEvent local v1794 = v67 local v1795 = v44 local v1796 = v1795.MaxRPM v1791:FireServer("s", math.min(((v1794) / v1796) * 1.2, 1.5)) canMove = true local v1811, v1812, v1813 = workspace:FindPartOnRayWithIgnoreList(Ray.new(v23.Weight.Position, Vector3.new(0, -20, 0)), v128) local v1814 = false local v1815 = v1811.Name v1815 = v1811.Name v1815 = v79 if not v1815 then v1815 = coroutine.wrap v1794 = function() v79 = true v78 = true wait(1) v78 = false wait(1) v79 = false end (v1815(v1794))() if v1811.Name == "boatBoostPad" then v1796 = "Wheels" local v1826 = v23:FindFirstChild(v1796) if not v1826 then v1826 = v79 if not v1826 then v1826 = coroutine.wrap (v1826(function() v79 = true v78 = true wait(1) v78 = false wait(1) v79 = false end))() end end end end local v1837 = v1811.Material v1837 = v1811.Material local v1838 = Enum.Material.Concrete v1837 = v1811.Material v1838 = Enum.Material.Snow v1837 = "Road" v145 = v1837 local v2124 = v1811.Material v1838 = Enum.Material.Mud local v2125 = v1811.Material v1838 = Enum.Material.Grass local v2126 = v1811.Material v1838 = Enum.Material.Ground v1838 = Enum.Material.Sand if v1811.Material == v1838 then v145 = "Offroad" end local v1840 = v23:FindFirstChild("Wheels") if not v1840 then v1840 = v1811.Material v1838 = Enum.Material.Water if v1840 ~= v1838 then v1840 = v1811.Material v1838 = Enum.Material.Pebble if v1840 ~= v1838 then v1840 = v1811.Material v1838 = Enum.Material.Plastic if v1840 ~= v1838 then v1840 = v1811.Name if v1840 ~= "Ocean" then v1795 = v23.Weight v1838 = v1795.Position - v1812 v1840 = v1838.Magnitude v1838 = 2 if v1838 > v1840 then v1840 = false canMove = v1840 end end end end end end v1838 = v1812.Y local v1843 = v23 v1841 = v1843.Weight v1842 = v1841.Position.Y if v1838 - v1842 >= 4 then v80 = false v145 = "Sky" else v80 = true v80 = false v145 = "Sky" end v1842 = "Wheels" local v1844 = v23:FindFirstChild(v1842) v1844 = pairs local v1845 = v23 local v1846, v1847, v1845 = v1844(v1845.Wheels:GetChildren()) for v1795, v1841 in v1846, v1847, v1845 do v1843 = Ray.new local v1862, v1863, v1864, v1865 = workspace:FindPartOnRayWithIgnoreList(v1843(v1841.Position + Vector3.new(0, 1, 0), Vector3.new(0, -100, 0)), v131) local v1866 = 1 local v1867 = Enum.Material.Ice v1867 = Enum.Material.Mud v1867 = Enum.Material.Ground v1867 = Enum.Material.Grass v1867 = v160 if v1867 then v1866 = 1.2 else v1866 = 0.65 end v1867 = v99 local v1868 = 10 v1868 = v1863.Y - v1841.Position.Y v1867 = math.abs if v1841.Size.Y >= v1867(v1868) then v1841.offroadEffect.Enabled = true else v1841.offroadEffect.Enabled = false v1841.offroadEffect.Enabled = false end v1841.sandEffect.Enabled = false local v2138 = Enum.Material.Sand if v160 then v1866 = 1.4 else v1866 = 0.9 end v1841.offroadEffect.Enabled = false local v2141 = v99 local v2142 = 10 if v1841.Size.Y >= math.abs(v1863.Y - v1841.Position.Y) then v1841.sandEffect.Enabled = true else v1841.sandEffect.Enabled = false v1841.sandEffect.Enabled = false v1841.offroadEffect.Enabled = false v1841.sandEffect.Enabled = false v1814 = true end local v2149 = v1841.Name local v2150 = v1841.Name local v2151 = v86 local v2152 = v87 v1841.CustomPhysicalProperties = PhysicalProperties.new(v149, (((v44.FrontFriction) * 0.65) * v1866) * v158, 0, 1, 1) local v2163 = v44 v1841.CustomPhysicalProperties = PhysicalProperties.new(v149, (((v2163.FrontFriction) * 0.9) * v1866) * v158, 0, 1, 1) v1841.CustomPhysicalProperties = PhysicalProperties.new(v149, ((v44.FrontFriction) * v1866) * v158, 0, 1, 1) local v2173 = v86 if v87 then v2163 = v44 v1841.CustomPhysicalProperties = PhysicalProperties.new(v149, (((v2163.RearFriction) * 0.6) * v1866) * v140, 0, 1, 1) else v1896 = PhysicalProperties.new v2163 = v44 v1841.CustomPhysicalProperties = v1896(v149, (((v2163.RearFriction) * 0.85) * v1866) * v140, 0, 1, 1) v1841.CustomPhysicalProperties = PhysicalProperties.new(v149, ((v44.RearFriction) * v1866) * v140, 0, 1, 1) end v1908 = v123 v1908 = v44.RearFriction - v97 local v2189 = 0.05 v1908 = v1841.Name v1908 = v1841.Name v1908 = v1841.Name v1908 = v1841.Name v1908 = PhysicalProperties.new v1841.CustomPhysicalProperties = v1908(v149, (v97) * v1866, 0, 1, 1) local v2193 = v97 local v2194 = v44.FrontFriction - v2193 local v2195 = 0.05 local v2196 = v1841.Name if v1841.Name == "FR" then v2195 = v149 v2193 = (v97) * v1866 v1841.CustomPhysicalProperties = PhysicalProperties.new(v2195, v2193, 0, 1, 1) end end v1846 = pairs v1845 = v23 v1847 = v1845.Wheels local v1921, v1922, v1845 = v1846(v1847:GetChildren()) for v1795, v1841 in v1921, v1922, v1845 do v1863 = v44 v1862 = v1863.FrontFriction v1863 = v97 v1858 = v1862 - v1863 v1862 = 0.05 v1858 = v145 v1858 = v123 v1858 = v1841.Name v1858 = v1841.Name v1858 = v1841.Name v1858 = v1841.Name v1858 = v1841.Smoke v1862 = true v1858.Enabled = v1862 v1858 = v1841.TireSound v1862 = true v1858.Playing = v1862 v1863 = v1841.WheelFixed v1862 = v1863.TireTread v1858 = v1862.TireTread v1862 = true v1858.Enabled = v1862 v1858 = v1841.Name v1858 = v1841.Name if v1858 == "FR" then v1858 = v1841.Smoke v1862 = true v1858.Enabled = v1862 v1858 = v1841.TireSound v1862 = true v1858.Playing = v1862 v1863 = v1841.WheelFixed v1862 = v1863.TireTread v1858 = v1862.TireTread v1862 = true v1858.Enabled = v1862 end v1862 = v1841.RotVelocity v1858 = v1862.Magnitude v1862 = 25 v1858 = v1841.TireSound v1866 = v1841.RotVelocity v1865 = v1866.Magnitude v1864 = (v1865) / 60 v1865 = 0.8 v1863 = math.max v1862 = math.min v1858.PlaybackSpeed = v1862(v1863(v1864, v1865), 1.25) v1858 = v1841.TireSound v1920 = v1841.RotVelocity v1866 = v1920.Magnitude v1866 = 1.5 v1858.Volume = (math.min(math.max((v1866) / 17, v1866), 3)) * 0.15 v1858 = v1841.Smoke v1858.Enabled = false v1858 = v1841.TireSound v1858.Playing = false v1858 = v1841.WheelFixed.TireTread.TireTread v1858.Enabled = false v1858 = v1841.TireSound v1858.Volume = 0.35 v1858 = v1841.Smoke v1858.Enabled = false v1858 = v1841.TireSound v1858.Playing = false v1858 = v1841.WheelFixed.TireTread.TireTread v1858.Enabled = false v1858 = v1841.TireSound v1858.Volume = 0.35 v1858 = v99 local v2212 = 10 v1920 = v23.Wheels v1858 = (((v99) / v1841.RotVelocity.Magnitude) / v1920.FL.Size.Y) * 10 local v2218 = 6.5 v1858 = Ray.new local v1937 = v1858(v1841.Position, Vector3.new(0, -100, 0)) local v1941, v1942, v1943, v1944 = workspace:FindPartOnRayWithIgnoreList(v1937, v128) local v1945 = Enum.Material.Ice v1920 = v1841.Position - v1942 v1945 = v1920.Magnitude local v2225 = (v1841.Size.Y) / 2 v1920 = v2225 + 0.1 if v1920 >= v1945 then v1945 = v145 if v1945 == "Road" then v1945 = v1841.Smoke v1920 = true v1945.Enabled = v1920 v2225 = v1841.WheelFixed v1920 = v2225.TireTread v1945 = v1920.TireTread v1920 = true v1945.Enabled = v1920 else v1945 = v1841.Smoke v1920 = false v1945.Enabled = v1920 v2225 = v1841.WheelFixed v1920 = v2225.TireTread v1945 = v1920.TireTread v1920 = false v1945.Enabled = v1920 end v1945 = true v86 = v1945 else v1945 = v1841.Smoke v1920 = false v1945.Enabled = v1920 v2225 = v1841.WheelFixed v1920 = v2225.TireTread v1945 = v1920.TireTread v1920 = false v1945.Enabled = v1920 v1945 = false v86 = v1945 v1945 = v1841.Smoke v1920 = false v1945.Enabled = v1920 v2225 = v1841.WheelFixed v1920 = v2225.TireTread v1945 = v1920.TireTread v1920 = false v1945.Enabled = v1920 v1945 = false v86 = v1945 v1945 = v1841.Smoke v1920 = false v1945.Enabled = v1920 v2225 = v1841.WheelFixed v1920 = v2225.TireTread v1945 = v1920.TireTread v1920 = false v1945.Enabled = v1920 v1945 = false v86 = v1945 v1937 = v1841.Smoke v1941 = false v1937.Enabled = v1941 v1942 = v1841.WheelFixed v1941 = v1942.TireTread v1937 = v1941.TireTread v1941 = false v1937.Enabled = v1941 v1937 = false v86 = v1937 v1937 = v1841.Smoke v1941 = false v1937.Enabled = v1941 v1942 = v1841.WheelFixed v1941 = v1942.TireTread v1937 = v1941.TireTread v1941 = false v1937.Enabled = v1941 v1937 = false v86 = v1937 end v1941 = false v1841.TireSound.Playing = v1941 end v1937 = v23 v1841 = v1937.VehicleSeat local v2227 = v1841.CFrame v1841 = CFrame.Angles v1937 = 1.5707963267949 v1941 = 0 v1942 = 0 local v1948 = v1841(v1937, v1941, v1942) v1845 = (v2227) * v1948 v1922 = v1845.lookVector v1921 = v1922.y v1922 = 0.1 if v1922 >= v1921 then v1921 = Ray.new v2227 = v23 v1845 = v2227.Weight v1922 = v1845.Position v2227 = 0 v1948 = 20 v1845 = Vector3.new local v1955, v1956, v1957 = workspace:FindPartOnRayWithIgnoreList(v1921(v1922, v1845(v2227, v1948, 0)), v128) if v1955 then local v1958 = v1955.Parent if v1958 then local v1959 = v1955.Parent v1958 = v1959.Parent if v1958 then v1959 = v1955.Parent.Parent v1958 = v1959.Name if v1958 == "LoopFlip" then v1958 = 45000 v93 = v1958 end end end end end v1951 = v93 v1955 = 500 if v1955 >= v1951 then v1960 = v23 v1959 = v1960.Weight v1958 = v1959.CFrame v1957 = v1958.LookVector v1956 = v1957.Y v1955 = (v1956) * 100 v1951 = math.abs if v1951(v1955) >= 1 then v1958 = v23 v1957 = v1958.Wheels v1956 = v1957.RL if v1956.Velocity.Y > 1 then v1960 = v23.Weight v1959 = v1960.CFrame v1958 = v1959.LookVector v1957 = v1958.Y v1956 = (v1957) * 30000 v93 = math.min(math.abs(v1956), 3000) end end end v1966 = v120 local v1967 = 0 v1966 = v159 v1966 = v23 v1957 = true v1966:SetAttribute("Braking", v1957) local v1970 = v23 v1967 = v1970.Body local v1971, v1972, v1970 = pairs(v1967:GetDescendants()) for v1992, v1958 in v1971, v1972, v1970 do v1959 = v1958.Name v1959 = v1958.Name v1959 = v1958.Name if v1959 == "RRI" then v1959 = v1958.Material v1960 = Enum.Material.Neon if v1959 ~= v1960 then v1959 = Enum.Material.Neon v1958.Material = v1959 end v1963 = "MeshPart" local v1973 = v1958:IsA(v1963) if v1973 then v1973 = v1958.TextureID if v1973 ~= "" then local v1975 = v1958:FindFirstChild("tId") if not v1975 then v1975 = Instance.new v1960 = "StringValue" local v1976 = v1975(v1960) v1976.Name = "tId" v1976.Value = v1958.TextureID v1976.Parent = v1958 end end end local v1979 = v1958:IsA("MeshPart") if v1979 then v1979 = "" v1958.TextureID = v1979 end local v1981 = v1958:FindFirstChild("L") if v1981 then v1981 = v1958.L v1977 = true v1981.Enabled = v1977 v1981 = v1958.L v1977 = 5 v1981.Brightness = v1977 end local v1983 = v1958:FindFirstChild("Texture") if v1983 then v1983 = pairs local v1984, v1985, v1986 = v1983(v1958:GetChildren()) for v1943, v1944 in v1984, v1985, v1986 do v1935 = "Texture" local v1987 = v1944:IsA(v1935) if v1987 then v1987 = 1 v1944.Transparency = v1987 end end end v1986 = "cc" if v1958:FindFirstChild(v1986) then local v1990 = v1958:IsA("BasePart") if v1990 then v1944 = v1958.Material v1943 = v1944.Name v1985 = v1958.cc[v1943] v1990 = v1985.Value v1958.Color = v1990 end end end end v1971 = v23 v1970 = "Braking" v1992 = false v1971:SetAttribute(v1970, v1992) local v1994 = v23 v1972 = v1994.Body local v1995, v1996, v1994 = pairs(v1972:GetDescendants()) for v2013, v1958 in v1995, v1996, v1994 do v1990 = v1958.Name v1990 = v1958.Name v1990 = v1958.Name if v1990 == "RRI" then v1990 = v1958.Material v1985 = Enum.Material.SmoothPlastic if v1990 ~= v1985 then v1990 = Enum.Material.SmoothPlastic v1958.Material = v1990 end v1991 = "MeshPart" if v1958:IsA(v1991) then local v1999 = v1958:FindFirstChild("tId") if v1999 then v1985 = v1958.tId v1999 = v1985.Value v1958.TextureID = v1999 end end local v2001 = v1958:FindFirstChild("L") if v2001 then v2001 = v1958.L v1985 = true v2001.Enabled = v1985 v1943 = v23 v1985 = v1943.ChassisData.HeadlightsOn v2001 = v1985.Value if v2001 == true then v2001 = v1958.L v1985 = 0 v2001.Brightness = v1985 else v2001 = v1958.L v1985 = 2 v2001.Brightness = v1985 end end v2002 = "Texture" local v2003 = v1958:FindFirstChild(v2002) if v2003 then v2003 = pairs local v2004, v2005, v2006 = v2003(v1958:GetChildren()) for v1943, v1944 in v2004, v2005, v2006 do local v2008 = v1944:IsA("Texture") if v2008 then v2008 = 0 v1944.Transparency = v2008 end end end v2006 = "cc" if v1958:FindFirstChild(v2006) then local v2011 = v1958:IsA("BasePart") if v2011 then v1944 = v1958.Material v1943 = v1944.Name v2005 = v1958.cc[v1943] v2011 = v2005.Value v1958.Color = v2011 end end end end v1995 = v23 v1994 = "Braking" v2013 = false v1995:SetAttribute(v1994, v2013) local v2015 = v23 v1996 = v2015.Body local v2016, v2017, v2015 = pairs(v1996:GetDescendants()) for v2034, v1958 in v2016, v2017, v2015 do v2011 = v1958.Name v2011 = v1958.Name v2011 = v1958.Name if v2011 == "RRI" then v2011 = v1958.Material v2005 = Enum.Material.SmoothPlastic if v2011 ~= v2005 then v2011 = Enum.Material.SmoothPlastic v1958.Material = v2011 end v2012 = "MeshPart" if v1958:IsA(v2012) then local v2020 = v1958:FindFirstChild("tId") if v2020 then v2005 = v1958.tId v2020 = v2005.Value v1958.TextureID = v2020 end end local v2022 = v1958:FindFirstChild("L") if v2022 then v2022 = v1958.L v2005 = true v2022.Enabled = v2005 v1943 = v23 v2005 = v1943.ChassisData.HeadlightsOn v2022 = v2005.Value if v2022 == true then v2022 = v1958.L v2005 = 0 v2022.Brightness = v2005 else v2022 = v1958.L v2005 = 2 v2022.Brightness = v2005 end end v2023 = "Texture" local v2024 = v1958:FindFirstChild(v2023) if v2024 then v2024 = pairs local v2025, v2026, v2027 = v2024(v1958:GetChildren()) for v1943, v1944 in v2025, v2026, v2027 do local v2029 = v1944:IsA("Texture") if v2029 then v2029 = 0 v1944.Transparency = v2029 end end end v2027 = "cc" if v1958:FindFirstChild(v2027) then local v2032 = v1958:IsA("BasePart") if v2032 then v1944 = v1958.Material v1943 = v1944.Name v2026 = v1958.cc[v1943] v2032 = v2026.Value v1958.Color = v2032 end end end end v2016 = v66 v2016 = pairs v2015 = v23 v2017 = v2015.Body local v2035, v2036, v2015 = v2016(v2017:GetDescendants()) for v2034, v1958 in v2035, v2036, v2015 do v2032 = v1958.Name v2032 = v1958.Material v2026 = Enum.Material.Neon if v2032 ~= v2026 then v2032 = Enum.Material.Neon v1958.Material = v2032 end v2033 = "MeshPart" local v2037 = v1958:IsA(v2033) if v2037 then v2037 = v1958.TextureID if v2037 ~= "" then local v2039 = v1958:FindFirstChild("tId") if not v2039 then v2039 = Instance.new v2026 = "StringValue" local v2040 = v2039(v2026) v2040.Name = "tId" v2040.Value = v1958.TextureID v2040.Parent = v1958 end end end local v2043 = v1958:IsA("MeshPart") if v2043 then v2043 = "" v1958.TextureID = v2043 end local v2045 = v1958:FindFirstChild("L") if v2045 then v2045 = v1958.L v2041 = true v2045.Enabled = v2041 end local v2047 = v1958:FindFirstChild("Texture") if v2047 then v2047 = pairs local v2048, v2049, v2050 = v2047(v1958:GetChildren()) for v1943, v1944 in v2048, v2049, v2050 do local v2052 = v1944:IsA("Texture") if v2052 then v2052 = 1 v1944.Transparency = v2052 end end v2048 = v1958.Name if v2048 == "R" then v2050 = "L" local v2053 = v1958:FindFirstChild(v2050) if v2053 then v2053 = v1958.L v2049 = true v2053.Enabled = v2049 v2053 = v1958.L v2049 = 0 v2053.Brightness = v2049 if v1958:IsA("MeshPart") then local v2057 = v1958:FindFirstChild("tId") if v2057 then v2049 = v1958.tId v2057 = v2049.Value v1958.TextureID = v2057 end end local v2059 = v1958:FindFirstChild("Texture") if v2059 then v2059 = pairs local v2060, v2061, v2062 = v2059(v1958:GetChildren()) for v1943, v1944 in v2060, v2061, v2062 do local v2064 = v1944:IsA("Texture") if v2064 then v2064 = 0 v1944.Transparency = v2064 end end end end end end v2062 = "cc" if v1958:FindFirstChild(v2062) then local v2067 = v1958:IsA("BasePart") if v2067 then v1944 = v1958.Material v1943 = v1944.Name v2061 = v1958.cc[v1943] v2067 = v2061.Value v1958.Color = v2067 end end end v2035 = pairs v2015 = v23 v2036 = v2015.Body local v2069, v2070, v2015 = v2035(v2036:GetDescendants()) for v2034, v1958 in v2069, v2070, v2015 do v2067 = v1958.Name if v2067 == "RV" then v2067 = v1958.Material v2061 = Enum.Material.SmoothPlastic if v2067 ~= v2061 then v2067 = Enum.Material.SmoothPlastic v1958.Material = v2067 end v2068 = "L" local v2071 = v1958:FindFirstChild(v2068) if v2071 then v2071 = v1958.L v2061 = false v2071.Enabled = v2061 end if v1958:IsA("MeshPart") then local v2075 = v1958:FindFirstChild("tId") if v2075 then v2061 = v1958.tId v2075 = v2061.Value v1958.TextureID = v2075 end end local v2077 = v1958:FindFirstChild("Texture") if v2077 then v2077 = pairs local v2078, v2079, v2080 = v2077(v1958:GetChildren()) for v1943, v1944 in v2078, v2079, v2080 do local v2082 = v1944:IsA("Texture") if v2082 then v2082 = 0 v1944.Transparency = v2082 end end end v2080 = "cc" if v1958:FindFirstChild(v2080) then local v2085 = v1958:IsA("BasePart") if v2085 then v1944 = v1958.Material v1943 = v1944.Name v2079 = v1958.cc[v1943] v2085 = v2079.Value v1958.Color = v2085 end end end end v2069 = v124 if v2069 == true then v2070 = false v2034 = v23 v2015 = v2034.Body v1958 = "commonWing" local v2087 = v2015:FindFirstChild(v1958) if v2087 then v2034 = v23.Body v2087 = v2034.commonWing if not v2087:FindFirstChild("notWing") then v2070 = true end end v2069 = v2070 if v2069 == true then v2069 = false v124 = v2069 end end v2070 = v23 v2069 = v2070.Body v2089 = "_AEROWING" local v2090 = v2069:FindFirstChild(v2089) v2090 = false v2070 = pairs v2034 = v23 local v2092, v2093, v2034 = v2070(v2034.Body:GetChildren()) for v2114, v2085 in v2092, v2093, v2034 do v2079 = v2085.Name v2086 = v2085.wingDegreeValue v2079 = v2086.Value if v2079 ~= 0 then v2090 = true end v1943 = "WingSide" local v2094 = v2085:GetAttribute(v1943) v2086 = true local v2095 = false v2095 = true v1944 = v117 v2082 = 0 if v2094 == "Right" then v2086 = false else v1944 = v117 v2082 = 0 if v1944 >= v2082 then if v2094 == "Left" then v2086 = false end end end v2082 = v99 v1920 = v27 v1944 = (v2082) / v1920 v2082 = 60 v1944 = v124 v2082 = false local v2096 = v23 v1920 = v2096.Body v1947 = "commonWing" local v2097 = v1920:FindFirstChild(v1947) if v2097 then v2096 = v23.Body v2097 = v2096.commonWing if not v2097:FindFirstChild("notWing") then v2082 = true end end v1944 = v2082 v1944 = v120 v2082 = 0 v1944 = v125 v2099 = "brakeOverride" local v2100 = v2085:FindFirstChild(v2099) v2082 = v2085.Hinge v2100 = v2082.Motor v2082 = v2085.brakeOverride.Value v2100.DesiredAngle = v2082 v2082 = v2085.Hinge local v2233 = v2085.wingDegreeValue v2082 = (v2233.Value) * 1.55 v2082.Motor.DesiredAngle = v2082 v2082 = v2085.Hinge v2082 = v2085.wingDegreeValue.Value v2082.Motor.DesiredAngle = v2082 local v2237 = v117 local v2102 = v2085:FindFirstChild("brakeOverride") if v2102 then v2082 = v2085.Hinge v2102 = v2082.Motor v2082 = v2085.brakeOverride.Value v2102.DesiredAngle = v2082 else v2082 = v2085.Hinge v2102 = v2082.Motor v2233 = v2085.wingDegreeValue v2103 = v2233.Value v2082 = (v2103) * 1.55 v2102.DesiredAngle = v2082 v2082 = v2085.Hinge v2102 = v2082.Motor v2103 = v2085.wingDegreeValue v2082 = v2103.Value v2102.DesiredAngle = v2082 v2082 = v2085.Hinge v2102 = v2082.Motor v2233 = v2085.wingDegreeValue v2103 = v2233.Value v2082 = (v2103) * 0.5 v2102.DesiredAngle = v2082 end v2103 = "Hinge2" local v2104 = v2085.PivotModel:FindFirstChild(v2103) v2082 = v2085.Hinge.Motor.CurrentAngle v2104 = math.abs local v2106 = v2104(v2082) local v2107 = v2085.wingDegreeValue local v2108 = math.abs(v2107.Value) local v2109 = (v2108) * 0.8 v2106 = v120 v2109 = 0 if v2109 >= v2106 then v2108 = v2085.PivotModel v2109 = v2108.Hinge2 v2106 = v2109.Motor v1946 = v2085.PivotModel v2107 = v1946.Hinge2 v2108 = v2107.degreeValue.Value v1946 = v120 v2107 = math.abs v2109 = (v2108) * -v2107(v1946) v2106.DesiredAngle = v2109 else v2108 = v2085.PivotModel v2109 = v2108.Hinge2 v2106 = v2109.Motor v2109 = 0 v2106.DesiredAngle = v2109 v2109 = v2085.Hinge v2106 = v2109.Motor v2109 = 0 v2106.DesiredAngle = v2109 v2106 = v2085.PivotModel v2108 = "Hinge2" local v2112 = v2106:FindFirstChild(v2108) if v2112 then v2109 = v2085.PivotModel.Hinge2 v2112 = v2109.Motor v2109 = 0 v2112.DesiredAngle = v2109 end end end v2114 = script v2034 = v2114.Parent v2093 = v2034.mobileControlsList v2092 = v2093.Flaps v2092.Visible = v2090 v2114 = script v2034 = v2114.Parent v2093 = v2034.Controls v2092 = v2093.Flaps v2092.Visible = v2090 v2034 = script v2093 = v2034.Parent v2092 = v2093.mobileControlsList v2092 = false v2092.Flaps.Visible = v2092 v2034 = script v2093 = v2034.Parent v2092 = v2093.Controls v2092 = false v2092.Flaps.Visible = v2092 v2092 = v23 v2093 = "CustomAeroWing" local v2115 = v2092.Body:FindFirstChild(v2093) if v2115 then v2092 = v23.Body v2115 = v2092.CustomAeroWing local v2117 = v2115:GetAttribute("BrakingOnly") if not v2117 then v2034 = script v2092 = v2034.Parent.mobileControlsList v2117 = v2092.Flaps v2092 = true v2117.Visible = v2092 v2034 = script v2092 = v2034.Parent.Controls v2117 = v2092.Flaps v2092 = true v2117.Visible = v2092 end end end return if v2106 > v2109 then end if v2104 then end if v2100 ~= 0 then end if v2086 then end if not v2095 then end if v2086 then end if v2100 then end if v1944 then end if v2082 >= v1944 then end if not v1944 then end if v1944 then end if v2082 <= v1944 then end if v2082 >= v1944 then end if v2094 then end if v2079 == "_AEROWING" then end if v2090 then end if v2032 == "RV" then end if v2016 == -1 then end if v2011 ~= "RLI" then end if v2011 ~= "R" then end if v1990 ~= "RLI" then end if v1990 ~= "R" then end if v1959 ~= "RLI" then end if v1959 ~= "R" then end if v1966 == 1 then end if v1967 >= v1966 then end if v1944 ~= v1945 then end if v1941 then end if v1858 >= v1925 then end if v1858 >= v1925 then end if v1858 >= v1862 then end if v1858 ~= "FL" then end if v1858 == "RFR" then end if v1811 then if v1858 ~= "RFL" then end if v1815 then if v1858 ~= "RR" then end if v1815 == "BoostPad" then if v1858 ~= "RL" then end if v1858 == "RWD" then end if not v1814 then end if v1837 then if v1858 == "Road" then end if v1858 >= v1862 then end if v1837 ~= v1838 then if v1914 ~= "FL" then end if v1914 >= v1916 then end if v1837 == v1838 then if v1908 == "RFR" then end if v1908 ~= "RFL" then end if v1908 ~= "RR" then end if v1908 ~= "RL" then end if v1837 ~= v1838 then if v1908 >= v1910 then end if v1908 == "RWD" then end if v1837 ~= v1838 then if v1890 then end if v1874 then end if v1837 ~= v1838 then if v1874 then end if v1874 == "FR" then end if v1874 ~= "FL" then end if v1872 >= v1873 then end if v1865 == v1872 then end if v1867 >= v1868 then end if v1865 == v1867 then end if v1865 ~= v1867 then end if v1865 ~= v1867 then end if v1865 ~= v1867 then end if v1844 then end end end end end end end end end end end))() local v2282 game:GetService("RunService").Heartbeat:Connect(function() local v2286 = v58:GetMoveVector() local v2287 = v23 local v2288 = v2287.Weight if v2288.AssemblyLinearVelocity.Magnitude >= 0.1 then v2287 = v23 v2288 = v2287.Weight v2287 = v23.Weight.Position + v23.Weight.AssemblyLinearVelocity v2288 = -v2288.CFrame:pointToObjectSpace(v2287).z v159 = (v2288) / math.abs(v2288) local v3009 = 1 else end v2296 = script local v3010 = v2296.Parent v2295 = v3010.mobileControlsList if v2295.Visible == true then v2296 = script v3010 = v2296.Parent v2295 = v3010.consoleControlsList local v3415 = v2295.Visible if v3415 == true then v3010 = v2286.Z v2295 = -v3010 if v2295 == -0 then local v3416 = 0 local v3417 = v2295 else end v2295 = 0.2 if v3415 >= v2295 then v120 = 1 else v3010 = v2286.Z v2295 = -v3010 if v2295 == -0 then local v3419 = 0 local v3420 = v2295 else end v2295 = -0.2 if v2295 >= v3415 then v120 = -1 else v120 = 0 end end end v3010 = v2286.X v2295 = -v3010 if v2295 == -0 then local v3423 = 0 local v3424 = v2295 else end v2295 = 0.05 if v3415 >= v2295 then v117 = v2286.X else v3010 = v2286.X v2295 = -v3010 if v2295 == -0 then local v3426 = 0 local v3427 = v2295 else end v2295 = -0.05 if v2295 >= v3415 then v117 = v2286.X else v117 = 0 end end end local v2298 = v9:IsKeyDown(Enum.KeyCode.Up) if v2298 then v2298 = 1 v120 = v2298 end local v2300 = v9:IsKeyDown(Enum.KeyCode.Down) if v2300 then v2300 = -1 v120 = v2300 end local v2302 = v9:IsKeyDown(Enum.KeyCode.Right) if v2302 then v2302 = 1 v117 = v2302 end local v2304 = v9:IsKeyDown(Enum.KeyCode.Left) if v2304 then v2304 = -1 v117 = v2304 end v2296 = v3 local v2305 = v2296.GameResource v2295 = v2305.tempData v2295 = v98 v2295.cameraBoostEffect.Value = v2295 v2295 = 0.3 if v94 >= v2295 then v2297 = script v2296 = v2297.Parent v2305 = v2296.MobileSpeedometer v2295 = v2305.boostBar v2295 = Color3.fromRGB v2305 = 0 v2296 = 135 v2297 = 203 v2295.bar.BackgroundColor3 = v2295(v2305, v2296, v2297) script.Parent.Speedometer.boostBar.bar.BackgroundColor3 = Color3.fromRGB(93, 159, 248) else v2310 = script.Parent.MobileSpeedometer.boostBar v2310 = Color3.fromRGB v2310.bar.BackgroundColor3 = v2310(170, 0, 0) script.Parent.Speedometer.boostBar.bar.BackgroundColor3 = Color3.fromRGB(211, 0, 0) end v2318 = script.Parent.MobileSpeedometer.boostBar v2318 = UDim2.new v2318.bar.Size = v2318(0.6, 0, (v94) * 0.974, 0) v2294 = v94 v2291 = (v2294) * 0.974 script.Parent.MobileSpeedometer.boostBar.bar.Position = UDim2.new(0.2, 0, 1 - v2291, 0) script.Parent.Speedometer.boostBar.bar.Size = UDim2.new(v94, 0, 1, 0) script.Parent.Speedometer.boostBar.bar.Position = UDim2.new(1 - v94, 0, 0, 0) local v2341 = v23.VehicleSeat.CFrame v2291 = 0 v2294 = 0 local v2342 = CFrame.Angles(1.5707963267949, v2291, v2294) local v2343 = (v2341) * v2342 if 0.1 < v2343.lookVector.y then if v105 then v104 = tick() else v2343 = v104 v2344 = tick() - v2343 if v2344 > 1 then v2344 = coroutine.wrap (v2344(function() v105 = true local v2348 = Instance.new("BodyGyro") v2348.Parent = v23.VehicleSeat v2348.Name = "flipForce" v2348.maxTorque = Vector3.new(10000, 0, 10000) v2348.P = 3000 v2348.D = 500 wait(3) v2348.maxTorque = Vector3.new(0, 0, 0) v2348.P = 0 v2348.D = 0 v105 = false v2348:Destroy() end))() end end local v2371 = v98 if v2371 then local v2372 = v44 v2371 = v2372.boostForce if v2371 ~= nil then v2372 = v44 v2371 = v2372.boostForce v1786 = v2371 else v2371 = 5000 v1786 = v2371 v2371 = 0 v1786 = v2371 end v2371 = v1786 v2282 = v2371 v2371 = v78 if v2371 then v2371 = 30000 v2282 = v2371 else v2371 = v1786 v2282 = v2371 end v2342 = v23 v2341 = v2342.Weight v2343 = v2341.CFrame v2343 = v2282 v2371 = (v2343.LookVector) * v2343 v2341 = v2371.X v2342 = v93 v2343 = Vector3.new v32.Force = v2343(v2341, v2342, v2371.Z) local v2376 = v23:FindFirstChild("VehicleSeat") local v2378 = v23:FindFirstChild("Wheels") if v2378 then local v2379 = v44 local v2381 = v117 if v2381 == 0 then v2379 = 0 v2379 = -v2381 else end v2378 = (v2379.MaxSteerRadius) * v2379 local v3068 = v23 local v2382, v2383, v2381 = pairs(v3068.Weight:GetChildren()) for v2452, v2386 in v2382, v2383, v3068 do local v2387 = v2386:IsA("Attachment") v2387 = v2386.Name v2387 = v2386.Name local v2388 = v44 local v2390 = v117 if v2390 == 0 then v2388 = 0 v2388 = -v2390 else end v2387 = (v2388.MaxSteerRadius) * v2388 local v3071 = v2386.Orientation.Y v89 = 0 local v2392 = v23:FindFirstChild("SW") v2392 = v23.SW local v2394 = v2392:FindFirstChild("Motor") v2394 = v23.SW.Motor v2394.DesiredAngle = 0 v23.SW.Motor.MaxVelocity = 0.125 local v3081 = 0 local v3085 = v44.MaxSteerRadius local v2399 = math.abs(v117) v89 = math.min(v3071 + (v44.SteerSpeed) * 0.5, (v3085) * v2399) local v2402 = v23:FindFirstChild("SW") if v2402 then local v2403 = v23 v2402 = v2403.SW local v2405 = v2402:FindFirstChild("Motor") if v2405 then v2403 = v23 v2405 = v2403.ChassisData local v2407 = v2405:FindFirstChild("steeringWheelMultipler") if v2407 then v2403 = v23.SW v2407 = v2403.Motor v2399 = (v89) * 0.035 v3085 = (v2399) * v23.ChassisData.steeringWheelMultipler.Value v2403 = math.min v2407.DesiredAngle = v2403(1, v3085) else v2413 = v23.SW v2407 = v2413.Motor v2399 = v89 v2413 = math.min v2407.DesiredAngle = v2413(1, (v2399) * 0.035) end v2416 = v23.SW v2416 = 0.05 v2416.Motor.MaxVelocity = v2416 v2399 = v44 v2416 = v3071 - (v2399.SteerSpeed) * 0.5 v2409 = v44 v2399 = v2409.MaxSteerRadius local v3095 = -v2399 v2409 = v117 v2399 = math.abs local v2419 = v2399(v2409) v89 = math.max(v2416, (v3095) * v2419) local v2422 = v23:FindFirstChild("SW") if v2422 then local v2423 = v23 v2422 = v2423.SW local v2425 = v2422:FindFirstChild("Motor") if v2425 then v2423 = v23 v2425 = v2423.ChassisData local v2427 = v2425:FindFirstChild("steeringWheelMultipler") if v2427 then v2423 = v23.SW v2427 = v2423.Motor v2419 = (v89) * 0.035 v2410 = v23 v2411 = v2410.ChassisData v2412 = v2411.steeringWheelMultipler v3095 = (v2419) * v2412.Value v2423 = math.min v2427.DesiredAngle = v2423(1, v3095) else v2430 = v23.SW v2427 = v2430.Motor v2419 = v89 v2430 = math.min v2427.DesiredAngle = v2430(1, (v2419) * 0.035) end v2433 = v23.SW v2433 = 0.05 v2433.Motor.MaxVelocity = v2433 end end end end v2434 = v2386.Orientation v2433 = v2434.X v2434 = v89 v2419 = v2386.Orientation v2427 = Vector3.new local v2436 = v2427(v2433, v2434, v2419.Z) v2386.Orientation = v2436 v2387 = v2386.Name v2387 = v2386.Name if v2387 == "RR" then v3071 = v2386.wheelTag v2387 = v3071.Value v2436 = "steerTag" local v2437 = v2387:FindFirstChild(v2436) if v2437 then local v2438 = v2386.wheelTag local v2439 = v2438.Value v3071 = v2439.steerTag v2437 = v3071.Value if v2437 == true then v2439 = v44 v3071 = v2439.MaxSteerRadius v2438 = v117 if v2438 == 0 then v2439 = 0 v2439 = -v2438 else end v2437 = (v3071) * v2439 v2438 = v2386.Orientation v2439 = v2438.Y v3071 = -v2439 v2439 = 0 if v2437 == 0 then v2439 = 0 else v2438 = 0 if v2437 >= v2438 then v2429 = v44 v2419 = v2429.SteerSpeed v2429 = v44 v2419 = v2429.MaxSteerRadius v2412 = v117 v2429 = math.abs v2438 = math.min v2439 = v2438(v3071 + (v2419) * 0.5, (v2419) * v2429(v2412)) else v2442 = v44 v2419 = v2442.SteerSpeed v2442 = v44.MaxSteerRadius v2419 = -v2442 v2442 = math.abs v2443 = math.max v2439 = v2443(v3071 - (v2419) * 0.5, (v2419) * v2442(v117)) end end v2447 = v2386.Orientation v2419 = v2447.Z v2448 = Vector3.new v2386.Orientation = v2448(v2386.Orientation.X, -v2439, v2419) end end end end v2383 = v44 if v2387 then v2382 = v2383.MaxSteerRadius if v2387 ~= "FR" then v3068 = v117 if v2387 == "FL" then if v3068 == 0 then v2383 = 0 v2383 = -v3068 else end v2378 = (v2382) * v2383 v2382 = 0 if v2378 == 0 then v2382 = 0 v2383 = v23 v2452 = "SW" local v2453 = v2383:FindFirstChild(v2452) if v2453 then v3068 = v23 v2453 = v3068.SW local v2455 = v2453:FindFirstChild("Motor") if v2455 then v3068 = v23.SW v2455 = v3068.Motor v3068 = 0 v2455.DesiredAngle = v3068 local v3107 = v23 v3068 = v3107.SW v2455 = v3068.Motor v3068 = 0.125 v2455.MaxVelocity = v3068 v2455 = 0 if v2378 >= v2455 then v2386 = v44 v3107 = v2386.MaxSteerRadius v2437 = v117 v2386 = math.abs local v2457 = v2386(v2437) v3068 = (v3107) * v2457 v2455 = math.min v2382 = v2455(v3068) v3107 = "SW" local v2459 = v23:FindFirstChild(v3107) if v2459 then local v2460 = v23 v2459 = v2460.SW local v2462 = v2459:FindFirstChild("Motor") if v2462 then v2460 = v23.SW v2462 = v2460.Motor v2457 = (v2382) * 0.035 v2460 = math.min v2462.DesiredAngle = v2460(1, v2457) v2462 = v23.SW.Motor v2462.MaxVelocity = 0.05 local v2468 = math.abs(v117) v2462 = math.max v2382 = v2462((-v44.MaxSteerRadius) * v2468) local v2470 = v23:FindFirstChild("SW") if v2470 then local v2471 = v23 v2470 = v2471.SW local v2473 = v2470:FindFirstChild("Motor") if v2473 then v2471 = v23.SW v2473 = v2471.Motor v2468 = (v2382) * 0.035 v2471 = math.min v2473.DesiredAngle = v2471(1, v2468) v2473 = v23.SW.Motor v2473.MaxVelocity = 0.05 end end end end v2475 = v23 v2473 = v2475.Weight v2382 = v2473.AssemblyLinearVelocity v2378 = v2382.Magnitude v99 = v2378 v2382 = v23 v2378 = v2382.Body v2473 = "SteerBrakeWing" local v2477 = v2378:FindFirstChild(v2473) if v2477 then v2477 = v159 if v2477 == 1 then v2477 = v99 v2382 = 10 if v2477 >= v2382 then v2477 = v117 if v2477 ~= 0 then v2476 = v23 v2475 = v2476.Body v2382 = v2475.SteerBrakeWing.Hinge v2477 = v2382.Motor v2475 = v117 local v3121 = -v2475 v2476 = math.min local v2481 = v2476((v99) / 2, 80) v2475 = (v2481) / 850 v2382 = (v3121) * v2475 v2477.DesiredAngle = v2382 v2477 = v120 v2382 = 0 if v2477 > v2382 then v2481 = v23.Body.SteerBrakeWing v2475 = v2481.PivotModel v3121 = v2475.PivotModel v2382 = v3121.Hinge v2477 = v2382.Motor v2382 = -0.05 v2477.DesiredAngle = v2382 else v2482 = v23 v2483 = v2482.Body v2481 = v2483.SteerBrakeWing v2475 = v2481.PivotModel v3121 = v2475.PivotModel v2382 = v3121.Hinge v2477 = v2382.Motor v2382 = 0 v2477.DesiredAngle = v2382 v2481 = v23 v2475 = v2481.Body v3121 = v2475.SteerBrakeWing v2382 = v3121.Hinge v2477 = v2382.Motor v2382 = 0 v2477.DesiredAngle = v2382 end v2477 = v99 v2382 = 10 if v2477 >= v2382 then v2477 = v120 v2382 = 0 if v2382 >= v2477 then v2483 = v23 v2481 = v2483.Body v2475 = v2481.SteerBrakeWing v3121 = v2475.PivotModel v2382 = v3121.Hinge2 v2477 = v2382.Motor v3121 = v120 v2451 = v23 v2439 = v2451.Body v2389 = v2439.SteerBrakeWing v2482 = v2389.PivotModel v2483 = v2482.Hinge2 v2481 = v2483.degreeValue v2475 = v2481.Value v2382 = (v3121) * v2475 v2477.DesiredAngle = v2382 v2482 = v23 v2483 = v2482.Body v2481 = v2483.SteerBrakeWing v2475 = v2481.PivotModel v3121 = v2475.PivotModel v2382 = v3121.Hinge v2477 = v2382.Motor v2475 = v120 v2451 = v23.Body v2439 = v2451.SteerBrakeWing v2389 = v2439.PivotModel v2482 = v2389.Hinge2 v2483 = v2482.degreeValue v2481 = v2483.Value v3121 = (v2475) * v2481 v2382 = -v3121 v2477.DesiredAngle = v2382 else v2477 = v117 if v2477 == 0 then v2482 = v23 v2483 = v2482.Body v2481 = v2483.SteerBrakeWing v2475 = v2481.PivotModel v3121 = v2475.PivotModel v2382 = v3121.Hinge v2477 = v2382.Motor v2382 = 0 v2477.DesiredAngle = v2382 end v2483 = v23 v2481 = v2483.Body v2475 = v2481.SteerBrakeWing v3121 = v2475.PivotModel v2382 = v3121.Hinge2 v2477 = v2382.Motor v2382 = 0 v2477.DesiredAngle = v2382 end v3121 = v23 v2382 = v3121.Weight v2477 = v2382.SteerForce v3121 = 0 v2475 = 0 v2481 = 0 v2382 = Vector3.new local v2485 = v2382(v3121, v2475, v2481) v2477.AngularVelocity = v2485 v2477 = v23 local v2487 = v2477:FindFirstChild("Wheels") if v2487 then v2485 = v23.Weight v2487 = v2485.SteerForce v2482 = v44 v2483 = v2482.WorldSteerForce v2482 = v117 v2483 = math.abs local v2490 = v2483(v2482) v2485 = Vector3.new v2487.MaxTorque = v2485(0, ((v2483) * 1.7) * v2490, 0) local v2493 = v23 local v3125 = v2493.vehicleType v2487 = v3125.Value if v2487 ~= "Motorcycle1" then v2493 = v23 v3125 = v2493.vehicleType v2487 = v3125.Value if v2487 ~= "Motorcycle2" then v2493 = v23 v3125 = v2493.vehicleType v2487 = v3125.Value if v2487 ~= "Motorcycle3" then v2493 = v23 v3125 = v2493.vehicleType v2487 = v3125.Value if v2487 ~= "Motorcycle4" then v2493 = v23 v3125 = v2493.vehicleType v2487 = v3125.Value if v2487 ~= "Dirtbike85CC" then v2493 = v23 v3125 = v2493.vehicleType v2487 = v3125.Value if v2487 ~= "Dirtbike250CC" then v2493 = v23 v3125 = v2493.vehicleType v2487 = v3125.Value if v2487 == "Dirtbike450CC" then v2487 = v117 v3125 = 0 if v2487 >= v3125 then v2493 = v23 v3125 = v2493.Weight v2487 = v3125.SteerForce v2493 = 0 v3125 = Vector3.new v2487.AngularVelocity = v3125(v2493, -2, 0) v2487 = v117 if 0 >= v2487 then v2487 = v23.Weight.SteerForce v2487.AngularVelocity = Vector3.new(0, 2, 0) v2487 = v23.Weight.SteerForce v2487.AngularVelocity = Vector3.new(0, 0, 0) local v2505 = v23 local v3131 = v2505.vehicleType v2487 = v3131.Value if v2487 ~= "ATV" then v2505 = v23 v3131 = v2505.vehicleType v2487 = v3131.Value if v2487 ~= "ATV3" then v2505 = v23 v3131 = v2505.vehicleType v2487 = v3131.Value if v2487 == "GolfKart" then v2487 = v117 v3131 = 0 if v2487 >= v3131 then v2505 = v23 v3131 = v2505.Weight v2487 = v3131.SteerForce v2505 = 0 v2490 = 1 v2389 = v99 v3131 = Vector3.new v2487.AngularVelocity = v3131(v2505, -math.min(v2490, (v2389) / 30), 0) v2487 = v117 if 0 >= v2487 then v2487 = v23.Weight.SteerForce local v2513 = v99 v2487.AngularVelocity = Vector3.new(0, math.min(1, (v2513) / 30), 0) v2487 = v23.Weight.SteerForce v2487.AngularVelocity = Vector3.new(0, 0, 0) local v2523 = v23 local v3138 = v2523.vehicleType v2487 = v3138.Value if v2487 == "GEClassic" then v2487 = v117 v3138 = 0 if v2487 >= v3138 then v2523 = v23 v3138 = v2523.Weight v2487 = v3138.SteerForce v2523 = 0 v2389 = v99 v2513 = (v2389) / 80 v3138 = Vector3.new v2487.AngularVelocity = v3138(v2523, -math.min(2, v2513), 0) else v2487 = v117 v2528 = 0 if v2528 >= v2487 then v2528 = v23.Weight v2487 = v2528.SteerForce v2528 = Vector3.new v2487.AngularVelocity = v2528(0, math.min(2, (v99) / 80), 0) else v2536 = v23.Weight v2487 = v2536.SteerForce v2536 = Vector3.new v2487.AngularVelocity = v2536(0, 0, 0) v2487 = v117 if v2487 >= 0 then v2487 = v23.Weight.SteerForce v2389 = v99 v2531 = (v2389) / 100 v2487.AngularVelocity = Vector3.new(0, -math.min(2.5, v2531), 0) else v2487 = v117 v2546 = 0 if v2546 >= v2487 then v2546 = v23.Weight v2487 = v2546.SteerForce v2546 = Vector3.new v2487.AngularVelocity = v2546(0, math.min(2.5, (v99) / 100), 0) else v2554 = v23.Weight v2487 = v2554.SteerForce v2554 = Vector3.new v2487.AngularVelocity = v2554(0, 0, 0) v2487 = v117 if v2487 >= 0 then v2487 = v23.Weight.SteerForce v2487.MaxTorque = Vector3.new(0, (v44.WorldSteerForce) * 22, 0) v2487 = v23.Weight.SteerForce v2389 = 1 v2451 = v99 v2439 = (v2451) / 40 v2549 = math.min v2487.AngularVelocity = Vector3.new(0, ((-1) * v2549(v2389, v2439)) * v159, 0) else v2487 = v117 v2568 = 0 if v2568 >= v2487 then v2568 = v23.Weight v2487 = v2568.SteerForce v2560 = v44 v2568 = Vector3.new v2487.MaxTorque = v2568(0, (v2560.WorldSteerForce) * 22, 0) v2487 = v23.Weight.SteerForce v2560 = 1 v2451 = v99 v2565 = math.min v2560 = v159 v2487.AngularVelocity = Vector3.new(0, ((v2560) * v2565(1, (v2451) / 40)) * v2560, 0) else v2579 = v23.Weight v2487 = v2579.SteerForce v2576 = v44 v2560 = v2576.WorldSteerForce v2484 = v23 v2451 = v2484.Weight v2576 = math.abs v2560 = math.max v2579 = Vector3.new v2487.MaxTorque = v2579(0, ((v2560) * 15) * v2560(v2576(v2451.AssemblyAngularVelocity.Y), 2), 0) v2487 = v23.Weight.SteerForce v2487.AngularVelocity = Vector3.new(0, 0, 0) end end end end end end v2487 = v16 if v2487:GetAttribute("InGarage") then v2592 = v23.Weight.SteerForce v2586 = 0 v2592.AngularVelocity = Vector3.new(0, 0, v2586) end v2598 = v23 v2592 = v2598.Body local v2600 = v2592:FindFirstChild("BouncePart") if v2600 then v2600 = v120 v2598 = 0 if v2600 >= v2598 then v2598 = v23.Body.BouncePart.Position.Y local v3169 = v23 local v3170 = v3169.Weight local v3171 = v3170.Position local v3172 = v3171.Y v2600 = v2598 - v3172 v2598 = 1.25 if v2598 >= v2600 then v3172 = v23 v2598 = v3172.vehicleType v2600 = v2598.Value if v2600 == "Boat3" then v3171 = v23 v3172 = v3171.Body v2598 = v3172.BouncePart v2600 = v2598.BodyForce v3172 = 0 v3171 = 10000 v3170 = 0 v2598 = Vector3.new v2600.Force = v2598(v3172, v3171, v3170) else v2605 = v23.Body.BouncePart v2600 = v2605.BodyForce v2605 = Vector3.new v2600.Force = v2605(0, 45000, 0) v2600 = v23.Body.BouncePart.BodyForce v2600.Force = Vector3.new(0, 0, 0) v2600 = v23.Body.BouncePart.BodyForce v2600.Force = Vector3.new(0, 0, 0) end v2600 = v820 if v2600 == "Keyboard" then v2600 = v9 local v2619 = v2600:IsKeyDown(Enum.KeyCode.W) if v2619 then v2619 = v9 local v2621 = v2619:IsKeyDown(Enum.KeyCode.Space) if v2621 then v2621 = v99 v2617 = 15 if v2617 >= v2621 then v2621 = true v72 = v2621 v2621 = false v72 = v2621 v2621 = v807 if v2621 then v2621 = v806 if v2621 then v2621 = v99 v2617 = 15 if v2617 >= v2621 then v2621 = true v72 = v2621 v2621 = false v72 = v2621 end v2621 = v9 local v2623 = v2621:IsKeyDown(Enum.KeyCode.W) if v2623 then v2623 = v9 local v2625 = v2623:IsKeyDown(Enum.KeyCode.S) if v2625 then v2625 = v99 v2617 = 4 if v2617 >= v2625 then v2617 = v44 v2625 = v2617.LaunchControlEnabled if v2625 then v2625 = true v73 = v2625 v2625 = false v73 = v2625 end end v2625 = v98 if v2625 then v2625 = 8 v76 = v2625 else v2625 = 0 v76 = v2625 end local v2626 = v77 local v2627 = v76 v2617 = v2626 - v2627 v2625 = math.abs if v2625(v2617) > 1 then if v76 >= v77 then v77 = v77 + 0.6 else if v77 >= v76 then v77 = v77 - 1.2 end end end if v120 >= 0 then if v66 >= 0 then if v159 == 1 then v2627 = 6 local v2630 = v120 v2626 = (v2627) * v2630 v74 = 70 + v2626 v74 = 70 v74 = 70 if v120 == 0 then v74 = 70 if v99 >= 10 then if v66 >= 0 then if v159 == 1 then v2627 = 3 v2630 = v120 v2626 = (v2627) * v2630 v74 = 70 + v2626 else v74 = 70 v74 = 70 end v2626 = v75 v2627 = v74 if math.abs(v2626 - v2627) > 0.5 then if v74 >= v75 then v75 = v75 + 0.075 else if v75 >= v74 then v75 = v75 - 0.15 end end end v2626 = v75 v2627 = v77 v21.FieldOfView = v2626 + v2627 v2626 = v23 local v3187 = v2626.VehicleSeat v2626 = "Whine" local v2633 = v3187.FrontSound:FindFirstChild(v2626) if v2633 then v2633 = v122 if v2633 == true then v2633 = v120 v3187 = 0 if v2633 >= v3187 then v2633 = v95 v3187 = 1.9 if v3187 > v2633 then v3187 = v95 v2633 = v3187 + 0.1 v95 = v2633 v2633 = v95 v3187 = 0.05 if v2633 > v3187 then v3187 = v95 v2633 = v3187 - 0.05 v95 = v2633 end end v2627 = v23 v3187 = v2627.VehicleSeat.FrontSound v2633 = v3187.Whine v3187 = true v2633.Playing = v3187 v2633 = 0 v95 = v2633 v2627 = v23 v3187 = v2627.VehicleSeat.FrontSound v2633 = v3187.Whine v3187 = false v2633.Playing = v3187 v2627 = v23 v3187 = v2627.VehicleSeat.FrontSound v2633 = v3187.Whine v3187 = (v95) * 0.3 v2633.Volume = v3187 v2627 = v23 v3187 = v2627.VehicleSeat.FrontSound v2633 = v3187.Whine v2630 = v67 local v2635 = v44 v3169 = v2635.MaxRPM v2627 = (v2630) / v3169 v2627 = 1.5 v3187 = math.min v2633.PlaybackSpeed = v3187((v2627) * 1.2, v2627) local v3194 = v23.VehicleSeat v2633 = v3194.FrontSound local v2638 = v2633:FindFirstChild("Whistle") if v2638 then v2638 = v121 if v2638 then v3194 = script.Parent.Speedometer v2638 = v3194.psiLabel v2451 = v96 local v2642 = v44 v2447 = v2642.MaxRPM v2484 = math.min local v2644 = v2484((v67) / v2447, 2) v2582 = v2451 + v2644 v2451 = v100 v2635 = (v2582) * v2451 v3169 = (v2635) * 10 v2630 = math.floor local v2645 = v2630(v3169) local v3197 = (v2645) / 10 local v3198 = " PSI" v3194 = v3197 .. v3198 v2638.Text = v3194 v2638 = v120 v3194 = 0 if v2638 >= v3194 then v2638 = true v88 = v2638 v2638 = v96 v3194 = 0.9 if v3194 >= v2638 then v2638 = v96 v2638 = v2638 + 0.01 v96 = v2638 end v2638 = v71 if v2638 then v2638 = v70 if v2638 then v2638 = v66 if v2638 ~= 0 then v2638 = v66 if v2638 ~= -1 then v3198 = v23 v3197 = v3198.VehicleSeat v3194 = v3197.FrontSound v2638 = v3194.Whistle v3194 = true v2638.Playing = v3194 else v3198 = v23 v3197 = v3198.VehicleSeat v3194 = v3197.FrontSound v2638 = v3194.Whistle v3194 = false v2638.Playing = v3194 v2638 = v88 if v2638 == true then v2638 = false v88 = v2638 v2638 = v67 v3198 = v44 v3197 = v3198.MaxRPM v3194 = (v3197) / 3 if v2638 >= v3194 then v2638 = coroutine.wrap v3194 = function() v23.VehicleSeat.FrontSound.BOV:Play() v23.VehicleSeat.FrontSound.BOV.PlaybackSpeed = (math.random(110, 120)) / 100 local v2653 = v23 local v2663 = v2653.VehicleSeat local v2665 = v2663.FrontSound.BOV local v2666 = 0 v2665.TimePosition = v2666 while true do v2665 = wait v2666 = 0.01 v2665(v2666) v2653 = v23.VehicleSeat v2663 = v2653.FrontSound if v2663.BOV.Playing ~= false then break end if v88 ~= true then break end end v2655 = v23.VehicleSeat.FrontSound v2656 = v2655.BOV v2655 = false v2656.Playing = v2655 end (v2638(v3194))() end end if v96 >= 0 then v96 = v96 - 0.03 else v3198 = v23 v3197 = v3198.VehicleSeat v3197.FrontSound.Whistle.Playing = false end end v2671 = v71 if v2671 then v2671 = v70 if v2671 then v3198 = v23 v3197 = v3198.VehicleSeat v2672 = v3197.FrontSound v2671 = v2672.Whistle v3197 = v96 v2582 = v44 v2635 = v2582.MaxRPM v2645 = (v67) / v2635 v3198 = math.min v2672 = v3197 + v3198(v2645, 2) v2671.PlaybackSpeed = v2672 else v2674 = v23 v3197 = v2674.VehicleSeat v2672 = v3197.FrontSound v2671 = v2672.Whistle v2672 = false v2671.Playing = v2672 end v2672 = v200 v2671 = v2672.Tires if v2671 == "StockTires" then v2671 = 1 v158 = v2671 v2671 = 1 v140 = v2671 v2671 = false v160 = v2671 v2671 = false v87 = v2671 else v2672 = v200 v2671 = v2672.Tires if v2671 == "OffroadTires" then v2671 = 1 v158 = v2671 v2671 = 1 v140 = v2671 v2671 = true v160 = v2671 v2671 = false v87 = v2671 else v2672 = v200 v2671 = v2672.Tires if v2671 == "RaceTires" then v2671 = 1.1 v158 = v2671 v2671 = 1.1 v140 = v2671 v2671 = false v160 = v2671 v2671 = false v87 = v2671 else v2672 = v200 v2671 = v2672.Tires if v2671 == "DriftTires" then v2671 = 0.9 v158 = v2671 v2671 = 0.9 v140 = v2671 v2671 = false v160 = v2671 v2671 = true v87 = v2671 else v2672 = v200 v2671 = v2672.Tires if v2671 == "DragTires" then v2671 = 0.75 v158 = v2671 v2671 = 1.25 v140 = v2671 v2671 = false v160 = v2671 v2671 = false v87 = v2671 end end end end end v3197 = v44 v2672 = v3197.Gears v2671 = #v2672 if v2671 == 3 then v2671 = v1214 v2672 = 3 v2671(v2672) end local v2675 = v71 if not v2675 then v2675 = v61 if v2675 then v2675 = v99 v3197 = v1214 local v2676 = v66 v2674 = v2676 + 2 local v2677 = v3197(v2674) local v2678 = v27 if (v2677) * v2678 >= v2675 then v2675 = false v84 = v2675 local v2680 = v44 v2676 = v2680.Gears v2635 = v66 v2678 = v2676[v2635 + 2] v2677 = v2678[2] v2675 = (math.abs(v2677)) * v120 v65 = v2675 v2678 = v1214 v2676 = v66 + 2 local v2684 = v27 v2675 = (math.abs((v2678(v2676)) * v2684)) * v120 v60 = v2675 v2675 = true v92 = v2675 v2675 = 0 v60 = v2675 v2675 = true v84 = v2675 v2675 = v99 local v3205 = v44 local v3206 = v3205.Gears local v2687 = v1214(#v3206) local v2688 = v27 if (v2687) * v2688 >= v2675 then v2675 = false v84 = v2675 v2675 = v99 if 4 >= v2675 then v3205 = v44 v3206 = v3205.Gears v2688 = v3206[3] v2687 = v2688[1] v2688 = v27 v2687 = v120 v2675 = ((v2687) * v2688) * v2687 v60 = v2675 v2635 = v44 v3205 = v2635.Gears v3206 = v3205[3] v2688 = v3206[2] v3206 = v27 v2687 = (v2688) * v3206 v2688 = 2000 local v2689 = math.max(v2687, v2688) local v2690 = v120 v2675 = (v2689) * v2690 v65 = v2675 v2675 = 0 v66 = v2675 v2675 = true v92 = v2675 v2675 = v159 if v2675 == 1 then v2690 = v44 v2689 = v2690.Gears v2675 = #v2689 if v2675 == 3 then v3206 = v44 v2690 = v3206.Gears[3] v2689 = v2690[2] v2675 = math.abs v65 = v2675(v2689) v2690 = v1214 local v2694 = v27 local v3210 = v120 v60 = ((v2690(3)) * v2694) * v3210 v66 = 1 v92 = true local v2696, v2697, v2693 = pairs(v44.Gears) for v2694, v2684 in v2696, v2697, v3210 do v2635 = v1214 v2582 = v2694 v2680 = (v2635(v2582)) * v27 local v3217 = v99 v2680 = v99 v2451 = v2694 - 1 local v2700 = v1214(v2451) local v2701 = v27 local v3219 = (v2700) * v2701 v2680 = v71 v2680 = v70 if v2680 then v3219 = v2684[2] v2680 = math.abs v65 = v2680(v3219) v2700 = v1214 v2701 = v2694 v60 = ((v2700(v2701)) * v27) * v120 v66 = v2694 - 2 v92 = true end end v2696 = -1 v66 = v2696 v3206 = v44 local v3224 = v3206.Gears v3210 = v3224[1] if v3205 >= v2698 then v2697 = v3210[2] v2696 = math.abs local v2706 = v2696(v2697) v65 = v2706 v2705 = v44 v2702 = v2705.Gears if v3205 >= v2698 then v3206 = v2702[1] if v3205 then v3224 = v3206[1] v3206 = v27 v3210 = (v3224) * v3206 v2706 = (math.abs(v3210)) * v120 v60 = v2706 v2706 = true v92 = v2706 v2706 = true v84 = v2706 v2706 = 0 v60 = v2706 v3224 = v44 local v3225 = v3224.Gears local v3226 = #v3225 v2706 = v3226 - 2 v66 = v2706 v2706 = 3000 v65 = v2706 v2706 = true v92 = v2706 v2706 = v66 if v2706 == -1 then v2706 = v159 if v2706 == -1 then v2706 = v120 v3226 = 0 if v3226 >= v2706 then v3226 = v99 v3225 = v27 v2706 = (v3226) / v3225 v2702 = v44 v3206 = v2702.Gears v3224 = v3206[1] v3225 = v3224[1] v3226 = math.abs if v3226(v3225) >= v2706 then v2706 = false v84 = v2706 else v2706 = true v84 = v2706 v2706 = false v84 = v2706 v2706 = v99 if v2706 >= 25 then v2703 = v44 v2705 = v2703.Gears v2704 = v66 v2703 = v2704 + 1 v2702 = v2705[v2703] v3206 = v2702[1] v2702 = v27 v3224 = (v3206) * v2702 v2706 = (math.abs(v3224)) * v120 + 3 v60 = v2706 v2706 = v44.MidShiftTorque v65 = v2706 v2706 = true v92 = v2706 end end v2706 = v38 if v2706 then v2713 = v23 v2712 = v2713.Weight v2706 = v2712.CFrame.LookVector v3206 = v23 v2713 = v3206.Weight v2712 = v2713.AssemblyLinearVelocity if v120 >= 0 then v66 = 1 if 0 >= v120 then if 50 >= v2706:Dot(v2712) then v66 = -1 else v66 = 1 end if v84 then v65 = 400 v60 = 0 end local v2716 = v23.Weight:FindFirstChild("raceHoldingForce") if v2716 then v2716 = true v84 = v2716 end if v92 == true then v65 = (v65) * v202 v92 = false end if v66 ~= v68 then if v71 then if v70 then if v68 >= v66 then local v3518 = v44.DownShiftTime v70 = true else local v3521 = v44.UpShiftTime v71 = true end v68 = v66 if v121 then if v120 >= 0 then v2702 = v23 v3206 = v2702.VehicleSeat v2713 = v3206.FrontSound if v2713.BOV.Playing == true then if v99 >= 10 then v3206 = v44 v2713 = v3206.MaxRPM if v67 >= (v2713) / 3 then (coroutine.wrap(function() v23.VehicleSeat.FrontSound.BOV:Play() v23.VehicleSeat.FrontSound.BOV.PlaybackSpeed = (math.random(90, 110)) / 100 local v2725 = v23 local v2735 = v2725.VehicleSeat local v2737 = v2735.FrontSound.BOV local v2738 = 0 v2737.TimePosition = v2738 while true do v2737 = wait v2738 = 0.01 v2737(v2738) v2725 = v23.VehicleSeat v2735 = v2725.FrontSound if v2735.BOV.Playing ~= false then break end v2725 = v23.VehicleSeat v2735 = v2725.FrontSound if v2735.Whistle.Playing ~= true then break end end v2727 = v23.VehicleSeat.FrontSound v2728 = v2727.BOV v2727 = false v2728.Playing = v2727 end))() end end end end end v1130((nil) * v196) end if not v71 then if not v70 then v3206 = v44 v2713 = v3206.Gears v2702 = v66 v3206 = v2702 + 2 local v2747 = v2713[v3206] if v69 ~= v2747[1] then v2747 = v66 v69 = v1214(v2747 + 2) end end end v2749 = v174 if v2749 == true then v2713 = script v2747 = v2713.Parent v2749 = v2747.MobileSpeedometer.speedLabel v2703 = v99 v2704 = v27 v2705 = (v2703) / v2704 v2702 = (v2705) * 1.609344 v3206 = math.floor v2747 = v3206(v2702) v2713 = "KMH" v2749.Text = v2747 .. v2713 else v2713 = script v2747 = v2713.Parent v2750 = v2747.MobileSpeedometer v2749 = v2750.speedLabel v2705 = v99 v2703 = v27 v2751 = math.floor v2747 = v2751((v2705) / v2703) v2713 = "MPH" v2750 = v2747 .. v2713 v2749.Text = v2750 end v2749 = "A" v2750 = v61 if v2750 then v2749 = "M" end v2753 = script.Parent v2713 = v2753.MobileSpeedometer v2747 = v2713.rpmBar v2750 = v2747.bar v2747 = UDim2.new v2703 = v44 v2705 = v2703.MaxRPM v2753 = (v67) / v2705 v2713 = (v2753) * 0.974 v2753 = 0 v2705 = 0 v2750.Size = v2747(v2713, v2753, 0.6, v2705) v2750 = v67 local v2756 = v44 local v2757 = v2756.MaxRPM if (v2757) * 0.75 >= v2750 then v2756 = script.Parent v2757 = v2756.MobileSpeedometer v2750 = v2757.rpmBar.bar v2757 = 0 v2756 = 170 v2750.BackgroundColor3 = Color3.fromRGB(v2757, v2756, 0) v2750 = v67 local v2760 = v44 local v2761 = v2760.MaxRPM if v2750 >= (v2761) * 0.75 then v2750 = v67 v2760 = v44 v2761 = v2760.MaxRPM if (v2761) * 0.95 >= v2750 then v2760 = script.Parent v2761 = v2760.MobileSpeedometer v2750 = v2761.rpmBar.bar v2761 = 255 v2760 = 170 v2750.BackgroundColor3 = Color3.fromRGB(v2761, v2760, 0) else v2750 = v67 local v2764 = v44 local v2765 = v2764.MaxRPM v2763 = (v2765) * 0.95 if v2750 >= v2763 then v2764 = script.Parent v2765 = v2764.MobileSpeedometer v2763 = v2765.rpmBar v2750 = v2763.bar v2763 = Color3.fromRGB v2765 = 170 v2764 = 0 v2750.BackgroundColor3 = v2763(v2765, v2764, 0) end end v2767 = script.Parent.Speedometer v2750 = v2767.SpeedArrow local v3237 = v67 local v3238 = (v3237) / 1000 v2767 = (v3238) * 21 v2750.Rotation = v2767 v2750 = v174 if v2750 == true then v3237 = script v3238 = v3237.Parent v2767 = v3238.Speedometer v2750 = v2767.speedLabel v3237 = (v99) / v27 v3238 = (v3237) * 1.609344 v2767 = math.floor v2750.Text = v2767(v3238) v3237 = script v2750 = v3237.Parent.Speedometer.speedUnit v2750.Text = "KMH" else v3237 = script v2773 = v3237.Parent v2772 = v2773.Speedometer v2750 = v2772.speedLabel v3237 = v99 v2770 = v27 v2773 = (v3237) / v2770 v2772 = math.floor v2750.Text = v2772(v2773) v3237 = script v2750 = v3237.Parent.Speedometer.speedUnit v2750.Text = "MPH" end v2750 = "" v2774 = v66 v2775 = 0 if v2774 >= v2775 then v2770 = script v3237 = v2770.Parent v2775 = v3237.Speedometer v2774 = v2775.gearLabel v3237 = v2749 v2770 = v66 v2775 = v3237 .. v2770 v2774.Text = v2775 v2750 = v66 else v2774 = v66 if v2774 == 0 then v2770 = script v3237 = v2770.Parent v2775 = v3237.Speedometer v2774 = v2775.gearLabel v2775 = "N" v2774.Text = v2775 v2750 = "N" else v2774 = v66 if v2774 == -1 then v2770 = script v3237 = v2770.Parent v2775 = v3237.Speedometer v2774 = v2775.gearLabel v2775 = "R" v2774.Text = v2775 v2750 = "R" end end end v2774 = pairs v2775 = v359 local v2776, v2777, v2768 = v2774(v2775) for v2770, v2771 in v2776, v2777, v3237 do v2704 = v2771.SurfaceGui v2703 = v2704.TextLabel v2644 = v67 v2704 = math.floor v2703.Text = v2704(v2644) end v2776 = pairs v2777 = v358 local v2779, v2780, v2768 = v2776(v2777) for v2770, v2771 in v2779, v2780, v3237 do v2778 = v2771.SurfaceGui v2703 = v2778.TextLabel v2703.Text = v2750 end v2780 = v23 v2779 = v2780.Body v3237 = "VirtualSpeedometer" local v2781 = v2779:FindFirstChild(v3237) if v2781 then v2771 = v23 v2770 = v2771.Body local v2782 = v2770.VirtualSpeedometer v2780 = v2782.SurfaceGui v2781 = v2780.Gear v2781.Text = v2750 v2781 = v174 if v2781 == true then v2771 = v23 v2770 = v2771.Body v2782 = v2770.VirtualSpeedometer v2780 = v2782.SurfaceGui v2781 = v2780.Speed v2771 = v99 v2703 = v27 v2770 = (v2771) / v2703 v2782 = (v2770) * 1.609344 v2780 = math.floor v2781.Text = v2780(v2782) else v2771 = v23 v2770 = v2771.Body v2783 = v2770.VirtualSpeedometer.SurfaceGui v2781 = v2783.Speed v2770 = v99 v2771 = v27 v2783 = math.floor v2781.Text = v2783((v2770) / v2771) end v2781 = v61 if v2781 == true then v2771 = v23 v2770 = v2771.Body v2785 = v2770.VirtualSpeedometer.SurfaceGui v2781 = v2785.GearboxMode v2785 = "M" v2781.Text = v2785 else v2771 = v23 v2770 = v2771.Body v2786 = v2770.VirtualSpeedometer v2785 = v2786.SurfaceGui v2781 = v2785.GearboxMode v2785 = "A" v2781.Text = v2785 end v2703 = v23 v2771 = v2703.Body v2770 = v2771.VirtualSpeedometer v2786 = v2770.SurfaceGui v2785 = v2786.RPMBar v2781 = v2785.Fill v2785 = UDim2.new v2770 = v67 v2703 = v44 v2771 = v2703.MaxRPM v2786 = (v2770) / v2771 v2770 = 0 v2771 = 1 v2703 = 0 v2781.Size = v2785(v2786, v2770, v2771, v2703) end v2787 = v44.Gears local v2789 = v66 local v3244 = v2789 + 2 if v2787[v3244] then if v66 ~= 0 then v2787 = v69 if math.abs(v2787) < 9 then if v73 then if v73 then v2789 = v44 v3244 = v2789.MaxRPM local v2792 = v44 v2789 = v2792.LaunchControlRPMHoldMulti if (v3244) * v2789 >= v67 then v67 = v67 + 150 if v120 >= 0 then v3244 = v44 if v3244.MaxRPM >= v67 then v67 = v67 + 150 else v3244 = v44 if v67 >= v3244.IdleRPM then v67 = v67 - 50 v3244 = v44 if v67 >= v3244.IdleRPM then v67 = v67 - 50 v2778 = math.abs v2792 = (v99) / v2778((v69) * v27) v2789 = (v2792) * v44.MaxRPM v2792 = v85 v3244 = v2789 + v2792 v2792 = v44 v2789 = v2792.IdleRPM v67 = math.min(math.max(v3244, v2789), v44.MaxRPM) end end end v2801 = v67 if 0 >= v2801 then v2801 = 0 v67 = v2801 end v2799 = v23 v2801 = v2799.VehicleSeat.RearSound.Rev v2792 = v67 v2797 = v44 v2793 = v2797.MaxRPM v2799 = (v2792) / v2793 v2799 = 1.5 v2801.PlaybackSpeed = math.min((v2799) * 1.2, v2799) local v3250 = v23.VehicleSeat v2801 = v3250.RearSound local v2806 = v2801:FindFirstChild("Idle") if v2806 then v2806 = 1 v3250 = v44.IdleVolumeMultiplier if v3250 ~= nil then v3250 = v44 v2806 = v3250.IdleVolumeMultiplier end v2797 = v44.IdleRPM v2793 = (v2797) * 3 v2797 = v67 v2792 = v2793 - v2797 v2797 = v44 v2793 = v2797.IdleRPM v3250 = math.max v83 = v3250((v2806) * (v2792) / v2793, 0) v2792 = v23 v2792 = v67 v2797 = v44.IdleRPM v2793 = (v2797) * 2.5 v2792 = 1 v2792.VehicleSeat.RearSound.Idle.PlaybackSpeed = math.max((v2792) / v2793, v2792) v23.VehicleSeat.RearSound.Idle.Volume = v83 v2793 = v23 local v3261 = v2793.VehicleSeat local v3262 = v3261.RearSound local v3263 = v3262.Startup local v3264 = v3263.Playing if not v3264 then v3261 = v23 v3262 = v3261.VehicleSeat v3263 = v3262.RearSound v3264 = v3263.Idle v3263 = true v3264.Playing = v3263 end end v2814 = v67 v2797 = v44 v2793 = v2797.MaxRPM v2815 = (v2814) / v2793 v2793 = v44 v2814 = v2793.MaxVolume v2813 = (v2815) * v2814 v2814 = v44 v2815 = v2814.MinVolume v2810 = math.max v82 = (v2810(v2813, v2815)) * 0.3 v2814 = v83 local v2819 = math.max(v82 - v2814, 0) v23.VehicleSeat.RearSound.Rev.Volume = v2819 if v61 then if v66 == -1 then v2819 = 0 if v120 >= v2819 then v2819 = v44.Gears[1] v65 = v2819[2] v2814 = v44 v2819 = v2814.Gears[1][1] v60 = (v2819) * v27 v92 = true else v2819 = 0 if v2819 >= v120 then v60 = 0 v2821 = v44 v2819 = v2821.BrakeTorque v2821 = v203 v65 = (v2819) * v2821 v92 = true else v60 = 0 v2819 = v44 v65 = v2819.RelaxTorque v92 = true v2819 = 0 if v2819 >= v120 then if v159 ~= 1 then v60 = 0 end end end end v2821 = "Wheels" local v2822 = v23:FindFirstChild(v2821) if v2822 then v2822 = v72 if not v2822 then v2822 = v73 if not v2822 then v2822 = pairs local v2823 = v23 v2819 = v2823.Core local v2824, v2825, v2823 = v2822(v2819:GetChildren()) for v2820, v2814 in v2824, v2825, v2823 do v2808 = "CylindricalConstraint" local v2826 = v2814:IsA(v2808) v2826 = v64 v2826 = v2814.Name v2826 = v2814.Name v2797 = v44 v2826 = v2797.HandbrakeTorque v2814.MotorMaxTorque = v2826 v2814.AngularVelocity = 0 v2814.MotorMaxTorque = 0 v2814.AngularVelocity = 0 local v3279 = v123 local v3280 = v2814.Name local v3281 = v2814.Name local v3282 = v120 v2797 = v44 v2814.MotorMaxTorque = v2797.RelaxTorque v2814.AngularVelocity = 0 v2797 = math.abs local v2828 = v2797(v65) v2814.MotorMaxTorque = (v2828) * 2 v2814.AngularVelocity = v60 v2814.MotorMaxTorque = 0 v2814.AngularVelocity = 0 local v3289 = v123 local v3290 = v2814.Name local v3291 = v2814.Name if v120 == 0 then v2828 = v44 v2814.MotorMaxTorque = v2828.RelaxTorque v2814.AngularVelocity = 0 else v2828 = math.abs local v2830 = v2828(v65) v2814.MotorMaxTorque = (v2830) * 2 v2814.AngularVelocity = v60 v2814.MotorMaxTorque = 0 v2814.AngularVelocity = 0 if v120 == 0 then v2830 = v44 v2814.MotorMaxTorque = v2830.RelaxTorque v2814.AngularVelocity = 0 else v2830 = v65 v2814.MotorMaxTorque = math.abs(v2830) v2814.AngularVelocity = v60 end end v2831 = v99 if v2831 >= 3 then v2831 = v159 if v2831 == 1 then v2831 = v120 if 0 >= v2831 then v2831 = (v44.BrakeTorque) * v203 v2814.MotorMaxTorque = v2831 v2831 = 0 v2814.AngularVelocity = v2831 end end end end v2824 = pairs if v2826 then v2823 = v23 if v2826 then v2825 = v2823.Core if v2826 ~= "RRcylConstraint" then local v2834, v2835, v2823 = v2824(v2825:GetChildren()) if v2826 == "RLcylConstraint" then for v2820, v2814 in v2834, v2835, v2823 do v2833 = "CylindricalConstraint" local v2836 = v2814:IsA(v2833) v2836 = v123 v2836 = v2814.Name v2836 = v2814.Name v2832 = v44 v2836 = v2832.BurnoutTorque v2814.MotorMaxTorque = v2836 v2814.AngularVelocity = 0 v2832 = math.abs local v2838 = v2832(v65) v2814.MotorMaxTorque = (v2838) * 2 v2814.AngularVelocity = v60 local v3298 = v123 local v3299 = v2814.Name if v2814.Name == "RLcylConstraint" then v2838 = v44 v2814.MotorMaxTorque = v2838.BurnoutTorque v2814.AngularVelocity = 0 else v2838 = math.abs v2814.MotorMaxTorque = (v2838(v65)) * 2 v2814.AngularVelocity = v60 v2814.MotorMaxTorque = v44.RelaxTorque v2814.AngularVelocity = 0 end end v2834 = v123 if v2836 then if v2834 ~= "AWD" then v2834 = v72 if v2834 then v2834 = v97 v2823 = v44 v2835 = v2823.BurnoutFriction if v2834 > v2835 then v2835 = v97 v2834 = v2835 - 0.09 v97 = v2834 v2834 = v123 if v2834 == "RWD" then v2834 = v97 v2820 = v44 v2823 = v2820.RearFriction v2835 = v2823 - 0.005 if v2835 > v2834 then v2835 = v97 v2834 = v2835 + 0.01 v97 = v2834 v2834 = v97 v2820 = v44 v2823 = v2820.FrontFriction v2835 = v2823 - 0.005 if v2835 > v2834 then v2835 = v97 v2834 = v2835 + 0.01 v97 = v2834 end end v2834 = v23 v2823 = "SW" local v2841 = v2834:FindFirstChild(v2823) if v2841 then v2841 = v91 v2841 = v2841 + 1 v91 = v2841 v2841 = v91 v2835 = v90 if v2841 > v2835 then v2841 = 0 v91 = v2841 v2841 = v1218 v2841() end end v2835 = v23 local v2844 = v2835.Body:FindFirstChild("SpeedometerGUI") if v2844 then v2835 = v23.Body v2844 = v2835.SpeedometerGUI local v2846 = v2844:FindFirstChild("SingleGui") if v2846 then local v2847 = v23 v2835 = v2847.vehicleType v2846 = v2835.Value if v2846 == "GEClassic" then v2814 = v23 v2820 = v2814.Body v2847 = v2820.SpeedometerGUI v2835 = v2847.SingleGui v2846 = v2835.Arrow v2820 = v67 v2847 = (v2820) / 10000 v2835 = (v2847) * 244 v2846.Rotation = v2835 else v2846 = 0 v2814 = v23 v2820 = v2814.Body v2847 = v2820.SpeedometerGUI v2835 = v2847.SingleGui v2820 = "offset" local v2848 = v2835:FindFirstChild(v2820) if v2848 then v2836 = v23 v2814 = v2836.Body v2847 = v2814.SpeedometerGUI.SingleGui v2848 = v2847.offset v2846 = v2848.Value end local v3303 = 232 v2836 = v23 v2814 = v2836.Body v2849 = v2814.SpeedometerGUI v2847 = v2849.SingleGui v2814 = "divider" local v2850 = v2847:FindFirstChild(v2814) if v2850 then v2840 = v23 v2836 = v2840.Body v2849 = v2836.SpeedometerGUI.SingleGui v2850 = v2849.divider v3303 = v2850.Value end v2840 = v23 v2836 = v2840.Body v2851 = v2836.SpeedometerGUI v2849 = v2851.SingleGui v2840 = v67 v2836 = (v2840) / 8000 v2851 = (v2836) * v3303 v2849 = v2851 + v2846 v2849.Arrow.Rotation = v2849 end v2849 = v23 v2850 = v2849.Body v2848 = v2850.SpeedometerGUI v2846 = v2848.SingleGui v2850 = "speedText" local v2852 = v2846:FindFirstChild(v2850) if v2852 then v2851 = v23 v2849 = v2851.Body v2848 = v2849.SpeedometerGUI.SingleGui v2852 = v2848.speedText v2840 = v99 v2836 = (v2840) / v27 v2851 = math.floor v2849 = "MPH" v2848 = v2851(v2836) .. v2849 v2852.Text = v2848 end end end v2848 = v23 v2852 = v2848.Body v2853 = "Speedometer1" local v2856 = v2852:FindFirstChild(v2853) if v2856 then v2848 = v99 local v2857 = v27 v2856 = (v2848) / v2857 v2848 = 10 if v2856 > v2848 then v2855 = v23 v2849 = v2855.Body v2857 = v2849.Speedometer1 v2848 = v2857.Background v2856 = v2848.MPHArrow v2857 = -17 v2855 = 20 v2794 = v99 v2795 = v27 v2854 = (v2794) / v2795 v2840 = v2854 - 10 v2849 = (v2855) * (v2840) / 10 v2848 = v2857 + v2849 v2856.Rotation = v2848 else v2855 = v23 v2849 = v2855.Body v2857 = v2849.Speedometer1 v2848 = v2857.Background v2856 = v2848.MPHArrow v2848 = -17 v2856.Rotation = v2848 end v2855 = v23 v2849 = v2855.Body v2848 = v2849.Speedometer1.Background v2856 = v2848.RPMArrow v2855 = v67 v2849 = (v2855) / 1000 v2855 = 31.5 v2849 = 25 v2848 = (v2849) * v2855 + v2849 v2856.Rotation = v2848 end v2848 = v23 v2857 = "SpeedGui" local v2859 = v2848.Body:FindFirstChild(v2857) if v2859 then local v2860 = v23 v2848 = v2860.vehicleType v2859 = v2848.Value if v2859 ~= "GEClassic" then v2860 = v23 v2848 = v2860.vehicleType v2859 = v2848.Value if v2859 == "SapuraRetro" then v2855 = v23 v2849 = v2855.Body v2860 = v2849.SpeedGui v2848 = v2860.SpeedGui v2859 = v2848.Arrow v2858 = v99 v2840 = v27 v2855 = (v2858) / v2840 v2858 = 180 v2849 = (v2855) / v2858 v2855 = 258 v2860 = (v2849) * v2855 v2849 = 18 v2848 = v2860 - v2849 v2859.Rotation = v2848 else v2859 = 0 v2855 = v23 v2849 = v2855.Body v2860 = v2849.SpeedGui v2848 = v2860.SpeedGui v2849 = "offset" local v2861 = v2848:FindFirstChild(v2849) if v2861 then v2858 = v23 v2855 = v2858.Body v2860 = v2855.SpeedGui.SpeedGui v2861 = v2860.offset v2859 = v2861.Value end local v3309 = 0.89 v2858 = v23 v2855 = v2858.Body v2862 = v2855.SpeedGui v2860 = v2862.SpeedGui v2855 = "divider" local v2863 = v2860:FindFirstChild(v2855) if v2863 then v2840 = v23 v2858 = v2840.Body v2862 = v2858.SpeedGui.SpeedGui v2863 = v2862.divider v3309 = v2863.Value end v2840 = v23 v2858 = v2840.Body v2864 = v2858.SpeedGui v2862 = v2864.SpeedGui v2840 = v99 v2854 = v27 v2858 = (v2840) / v2854 v2864 = (v2858) * v3309 v2862 = v2864 + v2859 v2862.Arrow.Rotation = v2862 end v2859 = pairs v2861 = v357 local v2865, v2866, v2863 = v2859(v2861) for v2862, v2864 in v2865, v2866, v2863 do v2840 = v2864.SurfaceGui v2858 = v2840.TextLabel v2794 = v99 v2795 = v27 v2854 = (v2794) / v2795 v2840 = math.floor v2858.Text = v2840(v2854) end v2866 = v23 v2865 = v2866.Body v2863 = "SpeedLabel3" local v2868 = v2865:FindFirstChild(v2863) if v2868 then v2864 = v23 v2862 = v2864.Body v2866 = v2862.SpeedLabel3.SurfaceGui v2868 = v2866.TextLabel v2867 = v99 v2858 = (v2867) / v27 v2864 = math.floor v2862 = " MPH" v2866 = v2864(v2858) .. v2862 v2868.Text = v2866 end v2866 = v23 v2869 = "SpeedLabel2" local v2872 = v2866.Body:FindFirstChild(v2869) if v2872 then v2872 = pairs local v2873 = v23 v2866 = v2873.Body local v2874, v2875, v2873 = v2872(v2866:GetChildren()) for v2862, v2871 in v2874, v2875, v2873 do if v2871.Name == "SpeedLabel2" then v2867 = v2871.SurfaceGui v2794 = v99 v2795 = v27 v2870 = (v2794) / v2795 v2867 = math.floor v2867.TextLabel.Text = v2867(v2870) end end end v2875 = v23 v2874 = v2875.Body v2873 = "RPMMarker" local v2878 = v2874:FindFirstChild(v2873) if v2878 then v2871 = v23 v2862 = v2871.Body v2875 = v2862.RPMMarker.Hinge v2878 = v2875.Motor6D v2877 = v23 v2876 = v2877.Body v2871 = v2876.RPMMarker v2862 = v2871.rotationAmount v2871 = v67 v2862 = (v2871) / 1000 v2875 = (v2862.Value) * v2862 v2878.DesiredAngle = v2875 end v2875 = v23 v2879 = "SpeedMarker" local v2880 = v2875.Body:FindFirstChild(v2879) if v2880 then v2871 = v23 v2862 = v2871.Body v2875 = v2862.SpeedMarker.Hinge v2880 = v2875.Motor6D v2877 = v23 v2876 = v2877.Body v2871 = v2876.SpeedMarker v2862 = v2871.rotationAmount v2862 = v99 v2875 = (v2862.Value) * v2862 v2880.DesiredAngle = v2875 end v2881 = v23 v2875 = v2881.vehicleType if v2875.Value ~= "Motorcycle1" then v2881 = v23 v2875 = v2881.vehicleType if v2875.Value ~= "Motorcycle2" then v2881 = v23 v2875 = v2881.vehicleType if v2875.Value ~= "Motorcycle3" then v2881 = v23 v2875 = v2881.vehicleType if v2875.Value ~= "Motorcycle4" then v2881 = v23 v2875 = v2881.vehicleType if v2875.Value ~= "Dirtbike85CC" then v2881 = v23 v2875 = v2881.vehicleType if v2875.Value ~= "Dirtbike250CC" then v2881 = v23 v2875 = v2881.vehicleType if v2875.Value == "Dirtbike450CC" then if v80 then v93 = -2500 v2881 = v23 v2875 = v2881.Weight v2881 = 1 v2862 = 0 v2871 = 55000 v2875 = Vector3.new v2875.stabalizationForce.MaxTorque = v2875(v2881, v2862, v2871) if 0 >= v117 then v2877 = v23 v2876 = v2877.Weight local v3319 = v2876.CFrame v2876 = CFrame.Angles v2877 = 0 v2794 = 0.43633231299858 local v2887 = v2876(v2877, 0, v2794) v23.Weight.stabalizationForce.CFrame = v23.Weight.stabalizationForce.CFrame:ToObjectSpace((v3319) * v2887) local v3321 = v23 v3321.Weight.stabalizationForce.P = 1500 if v117 >= 0 then v3321 = v23 v3319 = v23 v3321 = v3319.Weight.stabalizationForce v2887 = v23.Weight v3319 = v2887.CFrame v2887 = CFrame.Angles v3321.Weight.stabalizationForce.CFrame = v3321.CFrame:ToObjectSpace((v3319) * v2887(0, 0, -0.43633231299858)) v3321 = v23 v3321.Weight.stabalizationForce.P = 1500 v3321 = v23 v3321 = CFrame.new v3319 = v23.Weight v3319 = 0 v3321.Weight.stabalizationForce.CFrame = (v3321(v3319.Position)) * CFrame.Angles(v3319, 0, 0) local v3335 = 3000 v23.Weight.stabalizationForce.P = v3335 local v2900 = v23:FindFirstChild("Wheels") if v2900 then v3335 = v44 v2900 = v3335.airForceOverride if v2900 ~= nil then v3335 = v44 v2900 = v3335.airForceOverride v93 = v2900 else v2900 = 4000 v93 = v2900 end end v23.Weight.stabalizationForce.MaxTorque = Vector3.new(6.5, 0, 250000) local v2904 = v23 local v3342 = v2904.vehicleType if v3342.Value ~= "Boat1" then v2904 = v23 v3342 = v2904.vehicleType if v3342.Value ~= "Boat2" then v2904 = v23 v3342 = v2904.vehicleType if v3342.Value == "Boat3" then v2904 = "Wheels" local v2905 = v23:FindFirstChild(v2904) if v2905 then v2905 = v80 if v2905 then v2905 = -2500 v93 = v2905 v3342 = v23.Weight v2905 = v3342.stabalizationForce v3342 = Vector3.new v2905.MaxTorque = v3342(1, 0, 0) else v2905 = v23 local v2911 = v2905:FindFirstChild("Wheels") if v2911 then v2911 = 14000 v93 = v2911 end v2909 = v23.Weight v2909 = Vector3.new v2909.stabalizationForce.MaxTorque = v2909(6.5, 0, 6.5) v23.Weight.stabalizationForce.MaxTorque = Vector3.new(25, 0, 25) end local v2920 = v23 v2919 = v2920.vehicleType v2911 = v2919.Value if v2911 ~= "Motorcycle1" then v2920 = v23 v2919 = v2920.vehicleType v2911 = v2919.Value if v2911 ~= "Motorcycle2" then v2920 = v23 v2919 = v2920.vehicleType v2911 = v2919.Value if v2911 ~= "Motorcycle3" then v2920 = v23 v2919 = v2920.vehicleType v2911 = v2919.Value if v2911 ~= "Motorcycle4" then v2920 = v23 v2919 = v2920.vehicleType v2911 = v2919.Value if v2911 ~= "Dirtbike85CC" then v2920 = v23 v2919 = v2920.vehicleType v2911 = v2919.Value if v2911 ~= "Dirtbike250CC" then v2920 = v23 v2919 = v2920.vehicleType v2911 = v2919.Value if v2911 ~= "Dirtbike450CC" then v2911 = v23 v2920 = "Wheels" local v2921 = v2911:FindFirstChild(v2920) if v2921 then local v2924 = v23.VehicleSeat.CFrame local v2927 = CFrame.Angles(1.5707963267949, 0, 0) local v2928 = (v2924) * v2927 v2919 = v2928.lookVector v2921 = v2919.y v2919 = 0.1 if v2921 >= v2919 then v2928 = v23 v2919 = v2928.Weight v2921 = v2919.stabalizationForce v2924 = v23 v2928 = v2924.Weight v2919 = v2928.CFrame v2921.CFrame = v2919 else v2928 = v23 v2919 = v2928.Weight v2921 = v2919.stabalizationForce v2919 = CFrame.new v2928 = 0 v2924 = 0 v2927 = 0 v2921.CFrame = v2919(v2928, v2924, v2927) end end end end end end end end end v2921 = v23 local v2931 = v2921:FindFirstChild("Wheels") if not v2931 then v2929 = v23 v2931 = v2929.Weight local v2933 = v2931:FindFirstChild("BodyVelocity") if not v2933 then v2933 = Instance.new v2929 = "BodyVelocity" local v2934 = v2933(v2929) v2934.Parent = v23.Weight v2934.MaxForce = Vector3.new(35000, 0, 35000) end v2939 = v23 v2934 = v2939.Weight local v2941 = v2934:FindFirstChild("LinearVelocity") if not v2941 then v2941 = Instance.new v2939 = "Attachment" local v2942 = v2941(v2939) v2942.Parent = v23.Weight local v2945 = Instance.new("LinearVelocity") v2945.Parent = v23.Weight v2945.MaxForce = (v23.Weight.AssemblyMass) * 2500 v2945.Attachment0 = v2942 v2945.VelocityConstraintMode = Enum.VelocityConstraintMode.Line end v2947 = v23 v2945 = v2947.Weight v2942 = v2945.LinearVelocity v2949 = v23 v2946 = v2949.Weight v2947 = v2946.CFrame v2945 = v2947.RightVector v2942.LineDirection = v2945 v2942 = v78 if v2942 then v2947 = v23 v2945 = v2947.Weight v2942 = v2945.BodyVelocity v2947 = v120 v2948 = v23.Weight.CFrame v2949 = v2948.lookVector local v3361 = v60 v2948 = math.abs local v2952 = v2948((v3361) * 1.2) v2946 = (v2949) * v2952 v2945 = (v2947) * v2946 v2942.Velocity = v2945 v2942 = v84 if not v2942 then v2942 = canMove if v2942 then v2947 = v23 v2945 = v2947.Weight v2942 = v2945.BodyVelocity v2947 = v120 v3361 = v23 v2952 = v3361.Weight.CFrame v2949 = v2952.lookVector v2952 = math.abs v2946 = (v2949) * v2952(v60) v2945 = (v2947) * v2946 v2942.Velocity = v2945 else v2946 = v23 v2947 = v2946.Weight v2945 = v2947.Velocity v2942 = v2945.Magnitude v2947 = v60 v2946 = 0.8 v2945 = (v2947) * v2946 if v2942 > v2945 then v2947 = v23 v2945 = v2947.Weight v2942 = v2945.BodyVelocity v2947 = v120 v3361 = v23 v2954 = v3361.Weight.CFrame v2949 = v2954.lookVector v3361 = v60 v2954 = math.abs v2946 = (v2949) * v2954((v3361) * 0.98) v2945 = (v2947) * v2946 v2942.Velocity = v2945 else v2947 = v23 v2945 = v2947.Weight v2942 = v2945.BodyVelocity v2947 = 0 v2946 = 0 v2949 = 0 v2945 = Vector3.new v2942.Velocity = v2945(v2947, v2946, v2949) end end local v2959 = v23 v2958 = v2959.Weight.AssemblyMass local v3365 = 5 v2942 = (v2958) * v3365 v2958 = v66 if v2958 == 1 then v2959 = v44 v3365 = v2959.Gears v2958 = v3365[2] v2942 = v2958[2] else v2958 = v66 if v2958 == -1 then v2959 = v44 v3365 = v2959.Gears v2958 = v3365[1] v2942 = v2958[2] end end v2958 = v23.Weight.BodyVelocity v3361 = v23 v2957 = v3361.Weight.AssemblyMass v2957 = (v2942) * 20 v2795 = v23 v2956 = v2795.Weight v3361 = v2956.AssemblyMass v2956 = 20 v3361 = (v2942) * v2956 v2958.MaxForce = Vector3.new(math.max((v2957) * 0.1, v2957), 0, math.max((v3361) * 0.1, v3361)) v2958 = v23.Weight.AssemblyLinearVelocity.Magnitude v2795 = v23 v2956 = v2795.Weight v2956 = v23 local v3387 = v23.Weight v3387.BoatOrientation.PrimaryAxis = Vector3.yAxis + ((-v2956.CFrame.LookVector) * v120) * 0.06 + ((v2956.Weight.CFrame.RightVector) * v117) * 0.1 v2956 = v23 v2956 = 0 v2795 = 50 v2447 = 0 local v2978 = workspace:Raycast(v2956.Weight.Position + Vector3.new(v2956, v2795, v2447), Vector3.new(0, -100, 0), v107) if v2978 then v3387 = v2978.Instance if v3387 ~= nil then v3387 = v2978.Instance if v3387 == workspace.Terrain then v3387 = v2978.Material if v3387 ~= Enum.Material.Water then v2978 = nil end end end end if v2978 then v2979 = v23 v2980 = v2979.Weight v3387 = v2980.Float v2979 = 0 v2980 = Vector3.new v3387.Position = v2980(v2979, v2978.Position.Y, 0) v3387 = v23.Weight.Position.Y local v3399 = v2978.Position.Y local v3400 = 5 if v3387 >= v3399 + v3400 then v3399 = v23 v3387 = v3399.Weight.Float v3387.MaxForce = Vector3.new() else v3399 = v23 v2986 = v3399.Weight v3387 = v2986.Float v3399 = 0 v3400 = (v23.Weight.AssemblyMass) * 500 v2986 = Vector3.new v3387.MaxForce = v2986(v3399, v3400, 0) end v2990 = v23.Weight v3387 = v2990.BoatOrientation v2990 = true v3387.Enabled = v2990 else v2991 = v23 v2990 = v2991.Weight v3387 = v2990.BoatOrientation v2990 = Vector3.yAxis v3387.PrimaryAxis = v2990 v2991 = v23 v2990 = v2991.Weight v3387 = v2990.Float v2990 = Vector3.new v3387.MaxForce = v2990() v2991 = v23 v3387 = v2991.Weight.BoatOrientation v3387.Enabled = false end if 1 >= v2958 then v2991 = v23 v2992 = v2991.Weight v2992 = Vector3.yAxis v2992.BoatOrientation.PrimaryAxis = v2992 end v2991 = v23 v2992 = v2991.Body local v2993, v2994, v2991 = pairs(v2992:GetDescendants()) for v3002, v2995 in v2993, v2994, v2991 do v2988 = v2995.Name if v2988 == "Rotor" then v2642 = "MovingHinge" local v2996 = v2995:FindFirstChild(v2642) if v2996 then v2987 = v2995.Hinge v2996 = v2987.TopRotor v2410 = 200 v2411 = math.min v2987 = (-v2411(v2410, v99)) * v159 v2996.AngularVelocity = v2987 end end v2996 = v2995.Name if v2996 == "EnginePivotable" then v2999 = "Hinge" local v3000 = v2995:FindFirstChild(v2999) if v3000 then v2987 = v2995.Hinge v3000 = v2987.TopRotor v2987 = (v117) * 15 v3000.TargetAngle = v2987 end end end v2958 = v3.GameResource.tempData v2942 = v2958.driveSurface v2958 = v145 v2942.Value = v2958 v2958 = v23 v2942 = v2958.VehicleHandlerClient v2942:SetAttribute("Throttle", v120) return end end end end end end end end end end end end end end end end end end end end end end end if v2836 == "RWD" then if v2836 ~= "RRcylConstraint" then end if v2836 ~= "FRcylConstraint" then if v2836 == "FWD" then end if v2836 == "FLcylConstraint" then end end end end if v2826 == "FLcylConstraint" then end if v2826 ~= "FRcylConstraint" then end if v2826 == "FWD" then end if v2826 == 0 then end if v2826 == "RLcylConstraint" then end if v2826 ~= "RRcylConstraint" then end if v2826 == "RWD" then end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end if v2387 ~= "RL" then end if v2387 >= v2394 then end if v2394 then end if v2387 == 0 then if v2392 then end end end end end end end end end) return end end end end end