Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- VehicleSeat1 = Instance.new("VehicleSeat")
- Model2 = Instance.new("Model")
- Part3 = Instance.new("Part")
- Model4 = Instance.new("Model")
- Decal5 = Instance.new("Decal")
- Decal6 = Instance.new("Decal")
- Model7 = Instance.new("Model")
- Model8 = Instance.new("Model")
- PointLight9 = Instance.new("PointLight")
- Decal10 = Instance.new("Decal")
- Decal11 = Instance.new("Decal")
- Decal12 = Instance.new("Decal")
- Decal13 = Instance.new("Decal")
- Decal14 = Instance.new("Decal")
- Decal15 = Instance.new("Decal")
- Model16 = Instance.new("Model")
- Model17 = Instance.new("Model")
- Part18 = Instance.new("Part")
- BodyGyro19 = Instance.new("BodyGyro")
- Script20 = Instance.new("Script")
- BodyForce21 = Instance.new("BodyForce")
- ParticleEmitter22 = Instance.new("ParticleEmitter")
- Sound23 = Instance.new("Sound")
- Part24 = Instance.new("Part")
- Model25 = Instance.new("Model")
- Decal26 = Instance.new("Decal")
- Decal27 = Instance.new("Decal")
- Model28 = Instance.new("Model")
- Model29 = Instance.new("Model")
- PointLight30 = Instance.new("PointLight")
- Decal31 = Instance.new("Decal")
- Decal32 = Instance.new("Decal")
- Decal33 = Instance.new("Decal")
- Decal34 = Instance.new("Decal")
- Decal35 = Instance.new("Decal")
- Decal36 = Instance.new("Decal")
- Model37 = Instance.new("Model")
- Model38 = Instance.new("Model")
- Part39 = Instance.new("Part")
- BodyGyro40 = Instance.new("BodyGyro")
- Script41 = Instance.new("Script")
- Part42 = Instance.new("Part")
- Model43 = Instance.new("Model")
- Decal44 = Instance.new("Decal")
- Decal45 = Instance.new("Decal")
- Decal46 = Instance.new("Decal")
- Decal47 = Instance.new("Decal")
- Decal48 = Instance.new("Decal")
- Decal49 = Instance.new("Decal")
- PointLight50 = Instance.new("PointLight")
- Model51 = Instance.new("Model")
- Model52 = Instance.new("Model")
- Model53 = Instance.new("Model")
- Part54 = Instance.new("Part")
- BodyGyro55 = Instance.new("BodyGyro")
- Script56 = Instance.new("Script")
- Model57 = Instance.new("Model")
- Decal58 = Instance.new("Decal")
- Decal59 = Instance.new("Decal")
- BodyForce60 = Instance.new("BodyForce")
- ParticleEmitter61 = Instance.new("ParticleEmitter")
- Sound62 = Instance.new("Sound")
- Part63 = Instance.new("Part")
- Model64 = Instance.new("Model")
- Decal65 = Instance.new("Decal")
- Decal66 = Instance.new("Decal")
- Model67 = Instance.new("Model")
- Model68 = Instance.new("Model")
- PointLight69 = Instance.new("PointLight")
- Decal70 = Instance.new("Decal")
- Decal71 = Instance.new("Decal")
- Decal72 = Instance.new("Decal")
- Decal73 = Instance.new("Decal")
- Decal74 = Instance.new("Decal")
- Decal75 = Instance.new("Decal")
- Model76 = Instance.new("Model")
- Model77 = Instance.new("Model")
- Part78 = Instance.new("Part")
- BodyGyro79 = Instance.new("BodyGyro")
- Script80 = Instance.new("Script")
- Humanoid81 = Instance.new("Humanoid")
- Model82 = Instance.new("Model")
- Script83 = Instance.new("Script")
- Folder84 = Instance.new("Folder")
- LocalScript85 = Instance.new("LocalScript")
- Sound86 = Instance.new("Sound")
- NumberValue87 = Instance.new("NumberValue")
- NumberValue88 = Instance.new("NumberValue")
- RemoteEvent89 = Instance.new("RemoteEvent")
- Script90 = Instance.new("Script")
- Frame91 = Instance.new("Frame")
- LocalScript92 = Instance.new("LocalScript")
- Frame93 = Instance.new("Frame")
- Frame94 = Instance.new("Frame")
- Frame95 = Instance.new("Frame")
- ImageLabel96 = Instance.new("ImageLabel")
- Frame97 = Instance.new("Frame")
- Frame98 = Instance.new("Frame")
- ImageLabel99 = Instance.new("ImageLabel")
- Frame100 = Instance.new("Frame")
- Frame101 = Instance.new("Frame")
- ImageLabel102 = Instance.new("ImageLabel")
- Frame103 = Instance.new("Frame")
- Frame104 = Instance.new("Frame")
- ImageLabel105 = Instance.new("ImageLabel")
- Frame106 = Instance.new("Frame")
- Frame107 = Instance.new("Frame")
- ImageLabel108 = Instance.new("ImageLabel")
- TextLabel109 = Instance.new("TextLabel")
- TextLabel110 = Instance.new("TextLabel")
- Frame111 = Instance.new("Frame")
- LocalScript112 = Instance.new("LocalScript")
- Frame113 = Instance.new("Frame")
- Frame114 = Instance.new("Frame")
- Frame115 = Instance.new("Frame")
- Frame116 = Instance.new("Frame")
- Frame117 = Instance.new("Frame")
- Frame118 = Instance.new("Frame")
- Frame119 = Instance.new("Frame")
- Frame120 = Instance.new("Frame")
- TextLabel121 = Instance.new("TextLabel")
- TextLabel122 = Instance.new("TextLabel")
- TextLabel123 = Instance.new("TextLabel")
- TextLabel124 = Instance.new("TextLabel")
- TextLabel125 = Instance.new("TextLabel")
- TextLabel126 = Instance.new("TextLabel")
- TextLabel127 = Instance.new("TextLabel")
- Frame128 = Instance.new("Frame")
- TextButton129 = Instance.new("TextButton")
- Frame130 = Instance.new("Frame")
- Frame131 = Instance.new("Frame")
- Frame132 = Instance.new("Frame")
- TextButton133 = Instance.new("TextButton")
- TextButton134 = Instance.new("TextButton")
- TextButton135 = Instance.new("TextButton")
- TextLabel136 = Instance.new("TextLabel")
- TextLabel137 = Instance.new("TextLabel")
- Frame138 = Instance.new("Frame")
- TextLabel139 = Instance.new("TextLabel")
- TextLabel140 = Instance.new("TextLabel")
- TextLabel141 = Instance.new("TextLabel")
- TextLabel142 = Instance.new("TextLabel")
- TextLabel143 = Instance.new("TextLabel")
- TextLabel144 = Instance.new("TextLabel")
- TextLabel145 = Instance.new("TextLabel")
- TextLabel146 = Instance.new("TextLabel")
- TextLabel147 = Instance.new("TextLabel")
- TextLabel148 = Instance.new("TextLabel")
- TextLabel149 = Instance.new("TextLabel")
- TextLabel150 = Instance.new("TextLabel")
- TextLabel151 = Instance.new("TextLabel")
- TextLabel152 = Instance.new("TextLabel")
- TextLabel153 = Instance.new("TextLabel")
- TextButton154 = Instance.new("TextButton")
- TextButton155 = Instance.new("TextButton")
- TextButton156 = Instance.new("TextButton")
- TextButton157 = Instance.new("TextButton")
- TextButton158 = Instance.new("TextButton")
- TextButton159 = Instance.new("TextButton")
- TextButton160 = Instance.new("TextButton")
- TextButton161 = Instance.new("TextButton")
- TextButton162 = Instance.new("TextButton")
- TextButton163 = Instance.new("TextButton")
- TextButton164 = Instance.new("TextButton")
- TextButton165 = Instance.new("TextButton")
- TextButton166 = Instance.new("TextButton")
- TextButton167 = Instance.new("TextButton")
- TextButton168 = Instance.new("TextButton")
- TextLabel169 = Instance.new("TextLabel")
- TextLabel170 = Instance.new("TextLabel")
- TextLabel171 = Instance.new("TextLabel")
- TextLabel172 = Instance.new("TextLabel")
- TextLabel173 = Instance.new("TextLabel")
- TextLabel174 = Instance.new("TextLabel")
- TextLabel175 = Instance.new("TextLabel")
- TextButton176 = Instance.new("TextButton")
- TextButton177 = Instance.new("TextButton")
- TextButton178 = Instance.new("TextButton")
- TextButton179 = Instance.new("TextButton")
- TextButton180 = Instance.new("TextButton")
- TextButton181 = Instance.new("TextButton")
- TextButton182 = Instance.new("TextButton")
- TextLabel183 = Instance.new("TextLabel")
- TextLabel184 = Instance.new("TextLabel")
- TextLabel185 = Instance.new("TextLabel")
- TextLabel186 = Instance.new("TextLabel")
- TextLabel187 = Instance.new("TextLabel")
- TextLabel188 = Instance.new("TextLabel")
- TextLabel189 = Instance.new("TextLabel")
- TextLabel190 = Instance.new("TextLabel")
- TextLabel191 = Instance.new("TextLabel")
- TextButton192 = Instance.new("TextButton")
- TextButton193 = Instance.new("TextButton")
- TextButton194 = Instance.new("TextButton")
- TextButton195 = Instance.new("TextButton")
- TextButton196 = Instance.new("TextButton")
- TextButton197 = Instance.new("TextButton")
- TextButton198 = Instance.new("TextButton")
- TextButton199 = Instance.new("TextButton")
- TextButton200 = Instance.new("TextButton")
- TextLabel201 = Instance.new("TextLabel")
- TextLabel202 = Instance.new("TextLabel")
- TextLabel203 = Instance.new("TextLabel")
- TextLabel204 = Instance.new("TextLabel")
- TextLabel205 = Instance.new("TextLabel")
- ScrollingFrame206 = Instance.new("ScrollingFrame")
- TextLabel207 = Instance.new("TextLabel")
- ScrollingFrame208 = Instance.new("ScrollingFrame")
- TextLabel209 = Instance.new("TextLabel")
- ScrollingFrame210 = Instance.new("ScrollingFrame")
- TextLabel211 = Instance.new("TextLabel")
- ScrollingFrame212 = Instance.new("ScrollingFrame")
- TextLabel213 = Instance.new("TextLabel")
- TextLabel214 = Instance.new("TextLabel")
- LocalScript215 = Instance.new("LocalScript")
- LocalScript216 = Instance.new("LocalScript")
- LocalScript217 = Instance.new("LocalScript")
- LocalScript218 = Instance.new("LocalScript")
- ScreenGui219 = Instance.new("ScreenGui")
- ObjectValue220 = Instance.new("ObjectValue")
- Folder221 = Instance.new("Folder")
- NumberValue222 = Instance.new("NumberValue")
- NumberValue223 = Instance.new("NumberValue")
- NumberValue224 = Instance.new("NumberValue")
- StringValue225 = Instance.new("StringValue")
- NumberValue226 = Instance.new("NumberValue")
- NumberValue227 = Instance.new("NumberValue")
- NumberValue228 = Instance.new("NumberValue")
- NumberValue229 = Instance.new("NumberValue")
- NumberValue230 = Instance.new("NumberValue")
- BoolValue231 = Instance.new("BoolValue")
- BoolValue232 = Instance.new("BoolValue")
- BoolValue233 = Instance.new("BoolValue")
- Vector3Value234 = Instance.new("Vector3Value")
- BoolValue235 = Instance.new("BoolValue")
- BoolValue236 = Instance.new("BoolValue")
- LocalScript237 = Instance.new("LocalScript")
- Model238 = Instance.new("Model")
- Model239 = Instance.new("Model")
- Model240 = Instance.new("Model")
- PointLight241 = Instance.new("PointLight")
- ParticleEmitter242 = Instance.new("ParticleEmitter")
- PointLight243 = Instance.new("PointLight")
- ParticleEmitter244 = Instance.new("ParticleEmitter")
- Model245 = Instance.new("Model")
- SurfaceLight246 = Instance.new("SurfaceLight")
- SurfaceLight247 = Instance.new("SurfaceLight")
- Model248 = Instance.new("Model")
- Model0.Name = "Takumi Ae86"
- Model0.Parent = mas
- VehicleSeat1.Name = "DriveSeat"
- VehicleSeat1.Parent = Model0
- VehicleSeat1.Material = Enum.Material.SmoothPlastic
- VehicleSeat1.Anchored = true
- VehicleSeat1.CanCollide = false
- VehicleSeat1.Elasticity = 0
- VehicleSeat1.Size = Vector3.new(1.79999995, 1, 1.60000002)
- VehicleSeat1.CFrame = CFrame.new(-28.4148674, 5.88858128, 71.8790894, 1, -1.09722859e-19, -2.85508217e-37, -1.09722859e-19, 1, 6.50521303e-18, -2.85508239e-37, 6.50521303e-18, 1)
- VehicleSeat1.BackSurface = Enum.SurfaceType.Unjoinable
- VehicleSeat1.BottomSurface = Enum.SurfaceType.Unjoinable
- VehicleSeat1.FrontSurface = Enum.SurfaceType.Motor
- VehicleSeat1.LeftSurface = Enum.SurfaceType.Unjoinable
- VehicleSeat1.RightSurface = Enum.SurfaceType.Unjoinable
- VehicleSeat1.TopSurface = Enum.SurfaceType.Hinge
- VehicleSeat1.MaxSpeed = 0
- VehicleSeat1.Torque = 0
- VehicleSeat1.TurnSpeed = 0
- VehicleSeat1.Position = Vector3.new(-28.4148674, 5.88858128, 71.8790894)
- Model2.Name = "Wheels"
- Model2.Parent = Model0
- Part3.Name = "RL"
- Part3.Parent = Model2
- Part3.Material = Enum.Material.SmoothPlastic
- Part3.BrickColor = BrickColor.new("Institutional white")
- Part3.Transparency = 1
- Part3.Rotation = Vector3.new(90, 0, 90)
- Part3.Anchored = true
- Part3.Elasticity = 1
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.Friction = 1.7999999523163
- Part3.Shape = Enum.PartType.Ball
- Part3.Size = Vector3.new(2.5999999, 2.5999999, 2.5999999)
- Part3.CFrame = CFrame.new(-31.3432465, 5.30216599, 76.7311325, -2.85508217e-37, -1, 1.09722859e-19, 6.50521303e-18, 1.09722859e-19, -1, 1, 2.85508239e-37, -6.50521303e-18)
- Part3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part3.Position = Vector3.new(-31.3432465, 5.30216599, 76.7311325)
- Part3.Orientation = Vector3.new(90, -90, 0)
- Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Model4.Name = "Fixed"
- Model4.Parent = Part3
- Decal5.Parent = mas
- Decal5.Texture = "http://www.roblox.com/asset/?id=187577536"
- Decal5.Face = Enum.NormalId.Left
- Decal6.Parent = mas
- Decal6.Texture = "http://www.roblox.com/asset/?id=187577536"
- Decal6.Face = Enum.NormalId.Right
- Model7.Name = "Parts"
- Model7.Parent = Part3
- Model8.Name = "Paint"
- Model8.Parent = Model7
- PointLight9.Name = "L"
- PointLight9.Parent = mas
- PointLight9.Color = Color3.new(1, 0.25098, 0)
- PointLight9.Range = 0
- PointLight9.Color = Color3.new(1, 0.25098, 0)
- Decal10.Parent = mas
- Decal10.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal10.Face = Enum.NormalId.Back
- Decal11.Parent = mas
- Decal11.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal11.Face = Enum.NormalId.Top
- Decal12.Parent = mas
- Decal12.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal12.Face = Enum.NormalId.Left
- Decal13.Parent = mas
- Decal13.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal14.Parent = mas
- Decal14.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal14.Face = Enum.NormalId.Bottom
- Decal15.Parent = mas
- Decal15.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal15.Face = Enum.NormalId.Right
- Model16.Name = "tire3"
- Model16.Parent = Model7
- Model17.Name = "Parts"
- Model17.Parent = Model16
- Part18.Name = "Wheel"
- Part18.Parent = Model16
- Part18.Material = Enum.Material.SmoothPlastic
- Part18.Transparency = 1
- Part18.Rotation = Vector3.new(180, 0, -90)
- Part18.Anchored = true
- Part18.FormFactor = Enum.FormFactor.Symmetric
- Part18.Friction = 1.2999999523163
- Part18.Shape = Enum.PartType.Ball
- Part18.Size = Vector3.new(2.37999988, 2.37999988, 2.37999988)
- Part18.CFrame = CFrame.new(-31.3432465, 5.30218506, 76.7311325, -1.09722859e-19, 1, 2.85508217e-37, 1, -1.09722859e-19, -6.50521303e-18, 6.50521303e-18, -2.85508239e-37, -1)
- Part18.BottomSurface = Enum.SurfaceType.Smooth
- Part18.TopSurface = Enum.SurfaceType.Hinge
- Part18.Position = Vector3.new(-31.3432465, 5.30218506, 76.7311325)
- Part18.Orientation = Vector3.new(0, 180, 90)
- BodyGyro19.Parent = Part18
- BodyGyro19.maxTorque = Vector3.new(100, 0, 100)
- BodyGyro19.P = 3
- BodyGyro19.D = 50
- BodyGyro19.MaxTorque = Vector3.new(100, 0, 100)
- Script20.Name = "Weld"
- Script20.Parent = Model16
- table.insert(cors,sandbox(Script20,function()
- local all,last = {}
- function scan(p)
- for _,v in pairs(p:GetChildren()) do
- if (v:IsA("BasePart")) then
- if (last) then
- local w = Instance.new("Weld")
- w.Part0,w.Part1 = last,v
- w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
- w.Parent = last
- end
- table.insert(all,v)
- last = v
- end
- scan(v)
- end
- end
- scan(script.Parent)
- wait(1)
- for _,v in pairs(all) do v.Anchored = false end
- end))
- BodyForce21.Name = "Burnout"
- BodyForce21.Parent = Part3
- ParticleEmitter22.Name = "Smoke"
- ParticleEmitter22.Parent = Part3
- ParticleEmitter22.Size = NumberSequence.new(3,7.861111164093,9.3888893127441)
- ParticleEmitter22.Color = ColorSequence.new(Color3.new(0.827451, 0.827451, 0.827451),Color3.new(1, 1, 1))
- ParticleEmitter22.Texture = "http://www.roblox.com/asset/?id=34098552"
- ParticleEmitter22.Acceleration = Vector3.new(0, 1, 0)
- ParticleEmitter22.Lifetime = NumberRange.new(3, 3.5)
- ParticleEmitter22.Rate = 0
- ParticleEmitter22.RotSpeed = NumberRange.new(20, 100)
- ParticleEmitter22.Speed = NumberRange.new(-2, 0)
- ParticleEmitter22.VelocitySpread = 20
- ParticleEmitter22.Color = ColorSequence.new(Color3.new(0.827451, 0.827451, 0.827451),Color3.new(1, 1, 1))
- Sound23.Name = "SQ"
- Sound23.Parent = Part3
- Sound23.SoundId = "rbxassetid://201887209"
- Sound23.Volume = 0
- Sound23.Looped = true
- Part24.Name = "FR"
- Part24.Parent = Model2
- Part24.Material = Enum.Material.SmoothPlastic
- Part24.BrickColor = BrickColor.new("Institutional white")
- Part24.Transparency = 1
- Part24.Rotation = Vector3.new(90, 0, -90)
- Part24.Anchored = true
- Part24.Elasticity = 1
- Part24.FormFactor = Enum.FormFactor.Symmetric
- Part24.Friction = 1.7999999523163
- Part24.Shape = Enum.PartType.Ball
- Part24.Size = Vector3.new(2.5999999, 2.5999999, 2.5999999)
- Part24.CFrame = CFrame.new(-25.7171593, 5.30217409, 67.5475693, 2.85508217e-37, 1, 1.09722859e-19, -6.50521303e-18, -1.09722859e-19, -1, -1, -2.85508239e-37, -6.50521303e-18)
- Part24.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part24.Position = Vector3.new(-25.7171593, 5.30217409, 67.5475693)
- Part24.Orientation = Vector3.new(90, 90, 0)
- Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Model25.Name = "Fixed"
- Model25.Parent = Part24
- Decal26.Parent = mas
- Decal26.Texture = "http://www.roblox.com/asset/?id=187577536"
- Decal26.Face = Enum.NormalId.Left
- Decal27.Parent = mas
- Decal27.Texture = "http://www.roblox.com/asset/?id=187577536"
- Decal27.Face = Enum.NormalId.Right
- Model28.Name = "Parts"
- Model28.Parent = Part24
- Model29.Name = "Paint"
- Model29.Parent = Model28
- PointLight30.Name = "L"
- PointLight30.Parent = mas
- PointLight30.Color = Color3.new(1, 0.25098, 0)
- PointLight30.Range = 0
- PointLight30.Color = Color3.new(1, 0.25098, 0)
- Decal31.Parent = mas
- Decal31.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal31.Face = Enum.NormalId.Back
- Decal32.Parent = mas
- Decal32.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal32.Face = Enum.NormalId.Top
- Decal33.Parent = mas
- Decal33.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal33.Face = Enum.NormalId.Left
- Decal34.Parent = mas
- Decal34.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal35.Parent = mas
- Decal35.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal35.Face = Enum.NormalId.Bottom
- Decal36.Parent = mas
- Decal36.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal36.Face = Enum.NormalId.Right
- Model37.Name = "tire2"
- Model37.Parent = Model28
- Model38.Name = "Parts"
- Model38.Parent = Model37
- Part39.Name = "Wheel"
- Part39.Parent = Model37
- Part39.Material = Enum.Material.SmoothPlastic
- Part39.Transparency = 1
- Part39.Rotation = Vector3.new(0, 0, 90)
- Part39.Anchored = true
- Part39.FormFactor = Enum.FormFactor.Symmetric
- Part39.Friction = 1.2999999523163
- Part39.Shape = Enum.PartType.Ball
- Part39.Size = Vector3.new(2.37999988, 2.37999988, 2.37999988)
- Part39.CFrame = CFrame.new(-25.7171593, 5.30219316, 67.5475693, -1.09722859e-19, -1, -2.85508217e-37, 1, 1.09722859e-19, 6.50521303e-18, 6.50521303e-18, 2.85508239e-37, 1)
- Part39.BottomSurface = Enum.SurfaceType.Smooth
- Part39.TopSurface = Enum.SurfaceType.Hinge
- Part39.Position = Vector3.new(-25.7171593, 5.30219316, 67.5475693)
- Part39.Orientation = Vector3.new(0, 0, 90)
- BodyGyro40.Parent = Part39
- BodyGyro40.maxTorque = Vector3.new(100, 0, 100)
- BodyGyro40.P = 3
- BodyGyro40.D = 50
- BodyGyro40.MaxTorque = Vector3.new(100, 0, 100)
- Script41.Name = "Weld"
- Script41.Parent = Model37
- table.insert(cors,sandbox(Script41,function()
- local all,last = {}
- function scan(p)
- for _,v in pairs(p:GetChildren()) do
- if (v:IsA("BasePart")) then
- if (last) then
- local w = Instance.new("Weld")
- w.Part0,w.Part1 = last,v
- w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
- w.Parent = last
- end
- table.insert(all,v)
- last = v
- end
- scan(v)
- end
- end
- scan(script.Parent)
- wait(1)
- for _,v in pairs(all) do v.Anchored = false end
- end))
- Part42.Name = "RR"
- Part42.Parent = Model2
- Part42.Material = Enum.Material.SmoothPlastic
- Part42.BrickColor = BrickColor.new("Institutional white")
- Part42.Transparency = 1
- Part42.Rotation = Vector3.new(90, 0, -90)
- Part42.Anchored = true
- Part42.Elasticity = 1
- Part42.FormFactor = Enum.FormFactor.Symmetric
- Part42.Friction = 1.7999999523163
- Part42.Shape = Enum.PartType.Ball
- Part42.Size = Vector3.new(2.5999999, 2.5999999, 2.5999999)
- Part42.CFrame = CFrame.new(-25.7471428, 5.30218124, 76.7311554, 2.85508217e-37, 1, 1.09722859e-19, -6.50521303e-18, -1.09722859e-19, -1, -1, -2.85508239e-37, -6.50521303e-18)
- Part42.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part42.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part42.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part42.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part42.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part42.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part42.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part42.Position = Vector3.new(-25.7471428, 5.30218124, 76.7311554)
- Part42.Orientation = Vector3.new(90, 90, 0)
- Part42.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Model43.Name = "Parts"
- Model43.Parent = Part42
- Decal44.Parent = mas
- Decal44.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal44.Face = Enum.NormalId.Back
- Decal45.Parent = mas
- Decal45.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal45.Face = Enum.NormalId.Top
- Decal46.Parent = mas
- Decal46.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal46.Face = Enum.NormalId.Left
- Decal47.Parent = mas
- Decal47.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal48.Parent = mas
- Decal48.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal48.Face = Enum.NormalId.Bottom
- Decal49.Parent = mas
- Decal49.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal49.Face = Enum.NormalId.Right
- PointLight50.Name = "L"
- PointLight50.Parent = mas
- PointLight50.Color = Color3.new(1, 0.25098, 0)
- PointLight50.Range = 0
- PointLight50.Color = Color3.new(1, 0.25098, 0)
- Model51.Name = "Paint"
- Model51.Parent = Model43
- Model52.Name = "tire4"
- Model52.Parent = Model43
- Model53.Name = "Parts"
- Model53.Parent = Model52
- Part54.Name = "Wheel"
- Part54.Parent = Model52
- Part54.Material = Enum.Material.SmoothPlastic
- Part54.Transparency = 1
- Part54.Rotation = Vector3.new(0, 0, 90)
- Part54.Anchored = true
- Part54.FormFactor = Enum.FormFactor.Symmetric
- Part54.Friction = 1.2999999523163
- Part54.Shape = Enum.PartType.Ball
- Part54.Size = Vector3.new(2.37999988, 2.37999988, 2.37999988)
- Part54.CFrame = CFrame.new(-25.7471428, 5.30219316, 76.7311554, -1.09722859e-19, -1, -2.85508217e-37, 1, 1.09722859e-19, 6.50521303e-18, 6.50521303e-18, 2.85508239e-37, 1)
- Part54.BottomSurface = Enum.SurfaceType.Smooth
- Part54.TopSurface = Enum.SurfaceType.Hinge
- Part54.Position = Vector3.new(-25.7471428, 5.30219316, 76.7311554)
- Part54.Orientation = Vector3.new(0, 0, 90)
- BodyGyro55.Parent = Part54
- BodyGyro55.maxTorque = Vector3.new(100, 0, 100)
- BodyGyro55.P = 3
- BodyGyro55.D = 50
- BodyGyro55.MaxTorque = Vector3.new(100, 0, 100)
- Script56.Name = "Weld"
- Script56.Parent = Model52
- table.insert(cors,sandbox(Script56,function()
- local all,last = {}
- function scan(p)
- for _,v in pairs(p:GetChildren()) do
- if (v:IsA("BasePart")) then
- if (last) then
- local w = Instance.new("Weld")
- w.Part0,w.Part1 = last,v
- w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
- w.Parent = last
- end
- table.insert(all,v)
- last = v
- end
- scan(v)
- end
- end
- scan(script.Parent)
- wait(1)
- for _,v in pairs(all) do v.Anchored = false end
- end))
- Model57.Name = "Fixed"
- Model57.Parent = Part42
- Decal58.Parent = mas
- Decal58.Texture = "http://www.roblox.com/asset/?id=187577536"
- Decal58.Face = Enum.NormalId.Left
- Decal59.Parent = mas
- Decal59.Texture = "http://www.roblox.com/asset/?id=187577536"
- Decal59.Face = Enum.NormalId.Right
- BodyForce60.Name = "Burnout"
- BodyForce60.Parent = Part42
- ParticleEmitter61.Name = "Smoke"
- ParticleEmitter61.Parent = Part42
- ParticleEmitter61.Size = NumberSequence.new(3,7.861111164093,9.3888893127441)
- ParticleEmitter61.Color = ColorSequence.new(Color3.new(0.827451, 0.827451, 0.827451),Color3.new(1, 1, 1))
- ParticleEmitter61.Texture = "http://www.roblox.com/asset/?id=34098552"
- ParticleEmitter61.Acceleration = Vector3.new(0, 1, 0)
- ParticleEmitter61.Lifetime = NumberRange.new(3, 3.5)
- ParticleEmitter61.Rate = 0
- ParticleEmitter61.RotSpeed = NumberRange.new(20, 100)
- ParticleEmitter61.Speed = NumberRange.new(-2, 0)
- ParticleEmitter61.VelocitySpread = 20
- ParticleEmitter61.Color = ColorSequence.new(Color3.new(0.827451, 0.827451, 0.827451),Color3.new(1, 1, 1))
- Sound62.Name = "SQ"
- Sound62.Parent = Part42
- Sound62.SoundId = "rbxassetid://201887209"
- Sound62.Volume = 0
- Sound62.Looped = true
- Part63.Name = "FL"
- Part63.Parent = Model2
- Part63.Material = Enum.Material.SmoothPlastic
- Part63.BrickColor = BrickColor.new("Institutional white")
- Part63.Transparency = 1
- Part63.Rotation = Vector3.new(90, 0, 90)
- Part63.Anchored = true
- Part63.Elasticity = 1
- Part63.FormFactor = Enum.FormFactor.Symmetric
- Part63.Friction = 1.7999999523163
- Part63.Shape = Enum.PartType.Ball
- Part63.Size = Vector3.new(2.5999999, 2.5999999, 2.5999999)
- Part63.CFrame = CFrame.new(-31.3732605, 5.30217409, 67.5475311, -2.85508217e-37, -1, 1.09722859e-19, 6.50521303e-18, 1.09722859e-19, -1, 1, 2.85508239e-37, -6.50521303e-18)
- Part63.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part63.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part63.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part63.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part63.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part63.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part63.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part63.Position = Vector3.new(-31.3732605, 5.30217409, 67.5475311)
- Part63.Orientation = Vector3.new(90, -90, 0)
- Part63.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Model64.Name = "Fixed"
- Model64.Parent = Part63
- Decal65.Parent = mas
- Decal65.Texture = "http://www.roblox.com/asset/?id=187577536"
- Decal65.Face = Enum.NormalId.Left
- Decal66.Parent = mas
- Decal66.Texture = "http://www.roblox.com/asset/?id=187577536"
- Decal66.Face = Enum.NormalId.Right
- Model67.Name = "Parts"
- Model67.Parent = Part63
- Model68.Name = "Paint"
- Model68.Parent = Model67
- PointLight69.Name = "L"
- PointLight69.Parent = mas
- PointLight69.Color = Color3.new(1, 0.25098, 0)
- PointLight69.Range = 0
- PointLight69.Color = Color3.new(1, 0.25098, 0)
- Decal70.Parent = mas
- Decal70.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal70.Face = Enum.NormalId.Back
- Decal71.Parent = mas
- Decal71.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal71.Face = Enum.NormalId.Top
- Decal72.Parent = mas
- Decal72.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal72.Face = Enum.NormalId.Left
- Decal73.Parent = mas
- Decal73.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal74.Parent = mas
- Decal74.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal74.Face = Enum.NormalId.Bottom
- Decal75.Parent = mas
- Decal75.Texture = "http://www.roblox.com/asset/?id=28237403"
- Decal75.Face = Enum.NormalId.Right
- Model76.Name = "tire1"
- Model76.Parent = Model67
- Model77.Name = "Parts"
- Model77.Parent = Model76
- Part78.Name = "Wheel"
- Part78.Parent = Model76
- Part78.Material = Enum.Material.SmoothPlastic
- Part78.Transparency = 1
- Part78.Rotation = Vector3.new(180, 0, -90)
- Part78.Anchored = true
- Part78.FormFactor = Enum.FormFactor.Symmetric
- Part78.Friction = 1.2999999523163
- Part78.Shape = Enum.PartType.Ball
- Part78.Size = Vector3.new(2.37999988, 2.37999988, 2.37999988)
- Part78.CFrame = CFrame.new(-31.3732605, 5.30218506, 67.5475311, -1.09722859e-19, 1, 2.85508217e-37, 1, -1.09722859e-19, -6.50521303e-18, 6.50521303e-18, -2.85508239e-37, -1)
- Part78.BottomSurface = Enum.SurfaceType.Smooth
- Part78.TopSurface = Enum.SurfaceType.Hinge
- Part78.Position = Vector3.new(-31.3732605, 5.30218506, 67.5475311)
- Part78.Orientation = Vector3.new(0, 180, 90)
- BodyGyro79.Parent = Part78
- BodyGyro79.maxTorque = Vector3.new(100, 0, 100)
- BodyGyro79.P = 3
- BodyGyro79.D = 50
- BodyGyro79.MaxTorque = Vector3.new(100, 0, 100)
- Script80.Name = "Weld"
- Script80.Parent = Model76
- table.insert(cors,sandbox(Script80,function()
- local all,last = {}
- function scan(p)
- for _,v in pairs(p:GetChildren()) do
- if (v:IsA("BasePart")) then
- if (last) then
- local w = Instance.new("Weld")
- w.Part0,w.Part1 = last,v
- w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
- w.Parent = last
- end
- table.insert(all,v)
- last = v
- end
- scan(v)
- end
- end
- scan(script.Parent)
- wait(1)
- for _,v in pairs(all) do v.Anchored = false end
- end))
- Humanoid81.Parent = Model0
- Model82.Name = "Misc"
- Model82.Parent = Model0
- Script83.Name = " Initialize"
- Script83.Parent = mas
- table.insert(cors,sandbox(Script83,function()
- --BasedWeld2.0
- local JS = game:GetService("JointsService")
- function MakeWeld(x,y,type,s)
- if type==nil then type="Weld" end
- local W=Instance.new(type,JS)
- W.Part0=x W.Part1=y
- W.C0=x.CFrame:inverse()*x.CFrame
- W.C1=y.CFrame:inverse()*x.CFrame
- if type=="Motor" and s~=nil then
- W.MaxVelocity=s
- end
- return W
- end
- function ModelWeld(a,b)
- if a:IsA("BasePart") then
- MakeWeld(b,a,"Weld")
- elseif a:IsA("Model") then
- for i,v in pairs(a:GetChildren()) do
- ModelWeld(v,b)
- end
- end
- end
- function UnAnchor(a)
- if a:IsA("BasePart") then a.Anchored=false end for i,v in pairs(a:GetChildren()) do UnAnchor(v) end
- end
- --
- script.Parent:WaitForChild("A-Chassis Interface")
- script.Parent:WaitForChild("Plugins")
- script.Parent:WaitForChild("README")
- local car=script.Parent.Parent
- local _Tune=require(script.Parent)
- local Drive=car.Wheels:GetChildren()
- function getParts(model,t,a)
- for i,v in pairs(model:GetChildren()) do
- if v:IsA("BasePart") then table.insert(t,{v,a.CFrame:toObjectSpace(v.CFrame)})
- elseif v:IsA("Model") then getParts(v,t,a)
- end
- end
- end
- for _,v in pairs(Drive) do
- for _,a in pairs({"Top","Bottom","Left","Right","Front","Back"}) do
- v[a.."Surface"]=Enum.SurfaceType.SmoothNoOutlines
- end
- local WParts = {}
- local tPos = v.Position-car.DriveSeat.Position
- if v.Name=="FL" or v.Name=="RL" then
- v.CFrame = car.DriveSeat.CFrame*CFrame.Angles(math.rad(90),0,math.rad(90))
- else
- v.CFrame = car.DriveSeat.CFrame*CFrame.Angles(math.rad(90),0,math.rad(-90))
- end
- v.CFrame = v.CFrame+tPos
- if v:FindFirstChild("Parts")~=nil then
- getParts(v.Parts,WParts,v)
- end
- if v:FindFirstChild("Fixed")~=nil then
- getParts(v.Fixed,WParts,v)
- end
- if v.Name=="FL" or v.Name=="FR" then
- v.CFrame = v.CFrame*CFrame.Angles(math.rad(_Tune.FCamber),0,0)
- if v.Name=="FL" then
- v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(_Tune.FToe))
- else
- v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(-_Tune.FToe))
- end
- elseif v.Name=="RL" or v.Name=="RR" then
- v.CFrame = v.CFrame*CFrame.Angles(math.rad(_Tune.RCamber),0,0)
- if v.Name=="RL" then
- v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(_Tune.RToe))
- else
- v.CFrame = v.CFrame*CFrame.Angles(0,0,math.rad(-_Tune.RToe))
- end
- end
- for _,a in pairs(WParts) do
- a[1].CFrame=v.CFrame:toWorldSpace(a[2])
- end
- if v.Name=="FL" then
- v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(-_Tune.FCaster),0)
- elseif v.Name=="FR" or v.Name=="F" then
- v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(_Tune.FCaster),0)
- elseif v.Name=="RL" then
- v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(-_Tune.RCaster),0)
- elseif v.Name=="RR" or v.Name=="R" then
- v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(_Tune.RCaster),0)
- end
- local arm=Instance.new("Part",v)
- arm.Name="Arm"
- arm.Anchored=true
- arm.CanCollide=false
- arm.FormFactor=Enum.FormFactor.Custom
- arm.Size=Vector3.new(1,1,1)
- arm.CFrame=(v.CFrame*CFrame.new(0,_Tune.StAxisOffset,0))*CFrame.Angles(-math.pi/2,-math.pi/2,0)
- arm.TopSurface=Enum.SurfaceType.Smooth
- arm.BottomSurface=Enum.SurfaceType.Smooth
- arm.Transparency=1
- local base=arm:Clone()
- base.Parent=v
- base.Name="Base"
- base.CFrame=base.CFrame*CFrame.new(0,1,0)
- base.BottomSurface=Enum.SurfaceType.Hinge
- local axle=arm:Clone()
- axle.Parent=v
- axle.Name="Axle"
- axle.CFrame=CFrame.new(v.Position-((v.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector*((v.Size.x/2)+(axle.Size.x/2))),v.Position)*CFrame.Angles(0,math.pi,0)
- axle.BackSurface=Enum.SurfaceType.Hinge
- if v.Name=="F" or v.Name=="R" then
- local axle2=arm:Clone()
- axle2.Parent=v
- axle2.Name="Axle"
- axle2.CFrame=CFrame.new(v.Position+((v.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector*((v.Size.x/2)+(axle2.Size.x/2))),v.Position)*CFrame.Angles(0,math.pi,0)
- axle2.BackSurface=Enum.SurfaceType.Hinge
- MakeWeld(arm,axle2)
- end
- MakeWeld(car.DriveSeat,base)
- if v.Parent.Name == "RL" or v.Parent.Name == "RR" or v.Name=="R" then
- MakeWeld(car.DriveSeat,arm)
- end
- MakeWeld(arm,axle)
- arm:MakeJoints()
- axle:MakeJoints()
- if v:FindFirstChild("Fixed")~=nil then
- ModelWeld(v.Fixed,axle)
- end
- if v:FindFirstChild("Parts")~=nil then
- ModelWeld(v.Parts,v)
- end
- if v:FindFirstChild("Steer") then
- v:FindFirstChild("Steer"):Destroy()
- end
- local gyro=Instance.new("BodyGyro",v)
- gyro.Name="Stabilizer"
- if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
- gyro.D=_Tune.FGyroD
- gyro.MaxTorque=_Tune.FGyroMaxTorque
- gyro.P=_Tune.FGyroP
- else
- gyro.D=_Tune.RGyroD
- gyro.MaxTorque=_Tune.RGyroMaxTorque
- gyro.P=_Tune.RGyroP
- end
- if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
- local steer=Instance.new("BodyGyro",arm)
- steer.Name="Steer"
- steer.P=_Tune.SteerP
- steer.D=_Tune.SteerD
- steer.MaxTorque=Vector3.new(0,_Tune.SteerMaxTorque,0)
- steer.cframe=base.CFrame
- else
- MakeWeld(base,axle,"Weld")
- end
- local AV=Instance.new("BodyAngularVelocity",v)
- AV.Name="#AV"
- AV.angularvelocity=Vector3.new(0,0,0)
- AV.maxTorque=Vector3.new(_Tune.PBrakeForce,0,_Tune.PBrakeForce)
- AV.P=1e9
- end
- for i,v in pairs(script:GetChildren()) do
- if v:IsA("ModuleScript") then
- require(v)
- end
- end
- wait()
- ModelWeld(car.Body,car.DriveSeat)
- local flipG = Instance.new("BodyGyro",car.DriveSeat)
- flipG.Name = "Flip"
- flipG.D = 0
- flipG.MaxTorque = Vector3.new(0,0,0)
- flipG.P = 0
- wait()
- UnAnchor(car)
- script.Parent["A-Chassis Interface"].Car.Value=car
- for i,v in pairs(script.Parent.Plugins:GetChildren()) do
- for _,a in pairs(v:GetChildren()) do
- if a:IsA("RemoteEvent") or v:IsA("RemoteFunction") then
- a.Parent=car
- for _,b in pairs(a:GetChildren()) do
- if b:IsA("Script") then b.Disabled=false end
- end
- end
- end
- v.Parent = script.Parent["A-Chassis Interface"]
- end
- script.Parent.Plugins:Destroy()
- car.DriveSeat.ChildAdded:connect(function(child)
- if child.Name=="SeatWeld" and child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
- local p=game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- car.DriveSeat:SetNetworkOwner(p)
- local g=script.Parent["A-Chassis Interface"]:Clone()
- g.Parent=p.PlayerGui
- end
- end)
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" and child:IsA("Weld") then
- for i,v in pairs(car.DriveSeat:GetChildren()) do
- if v:IsA("Sound") then v:Stop() end
- end
- if car.DriveSeat:FindFirstChild("Flip")~=nil then
- car.DriveSeat.Flip.MaxTorque = Vector3.new()
- end
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v:FindFirstChild("#AV")~=nil then
- if v["#AV"].AngularVelocity.Magnitude>0 then
- v["#AV"].AngularVelocity = Vector3.new()
- v["#AV"].MaxTorque = Vector3.new()
- end
- end
- end
- end
- end)
- ver = require(script.Parent.README)
- end))
- Folder84.Name = "Plugins"
- Folder84.Parent = mas
- LocalScript85.Name = "AC6_Stock_Sound"
- LocalScript85.Parent = Folder84
- table.insert(cors,sandbox(LocalScript85,function()
- --[[
- ___ _______ _
- / _ |____/ ___/ / ___ ____ ___ (_)__
- / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
- /_/ |_| \___/_//_/\_,_/___/___/_/___/
- SecondLogic @ Inspare
- ]]
- local FE = workspace.FilteringEnabled
- local car = script.Parent.Car.Value
- local _Tune = require(car["A-Chassis Tune"])
- local on = 0
- script:WaitForChild("Rev")
- if not FE then
- for i,v in pairs(car.DriveSeat:GetChildren()) do
- for _,a in pairs(script:GetChildren()) do
- if v.Name==a.Name then v:Stop() wait() v:Destroy() end
- end
- end
- for i,v in pairs(script:GetChildren()) do
- v.Parent=car.DriveSeat
- end
- car.DriveSeat.Rev:Play()
- while wait() do
- local _RPM = script.Parent.Values.RPM.Value
- if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
- car.DriveSeat.Rev.Pitch = (car.DriveSeat.Rev.SetPitch.Value + car.DriveSeat.Rev.SetRev.Value*_RPM/_Tune.Redline)*on^2
- end
- else
- local handler = car.AC6_FE_Sounds
- handler:FireServer("newSound","Rev",car.DriveSeat,script.Rev.SoundId,0,script.Rev.Volume,true)
- handler:FireServer("playSound","Rev")
- local pitch=0
- while wait() do
- local _RPM = script.Parent.Values.RPM.Value
- if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
- pitch = (script.Rev.SetPitch.Value + script.Rev.SetRev.Value*_RPM/_Tune.Redline)*on^2
- handler:FireServer("updateSound","Rev",script.Rev.SoundId,pitch,script.Rev.Volume)
- end
- end
- end))
- Sound86.Name = "Rev"
- Sound86.Parent = LocalScript85
- Sound86.Pitch = 0
- Sound86.SoundId = "rbxassetid://281069183"
- Sound86.Volume = 1
- Sound86.Looped = true
- NumberValue87.Name = "SetRev"
- NumberValue87.Parent = Sound86
- NumberValue87.Value = 1.4
- NumberValue88.Name = "SetPitch"
- NumberValue88.Parent = Sound86
- NumberValue88.Value = -0.1
- RemoteEvent89.Name = "AC6_FE_Sounds"
- RemoteEvent89.Parent = LocalScript85
- Script90.Name = "Handler"
- Script90.Parent = RemoteEvent89
- Script90.Disabled = true
- table.insert(cors,sandbox(Script90,function()
- local Sounds = {}
- local F = {}
- F.newSound = function(name,par,id,pitch,volume,loop)
- for i,v in pairs(Sounds) do
- if i==name then
- v:Stop()
- v:Destroy()
- end
- end
- local sn = Instance.new("Sound",par)
- sn.Name = name
- sn.SoundId = id
- sn.Pitch = pitch
- sn.Volume = volume
- sn.Looped = loop
- sn.AncestryChanged:connect(function(child,parent) print(parent) end)
- Sounds[name]=sn
- end
- F.updateSound = function(sound,id,pit,vol)
- local sn = Sounds[sound]
- if id~=sn.SoundId then sn.SoundId = id end
- if pit~=sn.Pitch then sn.Pitch = pit end
- if vol~=sn.Volume then sn.Volume = vol end
- end
- F.playSound = function(sound)
- Sounds[sound]:Play()
- end
- F.pauseSound = function(sound)
- Sounds[sound]:Pause()
- end
- F.stopSound = function(sound)
- Sounds[sound]:Stop()
- end
- F.removeSound = function(sound)
- Sounds[sound]:Stop()
- Sounds[sound]:Destroy()
- Sounds[sound]=nil
- end
- script.Parent.OnServerEvent:connect(function(pl,Fnc,...)
- F[Fnc](...)
- end)
- end))
- Frame91.Name = "Inspare_Splash"
- Frame91.Parent = Folder84
- Frame91.Transparency = 1
- Frame91.Size = UDim2.new(1, 0, 1, 0)
- Frame91.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame91.BackgroundTransparency = 1
- Frame91.BorderSizePixel = 0
- LocalScript92.Name = "Inspare_Splash"
- LocalScript92.Parent = Frame91
- table.insert(cors,sandbox(LocalScript92,function()
- --SecondLogic @ INSPARE
- wait(.2)
- local out=false
- coroutine.resume(coroutine.create(function()
- local fr = 0
- local trs=1
- while wait(.05) do
- fr = fr+1
- if fr>=10 then fr=0 end
- if not out then
- trs=math.max(0,trs-.05)
- else
- trs=math.min(1,trs+.05)
- end
- for i,v in pairs(script.Parent.Frame:GetChildren()) do
- v.Frame.ImageLabel.ImageTransparency = trs
- v.Frame.ImageLabel.Position=UDim2.new(-(fr%3),0,-math.floor(fr/3),0)
- if out then
- v.BackgroundTransparency=.5+(.5*trs)
- v.Frame.ImageLabel.BackgroundTransparency=trs
- end
- end
- if out then
- script.Parent.IN.TextTransparency=trs
- script.Parent.SPARE.TextTransparency=trs
- end
- if out and trs==1 then
- break
- end
- end
- script.Parent:Destroy()
- end))
- game:GetService("RunService").RenderStepped:connect(function()
- for i,v in pairs(script.Parent.Frame:GetChildren()) do
- v.Frame.Position = UDim2.new(0,-250-v.Position.X.Offset-script.Parent.Frame.Position.X.Offset,0,-136-v.Position.Y.Offset)
- end
- end)
- script.Parent.Frame:TweenPosition(UDim2.new(0,-100,0,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,10)
- script.Parent.IN:TweenPosition(UDim2.new(0.5,-74,0.5,100),Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,10)
- script.Parent.SPARE:TweenPosition(UDim2.new(0.5,6,0.5,100),Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,10)
- script.Parent.Frame.B:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.C:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.D:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.E:TweenPosition(UDim2.new(0.5, -44,0.5, -134),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- wait(.35)
- script.Parent.Frame.C:TweenPosition(UDim2.new(0.5, -44,0.5, -44),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.D:TweenPosition(UDim2.new(0.5, -44,0.5, 46),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- script.Parent.Frame.E:TweenPosition(UDim2.new(0.5, -44,0.5, 46),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- wait(.35)
- script.Parent.Frame.E:TweenPosition(UDim2.new(0.5, -134,0.5, 46),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.3)
- wait(1)
- for i=1,30 do
- for _,v in pairs(script.Parent.Frame:GetChildren()) do
- v.BackgroundTransparency=1-(i/60)
- end
- script.Parent.IN.TextTransparency=1-(i/30)
- script.Parent.SPARE.TextTransparency=1-(i/30)
- wait(.01)
- end
- wait(1.5)
- out=true
- end))
- Frame93.Parent = Frame91
- Frame93.Transparency = 1
- Frame93.Size = UDim2.new(1, 0, 1, 0)
- Frame93.Position = UDim2.new(0, 50, 0, 0)
- Frame93.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame93.BackgroundTransparency = 1
- Frame93.BorderSizePixel = 0
- Frame94.Name = "C"
- Frame94.Parent = Frame93
- Frame94.Transparency = 1
- Frame94.Size = UDim2.new(0, 88, 0, 88)
- Frame94.Position = UDim2.new(0.5, 46, 0.5, -134)
- Frame94.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- Frame94.BackgroundTransparency = 1
- Frame94.BorderSizePixel = 0
- Frame94.ZIndex = 3
- Frame94.ClipsDescendants = true
- Frame95.Parent = Frame94
- Frame95.Transparency = 1
- Frame95.Size = UDim2.new(0, 500, 0, 272)
- Frame95.Position = UDim2.new(0, -250, 0, -136)
- Frame95.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame95.BackgroundTransparency = 1
- Frame95.BorderSizePixel = 0
- Frame95.ClipsDescendants = true
- ImageLabel96.Parent = Frame95
- ImageLabel96.Size = UDim2.new(0, 1500, 0, 1088)
- ImageLabel96.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel96.ZIndex = 2
- ImageLabel96.Image = "rbxassetid://423455664"
- ImageLabel96.ImageTransparency = 1
- Frame97.Name = "B"
- Frame97.Parent = Frame93
- Frame97.Transparency = 1
- Frame97.Size = UDim2.new(0, 88, 0, 88)
- Frame97.Position = UDim2.new(0.5, 46, 0.5, -134)
- Frame97.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame97.BackgroundTransparency = 1
- Frame97.BorderSizePixel = 0
- Frame97.ZIndex = 3
- Frame97.ClipsDescendants = true
- Frame98.Parent = Frame97
- Frame98.Transparency = 1
- Frame98.Size = UDim2.new(0, 500, 0, 272)
- Frame98.Position = UDim2.new(0, -250, 0, -136)
- Frame98.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame98.BackgroundTransparency = 1
- Frame98.BorderSizePixel = 0
- Frame98.ClipsDescendants = true
- ImageLabel99.Parent = Frame98
- ImageLabel99.Size = UDim2.new(0, 1500, 0, 1088)
- ImageLabel99.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel99.ZIndex = 2
- ImageLabel99.Image = "rbxassetid://423455664"
- ImageLabel99.ImageTransparency = 1
- Frame100.Name = "D"
- Frame100.Parent = Frame93
- Frame100.Transparency = 1
- Frame100.Size = UDim2.new(0, 88, 0, 88)
- Frame100.Position = UDim2.new(0.5, 46, 0.5, -134)
- Frame100.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- Frame100.BackgroundTransparency = 1
- Frame100.BorderSizePixel = 0
- Frame100.ZIndex = 3
- Frame100.ClipsDescendants = true
- Frame101.Parent = Frame100
- Frame101.Transparency = 1
- Frame101.Size = UDim2.new(0, 500, 0, 272)
- Frame101.Position = UDim2.new(0, -250, 0, -136)
- Frame101.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame101.BackgroundTransparency = 1
- Frame101.BorderSizePixel = 0
- Frame101.ClipsDescendants = true
- ImageLabel102.Parent = Frame101
- ImageLabel102.Size = UDim2.new(0, 1500, 0, 1088)
- ImageLabel102.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel102.ZIndex = 2
- ImageLabel102.Image = "rbxassetid://423455664"
- ImageLabel102.ImageTransparency = 1
- Frame103.Name = "E"
- Frame103.Parent = Frame93
- Frame103.Transparency = 1
- Frame103.Size = UDim2.new(0, 88, 0, 88)
- Frame103.Position = UDim2.new(0.5, 46, 0.5, -134)
- Frame103.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- Frame103.BackgroundTransparency = 1
- Frame103.BorderSizePixel = 0
- Frame103.ZIndex = 3
- Frame103.ClipsDescendants = true
- Frame104.Parent = Frame103
- Frame104.Transparency = 1
- Frame104.Size = UDim2.new(0, 500, 0, 272)
- Frame104.Position = UDim2.new(0, -250, 0, -136)
- Frame104.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame104.BackgroundTransparency = 1
- Frame104.BorderSizePixel = 0
- Frame104.ClipsDescendants = true
- ImageLabel105.Parent = Frame104
- ImageLabel105.Size = UDim2.new(0, 1500, 0, 1088)
- ImageLabel105.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel105.ZIndex = 2
- ImageLabel105.Image = "rbxassetid://423455664"
- ImageLabel105.ImageTransparency = 1
- Frame106.Name = "A"
- Frame106.Parent = Frame93
- Frame106.Transparency = 1
- Frame106.Size = UDim2.new(0, 88, 0, 88)
- Frame106.Position = UDim2.new(0.5, 46, 0.5, -134)
- Frame106.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame106.BackgroundTransparency = 1
- Frame106.BorderSizePixel = 0
- Frame106.ZIndex = 3
- Frame106.ClipsDescendants = true
- Frame107.Parent = Frame106
- Frame107.Transparency = 1
- Frame107.Size = UDim2.new(0, 500, 0, 272)
- Frame107.Position = UDim2.new(0, -250, 0, -136)
- Frame107.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame107.BackgroundTransparency = 1
- Frame107.BorderSizePixel = 0
- Frame107.ClipsDescendants = true
- ImageLabel108.Parent = Frame107
- ImageLabel108.Size = UDim2.new(0, 1500, 0, 1088)
- ImageLabel108.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel108.ZIndex = 2
- ImageLabel108.Image = "rbxassetid://423455664"
- ImageLabel108.ImageTransparency = 1
- TextLabel109.Name = "IN"
- TextLabel109.Parent = Frame91
- TextLabel109.Transparency = 1
- TextLabel109.Text = "IN"
- TextLabel109.Position = UDim2.new(0.5, 76, 0.5, 100)
- TextLabel109.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel109.BackgroundTransparency = 1
- TextLabel109.BorderSizePixel = 0
- TextLabel109.ZIndex = 5
- TextLabel109.Font = Enum.Font.Arial
- TextLabel109.FontSize = Enum.FontSize.Size48
- TextLabel109.TextColor3 = Color3.new(1, 1, 1)
- TextLabel109.TextTransparency = 1
- TextLabel110.Name = "SPARE"
- TextLabel110.Parent = Frame91
- TextLabel110.Transparency = 1
- TextLabel110.Text = "SPARE"
- TextLabel110.Position = UDim2.new(0.5, 156, 0.5, 100)
- TextLabel110.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel110.BackgroundTransparency = 1
- TextLabel110.BorderSizePixel = 0
- TextLabel110.ZIndex = 5
- TextLabel110.Font = Enum.Font.Arial
- TextLabel110.FontSize = Enum.FontSize.Size48
- TextLabel110.TextColor3 = Color3.new(1, 0.666667, 0)
- TextLabel110.TextTransparency = 1
- Frame111.Name = "AC6_Stock_Gauges"
- Frame111.Parent = Folder84
- Frame111.Transparency = 1
- Frame111.Size = UDim2.new(1, 0, 1, 0)
- Frame111.Position = UDim2.new(0, 0, 0, 300)
- Frame111.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame111.BackgroundTransparency = 1
- Frame111.BorderSizePixel = 0
- LocalScript112.Name = "Gauges_AC6"
- LocalScript112.Parent = Frame111
- table.insert(cors,sandbox(LocalScript112,function()
- --[[
- ___ _______ _
- / _ |____/ ___/ / ___ ____ ___ (_)__
- / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
- /_/ |_| \___/_//_/\_,_/___/___/_/___/
- SecondLogic @ Inspare
- ]]
- script.Parent:WaitForChild("Speedo")
- script.Parent:WaitForChild("Tach")
- script.Parent:WaitForChild("ln")
- script.Parent:WaitForChild("Gear")
- script.Parent:WaitForChild("Speed")
- local car = script.Parent.Parent.Car.Value
- car.DriveSeat.HeadsUpDisplay = false
- local _Tune = require(car["A-Chassis Tune"])
- local _pRPM = _Tune.PeakRPM
- local _lRPM = _Tune.Redline
- local revEnd = math.ceil(_lRPM/1000)
- local Drive={}
- if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
- if car.Wheels:FindFirstChild("FL")~= nil then
- table.insert(Drive,car.Wheels.FL)
- end
- if car.Wheels:FindFirstChild("FR")~= nil then
- table.insert(Drive,car.Wheels.FR)
- end
- if car.Wheels:FindFirstChild("F")~= nil then
- table.insert(Drive,car.Wheels.F)
- end
- end
- if _Tune.Config == "RWD" or _Tune.Config == "AWD" then
- if car.Wheels:FindFirstChild("RL")~= nil then
- table.insert(Drive,car.Wheels.RL)
- end
- if car.Wheels:FindFirstChild("RR")~= nil then
- table.insert(Drive,car.Wheels.RR)
- end
- if car.Wheels:FindFirstChild("R")~= nil then
- table.insert(Drive,car.Wheels.R)
- end
- end
- local wDia = 0
- for i,v in pairs(Drive) do
- if v.Size.x>wDia then wDia = v.Size.x end
- end
- Drive = nil
- local maxSpeed = math.ceil(wDia*math.pi*_lRPM/60/_Tune.Ratios[#_Tune.Ratios]/_Tune.FinalDrive)
- local spInc = math.max(math.ceil(maxSpeed/200)*20,20)
- for i=0,revEnd*2 do
- local ln = script.Parent.ln:clone()
- ln.Parent = script.Parent.Tach
- ln.Rotation = 45 + i * 225 / (revEnd*2)
- ln.Num.Text = i/2
- ln.Num.Rotation = -ln.Rotation
- if i*500>=math.floor(_pRPM/500)*500 then
- ln.Frame.BackgroundColor3 = Color3.new(1,0,0)
- if i<revEnd*2 then
- ln2 = ln:clone()
- ln2.Parent = script.Parent.Tach
- ln2.Rotation = 45 + (i+.5) * 225 / (revEnd*2)
- ln2.Num:Destroy()
- ln2.Visible=true
- end
- end
- if i%2==0 then
- ln.Frame.Size = UDim2.new(0,3,0,10)
- ln.Frame.Position = UDim2.new(0,-1,0,100)
- ln.Num.Visible = true
- else
- ln.Num:Destroy()
- end
- ln.Visible=true
- end
- for i=1,90 do
- local ln = script.Parent.ln:clone()
- ln.Parent = script.Parent.Speedo
- ln.Rotation = 45 + 225*(i/90)
- if i%2==0 then
- ln.Frame.Size = UDim2.new(0,2,0,10)
- ln.Frame.Position = UDim2.new(0,-1,0,100)
- else
- ln.Frame.Size = UDim2.new(0,3,0,5)
- end
- ln.Num:Destroy()
- ln.Visible=true
- end
- for i=0,maxSpeed,spInc do
- local ln = script.Parent.ln:clone()
- ln.Parent = script.Parent.Speedo
- ln.Rotation = 45 + 225*(i/maxSpeed)
- ln.Num.Text = i
- ln.Num.Rotation = -ln.Rotation
- ln.Frame:Destroy()
- ln.Num.Visible=true
- ln.Visible=true
- end
- if script.Parent.Parent.IsOn.Value then
- script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
- end
- script.Parent.Parent.IsOn.Changed:connect(function()
- if script.Parent.Parent.IsOn.Value then
- script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
- end
- end)
- script.Parent.Parent.Values.RPM.Changed:connect(function()
- script.Parent.Tach.Needle.Rotation = 45 + 225 * math.min(1,script.Parent.Parent.Values.RPM.Value / (revEnd*1000))
- end)
- script.Parent.Parent.Values.Gear.Changed:connect(function()
- local gearText = script.Parent.Parent.Values.Gear.Value
- if gearText == 0 then gearText = "N"
- elseif gearText == -1 then gearText = "R"
- end
- script.Parent.Gear.Text = gearText
- end)
- script.Parent.Parent.Values.TCS.Changed:connect(function()
- if script.Parent.Parent.Values.TCS.Value then
- script.Parent.TCS.TextColor3 = Color3.new(1,170/255,0)
- script.Parent.TCS.TextStrokeColor3 = Color3.new(1,170/255,0)
- if script.Parent.Parent.Values.TCSActive.Value then
- wait()
- script.Parent.TCS.Visible = not script.Parent.TCS.Visible
- else
- wait()
- script.Parent.TCS.Visible = false
- end
- else
- script.Parent.TCS.Visible = true
- script.Parent.TCS.TextColor3 = Color3.new(1,0,0)
- script.Parent.TCS.TextStrokeColor3 = Color3.new(1,0,0)
- end
- end)
- script.Parent.Parent.Values.TCSActive.Changed:connect(function()
- if script.Parent.Parent.Values.TCSActive.Value and script.Parent.Parent.Values.TCS.Value then
- wait()
- script.Parent.TCS.Visible = not script.Parent.TCS.Visible
- elseif not script.Parent.Parent.Values.TCS.Value then
- wait()
- script.Parent.TCS.Visible = true
- else
- wait()
- script.Parent.TCS.Visible = false
- end
- end)
- script.Parent.TCS.Changed:connect(function()
- if script.Parent.Parent.Values.TCSActive.Value and script.Parent.Parent.Values.TCS.Value then
- wait()
- script.Parent.TCS.Visible = not script.Parent.TCS.Visible
- elseif not script.Parent.Parent.Values.TCS.Value then
- wait()
- script.Parent.TCS.Visible = true
- end
- end)
- script.Parent.Parent.Values.PBrake.Changed:connect(function()
- script.Parent.PBrake.Visible = script.Parent.Parent.Values.PBrake.Value
- end)
- script.Parent.Parent.Values.TransmissionMode.Changed:connect(function()
- if script.Parent.Parent.Values.TransmissionMode.Value == "Auto" then
- script.Parent.TMode.Text = "A/T"
- script.Parent.TMode.BackgroundColor3 = Color3.new(1,170/255,0)
- else
- script.Parent.TMode.Text = "M/T"
- script.Parent.TMode.BackgroundColor3 = Color3.new(1,85/255,.5)
- end
- end)
- script.Parent.Parent.Values.Velocity.Changed:connect(function(property)
- script.Parent.Speedo.Needle.Rotation =45 + 225 * math.min(1,script.Parent.Parent.Values.Velocity.Value.Magnitude/maxSpeed)
- script.Parent.Speed.Text = math.floor(script.Parent.Parent.Values.Velocity.Value.Magnitude) .. " SPS"
- end)
- end))
- Frame113.Name = "Tach"
- Frame113.Parent = Frame111
- Frame113.Position = UDim2.new(0.5, -150, 1, -100)
- Frame113.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame113.BorderSizePixel = 0
- Frame114.Name = "Needle"
- Frame114.Parent = Frame113
- Frame114.Rotation = 45
- Frame114.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame114.BorderSizePixel = 0
- Frame115.Parent = Frame114
- Frame115.Transparency = 0.10000000149012
- Frame115.Size = UDim2.new(0, 4, 0, 110)
- Frame115.Position = UDim2.new(0, -2, 0, -10)
- Frame115.BackgroundColor3 = Color3.new(1, 0, 0)
- Frame115.BackgroundTransparency = 0.10000000149012
- Frame115.BorderSizePixel = 0
- Frame115.ZIndex = 2
- Frame116.Name = "Speedo"
- Frame116.Parent = Frame111
- Frame116.Position = UDim2.new(0.5, 150, 1, -100)
- Frame116.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame116.BorderSizePixel = 0
- Frame117.Name = "Needle"
- Frame117.Parent = Frame116
- Frame117.Rotation = 45
- Frame117.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame117.BorderSizePixel = 0
- Frame118.Parent = Frame117
- Frame118.Transparency = 0.10000000149012
- Frame118.Size = UDim2.new(0, 4, 0, 110)
- Frame118.Position = UDim2.new(0, -2, 0, -10)
- Frame118.BackgroundColor3 = Color3.new(1, 0, 0)
- Frame118.BackgroundTransparency = 0.10000000149012
- Frame118.BorderSizePixel = 0
- Frame118.ZIndex = 2
- Frame119.Name = "ln"
- Frame119.Parent = Frame111
- Frame119.Rotation = 45
- Frame119.Visible = false
- Frame119.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame119.BorderSizePixel = 0
- Frame120.Parent = Frame119
- Frame120.Transparency = 0.10000000149012
- Frame120.Size = UDim2.new(0, 3, 0, 5)
- Frame120.Position = UDim2.new(0, -2, 0, 105)
- Frame120.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame120.BackgroundTransparency = 0.10000000149012
- Frame120.BorderSizePixel = 0
- TextLabel121.Name = "Num"
- TextLabel121.Parent = Frame119
- TextLabel121.Transparency = 1
- TextLabel121.Rotation = -45
- TextLabel121.Text = "0"
- TextLabel121.Position = UDim2.new(0, 0, 0, 88)
- TextLabel121.Visible = false
- TextLabel121.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel121.BackgroundTransparency = 1
- TextLabel121.BorderSizePixel = 0
- TextLabel121.Font = Enum.Font.ArialBold
- TextLabel121.FontSize = Enum.FontSize.Size18
- TextLabel121.TextColor3 = Color3.new(1, 1, 1)
- TextLabel121.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
- TextLabel121.TextStrokeTransparency = 0.89999997615814
- TextLabel121.TextTransparency = 0.10000000149012
- TextLabel122.Name = "Gear"
- TextLabel122.Parent = Frame111
- TextLabel122.Transparency = 1
- TextLabel122.Text = "N"
- TextLabel122.Position = UDim2.new(0.5, -120, 1, -70)
- TextLabel122.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel122.BackgroundTransparency = 1
- TextLabel122.BorderSizePixel = 0
- TextLabel122.Font = Enum.Font.ArialBold
- TextLabel122.FontSize = Enum.FontSize.Size48
- TextLabel122.TextColor3 = Color3.new(1, 1, 1)
- TextLabel122.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
- TextLabel122.TextStrokeTransparency = 0.89999997615814
- TextLabel122.TextTransparency = 0.10000000149012
- TextLabel123.Name = "Speed"
- TextLabel123.Parent = Frame111
- TextLabel123.Transparency = 1
- TextLabel123.Text = "0 SPS"
- TextLabel123.Position = UDim2.new(0.5, 250, 1, -70)
- TextLabel123.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel123.BackgroundTransparency = 1
- TextLabel123.BorderSizePixel = 0
- TextLabel123.Font = Enum.Font.ArialBold
- TextLabel123.FontSize = Enum.FontSize.Size24
- TextLabel123.TextColor3 = Color3.new(1, 1, 1)
- TextLabel123.TextStrokeColor3 = Color3.new(0.835294, 0.835294, 0.835294)
- TextLabel123.TextStrokeTransparency = 0.89999997615814
- TextLabel123.TextTransparency = 0.10000000149012
- TextLabel123.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel124.Name = "ABS"
- TextLabel124.Parent = Frame111
- TextLabel124.Transparency = 1
- TextLabel124.Text = "ABS"
- TextLabel124.Position = UDim2.new(0.5, 130, 1, -100)
- TextLabel124.Visible = false
- TextLabel124.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel124.BackgroundTransparency = 1
- TextLabel124.BorderSizePixel = 0
- TextLabel124.Font = Enum.Font.ArialBold
- TextLabel124.FontSize = Enum.FontSize.Size18
- TextLabel124.TextColor3 = Color3.new(1, 0.666667, 0)
- TextLabel124.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
- TextLabel124.TextStrokeTransparency = 0.89999997615814
- TextLabel124.TextTransparency = 0.10000000149012
- TextLabel124.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel125.Name = "PBrake"
- TextLabel125.Parent = Frame111
- TextLabel125.Transparency = 1
- TextLabel125.Text = "P"
- TextLabel125.Position = UDim2.new(0.5, 200, 1, -120)
- TextLabel125.Visible = false
- TextLabel125.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel125.BackgroundTransparency = 1
- TextLabel125.BorderSizePixel = 0
- TextLabel125.Font = Enum.Font.ArialBold
- TextLabel125.FontSize = Enum.FontSize.Size24
- TextLabel125.TextColor3 = Color3.new(1, 0.333333, 0.498039)
- TextLabel125.TextStrokeColor3 = Color3.new(1, 0.333333, 0.498039)
- TextLabel125.TextStrokeTransparency = 0.89999997615814
- TextLabel125.TextTransparency = 0.10000000149012
- TextLabel125.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel126.Name = "TCS"
- TextLabel126.Parent = Frame111
- TextLabel126.Transparency = 1
- TextLabel126.Text = "TCS"
- TextLabel126.Position = UDim2.new(0.5, 130, 1, -120)
- TextLabel126.Visible = false
- TextLabel126.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel126.BackgroundTransparency = 1
- TextLabel126.BorderSizePixel = 0
- TextLabel126.Font = Enum.Font.ArialBold
- TextLabel126.FontSize = Enum.FontSize.Size18
- TextLabel126.TextColor3 = Color3.new(1, 0.666667, 0)
- TextLabel126.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
- TextLabel126.TextStrokeTransparency = 0.89999997615814
- TextLabel126.TextTransparency = 0.10000000149012
- TextLabel126.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel127.Name = "TMode"
- TextLabel127.Parent = Frame111
- TextLabel127.Transparency = 0.5
- TextLabel127.Size = UDim2.new(0, 40, 0, 20)
- TextLabel127.Text = "A/T"
- TextLabel127.Position = UDim2.new(0.5, -165, 1, -40)
- TextLabel127.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- TextLabel127.BackgroundTransparency = 0.5
- TextLabel127.BorderSizePixel = 0
- TextLabel127.Font = Enum.Font.ArialBold
- TextLabel127.FontSize = Enum.FontSize.Size18
- TextLabel127.TextColor3 = Color3.new(1, 1, 1)
- TextLabel127.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
- TextLabel127.TextStrokeTransparency = 0.89999997615814
- TextLabel127.TextTransparency = 0.10000000149012
- Frame128.Name = "AC6_Controls_Module"
- Frame128.Parent = Folder84
- Frame128.Transparency = 1
- Frame128.Size = UDim2.new(1, 0, 1, 0)
- Frame128.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame128.BackgroundTransparency = 1
- Frame128.BorderSizePixel = 0
- TextButton129.Name = "Toggle"
- TextButton129.Parent = Frame128
- TextButton129.Transparency = 0.5
- TextButton129.Size = UDim2.new(0, 120, 0, 27)
- TextButton129.Text = "Controls"
- TextButton129.Position = UDim2.new(0, 50, 1, -30)
- TextButton129.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- TextButton129.BackgroundTransparency = 0.5
- TextButton129.BorderColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- TextButton129.BorderSizePixel = 0
- TextButton129.Font = Enum.Font.Arial
- TextButton129.FontSize = Enum.FontSize.Size24
- TextButton129.TextColor3 = Color3.new(1, 1, 1)
- TextButton129.TextStrokeColor3 = Color3.new(0.415686, 0.415686, 0.415686)
- TextButton129.TextStrokeTransparency = 0.5
- Frame130.Name = "Window"
- Frame130.Parent = Frame128
- Frame130.Transparency = 0.5
- Frame130.Size = UDim2.new(0, 500, 0, 400)
- Frame130.Position = UDim2.new(0.5, -250, 0, -500)
- Frame130.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame130.BackgroundTransparency = 0.5
- Frame130.BorderSizePixel = 0
- Frame130.ClipsDescendants = true
- Frame131.Name = "Tabs"
- Frame131.Parent = Frame130
- Frame131.Transparency = 1
- Frame131.Size = UDim2.new(0, 490, 0, 20)
- Frame131.Position = UDim2.new(0, 5, 0, 40)
- Frame131.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame131.BackgroundTransparency = 1
- Frame131.BorderSizePixel = 0
- Frame131.ClipsDescendants = true
- Frame132.Name = "Line"
- Frame132.Parent = Frame131
- Frame132.Size = UDim2.new(1, 0, 0, 2)
- Frame132.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame132.BorderSizePixel = 0
- TextButton133.Name = "Keyboard"
- TextButton133.Parent = Frame131
- TextButton133.Size = UDim2.new(0, 100, 0, 20)
- TextButton133.Text = "Keyboard"
- TextButton133.Position = UDim2.new(0, 5, 0, 0)
- TextButton133.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton133.BorderSizePixel = 0
- TextButton133.Font = Enum.Font.SourceSans
- TextButton133.FontSize = Enum.FontSize.Size14
- TextButton133.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextButton133.TextStrokeTransparency = 0.94999998807907
- TextButton133.TextYAlignment = Enum.TextYAlignment.Bottom
- TextButton134.Name = "Mouse"
- TextButton134.Parent = Frame131
- TextButton134.Size = UDim2.new(0, 100, 0, 20)
- TextButton134.Text = "Mouse"
- TextButton134.Position = UDim2.new(0, 120, 0, -5)
- TextButton134.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton134.BorderSizePixel = 0
- TextButton134.Font = Enum.Font.SourceSans
- TextButton134.FontSize = Enum.FontSize.Size14
- TextButton134.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextButton134.TextStrokeTransparency = 0.94999998807907
- TextButton134.TextYAlignment = Enum.TextYAlignment.Bottom
- TextButton135.Name = "Controller"
- TextButton135.Parent = Frame131
- TextButton135.Size = UDim2.new(0, 100, 0, 20)
- TextButton135.Text = "Controller"
- TextButton135.Position = UDim2.new(0, 235, 0, -5)
- TextButton135.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton135.BorderSizePixel = 0
- TextButton135.Font = Enum.Font.SourceSans
- TextButton135.FontSize = Enum.FontSize.Size14
- TextButton135.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextButton135.TextStrokeTransparency = 0.94999998807907
- TextButton135.TextYAlignment = Enum.TextYAlignment.Bottom
- TextLabel136.Name = "Header"
- TextLabel136.Parent = Frame130
- TextLabel136.Transparency = 1
- TextLabel136.Text = "Controls"
- TextLabel136.Position = UDim2.new(0, 10, 0, 20)
- TextLabel136.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel136.BackgroundTransparency = 1
- TextLabel136.BorderSizePixel = 0
- TextLabel136.Font = Enum.Font.SourceSansLight
- TextLabel136.FontSize = Enum.FontSize.Size32
- TextLabel136.TextColor3 = Color3.new(1, 1, 1)
- TextLabel136.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel136.TextStrokeTransparency = 0.94999998807907
- TextLabel136.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel137.Name = "//INSPARE"
- TextLabel137.Parent = Frame130
- TextLabel137.Transparency = 1
- TextLabel137.Text = "A-Chassis 6 by //INSPARE"
- TextLabel137.Position = UDim2.new(1, -20, 0, 20)
- TextLabel137.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel137.BackgroundTransparency = 1
- TextLabel137.BorderSizePixel = 0
- TextLabel137.Font = Enum.Font.SourceSansLight
- TextLabel137.FontSize = Enum.FontSize.Size14
- TextLabel137.TextColor3 = Color3.new(1, 1, 1)
- TextLabel137.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel137.TextStrokeTransparency = 0.94999998807907
- TextLabel137.TextXAlignment = Enum.TextXAlignment.Right
- Frame138.Name = "Content"
- Frame138.Parent = Frame130
- Frame138.Transparency = 1
- Frame138.Size = UDim2.new(1, 0, 1, -60)
- Frame138.Position = UDim2.new(0, 0, 0, 60)
- Frame138.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame138.BackgroundTransparency = 1
- Frame138.BorderSizePixel = 0
- TextLabel139.Name = "T"
- TextLabel139.Parent = Frame138
- TextLabel139.Transparency = 1
- TextLabel139.Text = "Throttle"
- TextLabel139.Position = UDim2.new(0, 150, 0, 20)
- TextLabel139.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel139.BackgroundTransparency = 1
- TextLabel139.BorderSizePixel = 0
- TextLabel139.Font = Enum.Font.SourceSansItalic
- TextLabel139.FontSize = Enum.FontSize.Size18
- TextLabel139.TextColor3 = Color3.new(1, 1, 1)
- TextLabel139.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel139.TextStrokeTransparency = 0.94999998807907
- TextLabel139.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel140.Name = "T"
- TextLabel140.Parent = Frame138
- TextLabel140.Transparency = 1
- TextLabel140.Text = "Brakes"
- TextLabel140.Position = UDim2.new(0, 150, 0, 40)
- TextLabel140.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel140.BackgroundTransparency = 1
- TextLabel140.BorderSizePixel = 0
- TextLabel140.Font = Enum.Font.SourceSansItalic
- TextLabel140.FontSize = Enum.FontSize.Size18
- TextLabel140.TextColor3 = Color3.new(1, 1, 1)
- TextLabel140.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel140.TextStrokeTransparency = 0.94999998807907
- TextLabel140.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel141.Name = "T"
- TextLabel141.Parent = Frame138
- TextLabel141.Transparency = 1
- TextLabel141.Text = "Steer Left"
- TextLabel141.Position = UDim2.new(0, 150, 0, 60)
- TextLabel141.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel141.BackgroundTransparency = 1
- TextLabel141.BorderSizePixel = 0
- TextLabel141.Font = Enum.Font.SourceSansItalic
- TextLabel141.FontSize = Enum.FontSize.Size18
- TextLabel141.TextColor3 = Color3.new(1, 1, 1)
- TextLabel141.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel141.TextStrokeTransparency = 0.94999998807907
- TextLabel141.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel142.Name = "T"
- TextLabel142.Parent = Frame138
- TextLabel142.Transparency = 1
- TextLabel142.Text = "Steer Right"
- TextLabel142.Position = UDim2.new(0, 150, 0, 80)
- TextLabel142.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel142.BackgroundTransparency = 1
- TextLabel142.BorderSizePixel = 0
- TextLabel142.Font = Enum.Font.SourceSansItalic
- TextLabel142.FontSize = Enum.FontSize.Size18
- TextLabel142.TextColor3 = Color3.new(1, 1, 1)
- TextLabel142.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel142.TextStrokeTransparency = 0.94999998807907
- TextLabel142.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel143.Name = "T"
- TextLabel143.Parent = Frame138
- TextLabel143.Transparency = 1
- TextLabel143.Text = "[Secondary] Throttle"
- TextLabel143.Position = UDim2.new(0, 150, 0, 100)
- TextLabel143.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel143.BackgroundTransparency = 1
- TextLabel143.BorderSizePixel = 0
- TextLabel143.Font = Enum.Font.SourceSansItalic
- TextLabel143.FontSize = Enum.FontSize.Size18
- TextLabel143.TextColor3 = Color3.new(1, 1, 1)
- TextLabel143.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel143.TextStrokeTransparency = 0.94999998807907
- TextLabel143.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel144.Name = "T"
- TextLabel144.Parent = Frame138
- TextLabel144.Transparency = 1
- TextLabel144.Text = "[Secondary] Brakes"
- TextLabel144.Position = UDim2.new(0, 150, 0, 120)
- TextLabel144.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel144.BackgroundTransparency = 1
- TextLabel144.BorderSizePixel = 0
- TextLabel144.Font = Enum.Font.SourceSansItalic
- TextLabel144.FontSize = Enum.FontSize.Size18
- TextLabel144.TextColor3 = Color3.new(1, 1, 1)
- TextLabel144.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel144.TextStrokeTransparency = 0.94999998807907
- TextLabel144.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel145.Name = "T"
- TextLabel145.Parent = Frame138
- TextLabel145.Transparency = 1
- TextLabel145.Text = "[Secondary] Steer Left"
- TextLabel145.Position = UDim2.new(0, 150, 0, 140)
- TextLabel145.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel145.BackgroundTransparency = 1
- TextLabel145.BorderSizePixel = 0
- TextLabel145.Font = Enum.Font.SourceSansItalic
- TextLabel145.FontSize = Enum.FontSize.Size18
- TextLabel145.TextColor3 = Color3.new(1, 1, 1)
- TextLabel145.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel145.TextStrokeTransparency = 0.94999998807907
- TextLabel145.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel146.Name = "T"
- TextLabel146.Parent = Frame138
- TextLabel146.Transparency = 1
- TextLabel146.Text = "[Secondary] SteerRight"
- TextLabel146.Position = UDim2.new(0, 150, 0, 160)
- TextLabel146.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel146.BackgroundTransparency = 1
- TextLabel146.BorderSizePixel = 0
- TextLabel146.Font = Enum.Font.SourceSansItalic
- TextLabel146.FontSize = Enum.FontSize.Size18
- TextLabel146.TextColor3 = Color3.new(1, 1, 1)
- TextLabel146.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel146.TextStrokeTransparency = 0.94999998807907
- TextLabel146.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel147.Name = "T"
- TextLabel147.Parent = Frame138
- TextLabel147.Transparency = 1
- TextLabel147.Text = "Shift Up"
- TextLabel147.Position = UDim2.new(0, 150, 0, 180)
- TextLabel147.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel147.BackgroundTransparency = 1
- TextLabel147.BorderSizePixel = 0
- TextLabel147.Font = Enum.Font.SourceSansItalic
- TextLabel147.FontSize = Enum.FontSize.Size18
- TextLabel147.TextColor3 = Color3.new(1, 1, 1)
- TextLabel147.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel147.TextStrokeTransparency = 0.94999998807907
- TextLabel147.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel148.Name = "T"
- TextLabel148.Parent = Frame138
- TextLabel148.Transparency = 1
- TextLabel148.Text = "Shift Down"
- TextLabel148.Position = UDim2.new(0, 150, 0, 200)
- TextLabel148.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel148.BackgroundTransparency = 1
- TextLabel148.BorderSizePixel = 0
- TextLabel148.Font = Enum.Font.SourceSansItalic
- TextLabel148.FontSize = Enum.FontSize.Size18
- TextLabel148.TextColor3 = Color3.new(1, 1, 1)
- TextLabel148.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel148.TextStrokeTransparency = 0.94999998807907
- TextLabel148.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel149.Name = "T"
- TextLabel149.Parent = Frame138
- TextLabel149.Transparency = 1
- TextLabel149.Text = "Clutch"
- TextLabel149.Position = UDim2.new(0, 150, 0, 220)
- TextLabel149.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel149.BackgroundTransparency = 1
- TextLabel149.BorderSizePixel = 0
- TextLabel149.Font = Enum.Font.SourceSansItalic
- TextLabel149.FontSize = Enum.FontSize.Size18
- TextLabel149.TextColor3 = Color3.new(1, 1, 1)
- TextLabel149.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel149.TextStrokeTransparency = 0.94999998807907
- TextLabel149.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel150.Name = "T"
- TextLabel150.Parent = Frame138
- TextLabel150.Transparency = 1
- TextLabel150.Text = "Handbrake"
- TextLabel150.Position = UDim2.new(0, 150, 0, 240)
- TextLabel150.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel150.BackgroundTransparency = 1
- TextLabel150.BorderSizePixel = 0
- TextLabel150.Font = Enum.Font.SourceSansItalic
- TextLabel150.FontSize = Enum.FontSize.Size18
- TextLabel150.TextColor3 = Color3.new(1, 1, 1)
- TextLabel150.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel150.TextStrokeTransparency = 0.94999998807907
- TextLabel150.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel151.Name = "T"
- TextLabel151.Parent = Frame138
- TextLabel151.Transparency = 1
- TextLabel151.Text = " Transmission Mode"
- TextLabel151.Position = UDim2.new(0, 150, 0, 260)
- TextLabel151.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel151.BackgroundTransparency = 1
- TextLabel151.BorderSizePixel = 0
- TextLabel151.Font = Enum.Font.SourceSansItalic
- TextLabel151.FontSize = Enum.FontSize.Size18
- TextLabel151.TextColor3 = Color3.new(1, 1, 1)
- TextLabel151.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel151.TextStrokeTransparency = 0.94999998807907
- TextLabel151.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel152.Name = "T"
- TextLabel152.Parent = Frame138
- TextLabel152.Transparency = 1
- TextLabel152.Text = "Toggle TCS"
- TextLabel152.Position = UDim2.new(0, 150, 0, 280)
- TextLabel152.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel152.BackgroundTransparency = 1
- TextLabel152.BorderSizePixel = 0
- TextLabel152.Font = Enum.Font.SourceSansItalic
- TextLabel152.FontSize = Enum.FontSize.Size18
- TextLabel152.TextColor3 = Color3.new(1, 1, 1)
- TextLabel152.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel152.TextStrokeTransparency = 0.94999998807907
- TextLabel152.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel153.Name = "T"
- TextLabel153.Parent = Frame138
- TextLabel153.Transparency = 1
- TextLabel153.Text = "Switch Mouse Control"
- TextLabel153.Position = UDim2.new(0, 150, 0, 300)
- TextLabel153.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel153.BackgroundTransparency = 1
- TextLabel153.BorderSizePixel = 0
- TextLabel153.Font = Enum.Font.SourceSansItalic
- TextLabel153.FontSize = Enum.FontSize.Size18
- TextLabel153.TextColor3 = Color3.new(1, 1, 1)
- TextLabel153.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel153.TextStrokeTransparency = 0.94999998807907
- TextLabel153.TextXAlignment = Enum.TextXAlignment.Right
- TextButton154.Name = "Throttle"
- TextButton154.Parent = Frame138
- TextButton154.Transparency = 0.5
- TextButton154.Size = UDim2.new(0, 300, 0, 15)
- TextButton154.Position = UDim2.new(0, 170, 0, 13)
- TextButton154.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton154.BackgroundTransparency = 0.5
- TextButton154.BorderSizePixel = 0
- TextButton154.Font = Enum.Font.SourceSans
- TextButton154.FontSize = Enum.FontSize.Size14
- TextButton154.TextColor3 = Color3.new(1, 1, 1)
- TextButton155.Name = "Brake"
- TextButton155.Parent = Frame138
- TextButton155.Transparency = 0.5
- TextButton155.Size = UDim2.new(0, 300, 0, 15)
- TextButton155.Position = UDim2.new(0, 170, 0, 33)
- TextButton155.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton155.BackgroundTransparency = 0.5
- TextButton155.BorderSizePixel = 0
- TextButton155.Font = Enum.Font.SourceSans
- TextButton155.FontSize = Enum.FontSize.Size14
- TextButton155.TextColor3 = Color3.new(1, 1, 1)
- TextButton156.Name = "SteerLeft"
- TextButton156.Parent = Frame138
- TextButton156.Transparency = 0.5
- TextButton156.Size = UDim2.new(0, 300, 0, 15)
- TextButton156.Position = UDim2.new(0, 170, 0, 53)
- TextButton156.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton156.BackgroundTransparency = 0.5
- TextButton156.BorderSizePixel = 0
- TextButton156.Font = Enum.Font.SourceSans
- TextButton156.FontSize = Enum.FontSize.Size14
- TextButton156.TextColor3 = Color3.new(1, 1, 1)
- TextButton157.Name = "SteerRight"
- TextButton157.Parent = Frame138
- TextButton157.Transparency = 0.5
- TextButton157.Size = UDim2.new(0, 300, 0, 15)
- TextButton157.Position = UDim2.new(0, 170, 0, 73)
- TextButton157.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton157.BackgroundTransparency = 0.5
- TextButton157.BorderSizePixel = 0
- TextButton157.Font = Enum.Font.SourceSans
- TextButton157.FontSize = Enum.FontSize.Size14
- TextButton157.TextColor3 = Color3.new(1, 1, 1)
- TextButton158.Name = "Throttle2"
- TextButton158.Parent = Frame138
- TextButton158.Transparency = 0.5
- TextButton158.Size = UDim2.new(0, 300, 0, 15)
- TextButton158.Position = UDim2.new(0, 170, 0, 93)
- TextButton158.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton158.BackgroundTransparency = 0.5
- TextButton158.BorderSizePixel = 0
- TextButton158.Font = Enum.Font.SourceSans
- TextButton158.FontSize = Enum.FontSize.Size14
- TextButton158.TextColor3 = Color3.new(1, 1, 1)
- TextButton159.Name = "Brake2"
- TextButton159.Parent = Frame138
- TextButton159.Transparency = 0.5
- TextButton159.Size = UDim2.new(0, 300, 0, 15)
- TextButton159.Position = UDim2.new(0, 170, 0, 113)
- TextButton159.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton159.BackgroundTransparency = 0.5
- TextButton159.BorderSizePixel = 0
- TextButton159.Font = Enum.Font.SourceSans
- TextButton159.FontSize = Enum.FontSize.Size14
- TextButton159.TextColor3 = Color3.new(1, 1, 1)
- TextButton160.Name = "SteerLeft2"
- TextButton160.Parent = Frame138
- TextButton160.Transparency = 0.5
- TextButton160.Size = UDim2.new(0, 300, 0, 15)
- TextButton160.Position = UDim2.new(0, 170, 0, 133)
- TextButton160.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton160.BackgroundTransparency = 0.5
- TextButton160.BorderSizePixel = 0
- TextButton160.Font = Enum.Font.SourceSans
- TextButton160.FontSize = Enum.FontSize.Size14
- TextButton160.TextColor3 = Color3.new(1, 1, 1)
- TextButton161.Name = "SteerRight2"
- TextButton161.Parent = Frame138
- TextButton161.Transparency = 0.5
- TextButton161.Size = UDim2.new(0, 300, 0, 15)
- TextButton161.Position = UDim2.new(0, 170, 0, 153)
- TextButton161.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton161.BackgroundTransparency = 0.5
- TextButton161.BorderSizePixel = 0
- TextButton161.Font = Enum.Font.SourceSans
- TextButton161.FontSize = Enum.FontSize.Size14
- TextButton161.TextColor3 = Color3.new(1, 1, 1)
- TextButton162.Name = "ShiftUp"
- TextButton162.Parent = Frame138
- TextButton162.Transparency = 0.5
- TextButton162.Size = UDim2.new(0, 300, 0, 15)
- TextButton162.Position = UDim2.new(0, 170, 0, 173)
- TextButton162.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton162.BackgroundTransparency = 0.5
- TextButton162.BorderSizePixel = 0
- TextButton162.Font = Enum.Font.SourceSans
- TextButton162.FontSize = Enum.FontSize.Size14
- TextButton162.TextColor3 = Color3.new(1, 1, 1)
- TextButton163.Name = "ShiftDown"
- TextButton163.Parent = Frame138
- TextButton163.Transparency = 0.5
- TextButton163.Size = UDim2.new(0, 300, 0, 15)
- TextButton163.Position = UDim2.new(0, 170, 0, 193)
- TextButton163.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton163.BackgroundTransparency = 0.5
- TextButton163.BorderSizePixel = 0
- TextButton163.Font = Enum.Font.SourceSans
- TextButton163.FontSize = Enum.FontSize.Size14
- TextButton163.TextColor3 = Color3.new(1, 1, 1)
- TextButton164.Name = "Clutch"
- TextButton164.Parent = Frame138
- TextButton164.Transparency = 0.5
- TextButton164.Size = UDim2.new(0, 300, 0, 15)
- TextButton164.Position = UDim2.new(0, 170, 0, 213)
- TextButton164.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton164.BackgroundTransparency = 0.5
- TextButton164.BorderSizePixel = 0
- TextButton164.Font = Enum.Font.SourceSans
- TextButton164.FontSize = Enum.FontSize.Size14
- TextButton164.TextColor3 = Color3.new(1, 1, 1)
- TextButton165.Name = "PBrake"
- TextButton165.Parent = Frame138
- TextButton165.Transparency = 0.5
- TextButton165.Size = UDim2.new(0, 300, 0, 15)
- TextButton165.Position = UDim2.new(0, 170, 0, 233)
- TextButton165.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton165.BackgroundTransparency = 0.5
- TextButton165.BorderSizePixel = 0
- TextButton165.Font = Enum.Font.SourceSans
- TextButton165.FontSize = Enum.FontSize.Size14
- TextButton165.TextColor3 = Color3.new(1, 1, 1)
- TextButton166.Name = "ToggleTransMode"
- TextButton166.Parent = Frame138
- TextButton166.Transparency = 0.5
- TextButton166.Size = UDim2.new(0, 300, 0, 15)
- TextButton166.Position = UDim2.new(0, 170, 0, 253)
- TextButton166.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton166.BackgroundTransparency = 0.5
- TextButton166.BorderSizePixel = 0
- TextButton166.Font = Enum.Font.SourceSans
- TextButton166.FontSize = Enum.FontSize.Size14
- TextButton166.TextColor3 = Color3.new(1, 1, 1)
- TextButton167.Name = "ToggleTCS"
- TextButton167.Parent = Frame138
- TextButton167.Transparency = 0.5
- TextButton167.Size = UDim2.new(0, 300, 0, 15)
- TextButton167.Position = UDim2.new(0, 170, 0, 273)
- TextButton167.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton167.BackgroundTransparency = 0.5
- TextButton167.BorderSizePixel = 0
- TextButton167.Font = Enum.Font.SourceSans
- TextButton167.FontSize = Enum.FontSize.Size14
- TextButton167.TextColor3 = Color3.new(1, 1, 1)
- TextButton168.Name = "ToggleMouseDrive"
- TextButton168.Parent = Frame138
- TextButton168.Transparency = 0.5
- TextButton168.Size = UDim2.new(0, 300, 0, 15)
- TextButton168.Position = UDim2.new(0, 170, 0, 293)
- TextButton168.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton168.BackgroundTransparency = 0.5
- TextButton168.BorderSizePixel = 0
- TextButton168.Font = Enum.Font.SourceSans
- TextButton168.FontSize = Enum.FontSize.Size14
- TextButton168.TextColor3 = Color3.new(1, 1, 1)
- TextLabel169.Name = "T"
- TextLabel169.Parent = Frame138
- TextLabel169.Transparency = 1
- TextLabel169.Text = "Throttle"
- TextLabel169.Position = UDim2.new(1, 150, 0, 20)
- TextLabel169.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel169.BackgroundTransparency = 1
- TextLabel169.BorderSizePixel = 0
- TextLabel169.Font = Enum.Font.SourceSansItalic
- TextLabel169.FontSize = Enum.FontSize.Size18
- TextLabel169.TextColor3 = Color3.new(1, 1, 1)
- TextLabel169.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel169.TextStrokeTransparency = 0.94999998807907
- TextLabel169.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel170.Name = "T"
- TextLabel170.Parent = Frame138
- TextLabel170.Transparency = 1
- TextLabel170.Text = "Brakes"
- TextLabel170.Position = UDim2.new(1, 150, 0, 40)
- TextLabel170.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel170.BackgroundTransparency = 1
- TextLabel170.BorderSizePixel = 0
- TextLabel170.Font = Enum.Font.SourceSansItalic
- TextLabel170.FontSize = Enum.FontSize.Size18
- TextLabel170.TextColor3 = Color3.new(1, 1, 1)
- TextLabel170.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel170.TextStrokeTransparency = 0.94999998807907
- TextLabel170.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel171.Name = "T"
- TextLabel171.Parent = Frame138
- TextLabel171.Transparency = 1
- TextLabel171.Text = "Steer"
- TextLabel171.Position = UDim2.new(1, 150, 0, 60)
- TextLabel171.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel171.BackgroundTransparency = 1
- TextLabel171.BorderSizePixel = 0
- TextLabel171.Font = Enum.Font.SourceSansItalic
- TextLabel171.FontSize = Enum.FontSize.Size18
- TextLabel171.TextColor3 = Color3.new(1, 1, 1)
- TextLabel171.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel171.TextStrokeTransparency = 0.94999998807907
- TextLabel171.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel172.Name = "T"
- TextLabel172.Parent = Frame138
- TextLabel172.Transparency = 1
- TextLabel172.Text = "Shift Up"
- TextLabel172.Position = UDim2.new(1, 150, 0, 80)
- TextLabel172.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel172.BackgroundTransparency = 1
- TextLabel172.BorderSizePixel = 0
- TextLabel172.Font = Enum.Font.SourceSansItalic
- TextLabel172.FontSize = Enum.FontSize.Size18
- TextLabel172.TextColor3 = Color3.new(1, 1, 1)
- TextLabel172.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel172.TextStrokeTransparency = 0.94999998807907
- TextLabel172.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel173.Name = "T"
- TextLabel173.Parent = Frame138
- TextLabel173.Transparency = 1
- TextLabel173.Text = "Shift Down"
- TextLabel173.Position = UDim2.new(1, 150, 0, 100)
- TextLabel173.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel173.BackgroundTransparency = 1
- TextLabel173.BorderSizePixel = 0
- TextLabel173.Font = Enum.Font.SourceSansItalic
- TextLabel173.FontSize = Enum.FontSize.Size18
- TextLabel173.TextColor3 = Color3.new(1, 1, 1)
- TextLabel173.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel173.TextStrokeTransparency = 0.94999998807907
- TextLabel173.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel174.Name = "T"
- TextLabel174.Parent = Frame138
- TextLabel174.Transparency = 1
- TextLabel174.Text = "Clutch"
- TextLabel174.Position = UDim2.new(1, 150, 0, 120)
- TextLabel174.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel174.BackgroundTransparency = 1
- TextLabel174.BorderSizePixel = 0
- TextLabel174.Font = Enum.Font.SourceSansItalic
- TextLabel174.FontSize = Enum.FontSize.Size18
- TextLabel174.TextColor3 = Color3.new(1, 1, 1)
- TextLabel174.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel174.TextStrokeTransparency = 0.94999998807907
- TextLabel174.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel175.Name = "T"
- TextLabel175.Parent = Frame138
- TextLabel175.Transparency = 1
- TextLabel175.Text = "Handbrake"
- TextLabel175.Position = UDim2.new(1, 150, 0, 140)
- TextLabel175.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel175.BackgroundTransparency = 1
- TextLabel175.BorderSizePixel = 0
- TextLabel175.Font = Enum.Font.SourceSansItalic
- TextLabel175.FontSize = Enum.FontSize.Size18
- TextLabel175.TextColor3 = Color3.new(1, 1, 1)
- TextLabel175.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel175.TextStrokeTransparency = 0.94999998807907
- TextLabel175.TextXAlignment = Enum.TextXAlignment.Right
- TextButton176.Name = "MouseThrottle"
- TextButton176.Parent = Frame138
- TextButton176.Transparency = 0.5
- TextButton176.Size = UDim2.new(0, 300, 0, 15)
- TextButton176.Position = UDim2.new(1, 170, 0, 13)
- TextButton176.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton176.BackgroundTransparency = 0.5
- TextButton176.BorderSizePixel = 0
- TextButton176.Font = Enum.Font.SourceSans
- TextButton176.FontSize = Enum.FontSize.Size14
- TextButton176.TextColor3 = Color3.new(1, 1, 1)
- TextButton177.Name = "MouseBrake"
- TextButton177.Parent = Frame138
- TextButton177.Transparency = 0.5
- TextButton177.Size = UDim2.new(0, 300, 0, 15)
- TextButton177.Position = UDim2.new(1, 170, 0, 33)
- TextButton177.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton177.BackgroundTransparency = 0.5
- TextButton177.BorderSizePixel = 0
- TextButton177.Font = Enum.Font.SourceSans
- TextButton177.FontSize = Enum.FontSize.Size14
- TextButton177.TextColor3 = Color3.new(1, 1, 1)
- TextButton178.Name = "MouseSteer"
- TextButton178.Parent = Frame138
- TextButton178.Transparency = 0.5
- TextButton178.Size = UDim2.new(0, 300, 0, 15)
- TextButton178.Text = "MouseMove"
- TextButton178.Position = UDim2.new(1, 170, 0, 53)
- TextButton178.Active = false
- TextButton178.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- TextButton178.BackgroundTransparency = 0.5
- TextButton178.BorderSizePixel = 0
- TextButton178.Font = Enum.Font.SourceSans
- TextButton178.FontSize = Enum.FontSize.Size14
- TextButton178.TextColor3 = Color3.new(0.690196, 0.690196, 0.690196)
- TextButton179.Name = "MouseShiftUp"
- TextButton179.Parent = Frame138
- TextButton179.Transparency = 0.5
- TextButton179.Size = UDim2.new(0, 300, 0, 15)
- TextButton179.Position = UDim2.new(1, 170, 0, 73)
- TextButton179.Active = false
- TextButton179.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton179.BackgroundTransparency = 0.5
- TextButton179.BorderSizePixel = 0
- TextButton179.Font = Enum.Font.SourceSans
- TextButton179.FontSize = Enum.FontSize.Size14
- TextButton179.TextColor3 = Color3.new(1, 1, 1)
- TextButton180.Name = "MouseShiftDown"
- TextButton180.Parent = Frame138
- TextButton180.Transparency = 0.5
- TextButton180.Size = UDim2.new(0, 300, 0, 15)
- TextButton180.Position = UDim2.new(1, 170, 0, 93)
- TextButton180.Active = false
- TextButton180.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton180.BackgroundTransparency = 0.5
- TextButton180.BorderSizePixel = 0
- TextButton180.Font = Enum.Font.SourceSans
- TextButton180.FontSize = Enum.FontSize.Size14
- TextButton180.TextColor3 = Color3.new(1, 1, 1)
- TextButton181.Name = "MouseClutch"
- TextButton181.Parent = Frame138
- TextButton181.Transparency = 0.5
- TextButton181.Size = UDim2.new(0, 300, 0, 15)
- TextButton181.Position = UDim2.new(1, 170, 0, 113)
- TextButton181.Active = false
- TextButton181.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton181.BackgroundTransparency = 0.5
- TextButton181.BorderSizePixel = 0
- TextButton181.Font = Enum.Font.SourceSans
- TextButton181.FontSize = Enum.FontSize.Size14
- TextButton181.TextColor3 = Color3.new(1, 1, 1)
- TextButton182.Name = "MousePBrake"
- TextButton182.Parent = Frame138
- TextButton182.Transparency = 0.5
- TextButton182.Size = UDim2.new(0, 300, 0, 15)
- TextButton182.Position = UDim2.new(1, 170, 0, 133)
- TextButton182.Active = false
- TextButton182.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton182.BackgroundTransparency = 0.5
- TextButton182.BorderSizePixel = 0
- TextButton182.Font = Enum.Font.SourceSans
- TextButton182.FontSize = Enum.FontSize.Size14
- TextButton182.TextColor3 = Color3.new(1, 1, 1)
- TextLabel183.Name = "T"
- TextLabel183.Parent = Frame138
- TextLabel183.Transparency = 1
- TextLabel183.Text = "Throttle"
- TextLabel183.Position = UDim2.new(2, 150, 0, 20)
- TextLabel183.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel183.BackgroundTransparency = 1
- TextLabel183.BorderSizePixel = 0
- TextLabel183.Font = Enum.Font.SourceSansItalic
- TextLabel183.FontSize = Enum.FontSize.Size18
- TextLabel183.TextColor3 = Color3.new(1, 1, 1)
- TextLabel183.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel183.TextStrokeTransparency = 0.94999998807907
- TextLabel183.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel184.Name = "T"
- TextLabel184.Parent = Frame138
- TextLabel184.Transparency = 1
- TextLabel184.Text = "Brakes"
- TextLabel184.Position = UDim2.new(2, 150, 0, 40)
- TextLabel184.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel184.BackgroundTransparency = 1
- TextLabel184.BorderSizePixel = 0
- TextLabel184.Font = Enum.Font.SourceSansItalic
- TextLabel184.FontSize = Enum.FontSize.Size18
- TextLabel184.TextColor3 = Color3.new(1, 1, 1)
- TextLabel184.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel184.TextStrokeTransparency = 0.94999998807907
- TextLabel184.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel185.Name = "T"
- TextLabel185.Parent = Frame138
- TextLabel185.Transparency = 1
- TextLabel185.Text = "Steer"
- TextLabel185.Position = UDim2.new(2, 150, 0, 60)
- TextLabel185.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel185.BackgroundTransparency = 1
- TextLabel185.BorderSizePixel = 0
- TextLabel185.Font = Enum.Font.SourceSansItalic
- TextLabel185.FontSize = Enum.FontSize.Size18
- TextLabel185.TextColor3 = Color3.new(1, 1, 1)
- TextLabel185.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel185.TextStrokeTransparency = 0.94999998807907
- TextLabel185.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel186.Name = "T"
- TextLabel186.Parent = Frame138
- TextLabel186.Transparency = 1
- TextLabel186.Text = "Shift Up"
- TextLabel186.Position = UDim2.new(2, 150, 0, 80)
- TextLabel186.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel186.BackgroundTransparency = 1
- TextLabel186.BorderSizePixel = 0
- TextLabel186.Font = Enum.Font.SourceSansItalic
- TextLabel186.FontSize = Enum.FontSize.Size18
- TextLabel186.TextColor3 = Color3.new(1, 1, 1)
- TextLabel186.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel186.TextStrokeTransparency = 0.94999998807907
- TextLabel186.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel187.Name = "T"
- TextLabel187.Parent = Frame138
- TextLabel187.Transparency = 1
- TextLabel187.Text = "Shift Down"
- TextLabel187.Position = UDim2.new(2, 150, 0, 100)
- TextLabel187.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel187.BackgroundTransparency = 1
- TextLabel187.BorderSizePixel = 0
- TextLabel187.Font = Enum.Font.SourceSansItalic
- TextLabel187.FontSize = Enum.FontSize.Size18
- TextLabel187.TextColor3 = Color3.new(1, 1, 1)
- TextLabel187.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel187.TextStrokeTransparency = 0.94999998807907
- TextLabel187.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel188.Name = "T"
- TextLabel188.Parent = Frame138
- TextLabel188.Transparency = 1
- TextLabel188.Text = "Clutch"
- TextLabel188.Position = UDim2.new(2, 150, 0, 120)
- TextLabel188.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel188.BackgroundTransparency = 1
- TextLabel188.BorderSizePixel = 0
- TextLabel188.Font = Enum.Font.SourceSansItalic
- TextLabel188.FontSize = Enum.FontSize.Size18
- TextLabel188.TextColor3 = Color3.new(1, 1, 1)
- TextLabel188.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel188.TextStrokeTransparency = 0.94999998807907
- TextLabel188.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel189.Name = "T"
- TextLabel189.Parent = Frame138
- TextLabel189.Transparency = 1
- TextLabel189.Text = "Handbrake"
- TextLabel189.Position = UDim2.new(2, 150, 0, 140)
- TextLabel189.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel189.BackgroundTransparency = 1
- TextLabel189.BorderSizePixel = 0
- TextLabel189.Font = Enum.Font.SourceSansItalic
- TextLabel189.FontSize = Enum.FontSize.Size18
- TextLabel189.TextColor3 = Color3.new(1, 1, 1)
- TextLabel189.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel189.TextStrokeTransparency = 0.94999998807907
- TextLabel189.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel190.Name = "T"
- TextLabel190.Parent = Frame138
- TextLabel190.Transparency = 1
- TextLabel190.Text = "Toggle TCS"
- TextLabel190.Position = UDim2.new(2, 150, 0, 180)
- TextLabel190.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel190.BackgroundTransparency = 1
- TextLabel190.BorderSizePixel = 0
- TextLabel190.Font = Enum.Font.SourceSansItalic
- TextLabel190.FontSize = Enum.FontSize.Size18
- TextLabel190.TextColor3 = Color3.new(1, 1, 1)
- TextLabel190.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel190.TextStrokeTransparency = 0.94999998807907
- TextLabel190.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel191.Name = "T"
- TextLabel191.Parent = Frame138
- TextLabel191.Transparency = 1
- TextLabel191.Text = "Transmission Mode"
- TextLabel191.Position = UDim2.new(2, 150, 0, 160)
- TextLabel191.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel191.BackgroundTransparency = 1
- TextLabel191.BorderSizePixel = 0
- TextLabel191.Font = Enum.Font.SourceSansItalic
- TextLabel191.FontSize = Enum.FontSize.Size18
- TextLabel191.TextColor3 = Color3.new(1, 1, 1)
- TextLabel191.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel191.TextStrokeTransparency = 0.94999998807907
- TextLabel191.TextXAlignment = Enum.TextXAlignment.Right
- TextButton192.Name = "ContlrThrottle"
- TextButton192.Parent = Frame138
- TextButton192.Transparency = 0.5
- TextButton192.Size = UDim2.new(0, 300, 0, 15)
- TextButton192.Position = UDim2.new(2, 170, 0, 13)
- TextButton192.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton192.BackgroundTransparency = 0.5
- TextButton192.BorderSizePixel = 0
- TextButton192.Font = Enum.Font.SourceSans
- TextButton192.FontSize = Enum.FontSize.Size14
- TextButton192.TextColor3 = Color3.new(1, 1, 1)
- TextButton193.Name = "ContlrBrake"
- TextButton193.Parent = Frame138
- TextButton193.Transparency = 0.5
- TextButton193.Size = UDim2.new(0, 300, 0, 15)
- TextButton193.Position = UDim2.new(2, 170, 0, 33)
- TextButton193.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton193.BackgroundTransparency = 0.5
- TextButton193.BorderSizePixel = 0
- TextButton193.Font = Enum.Font.SourceSans
- TextButton193.FontSize = Enum.FontSize.Size14
- TextButton193.TextColor3 = Color3.new(1, 1, 1)
- TextButton194.Name = "ContlrSteer"
- TextButton194.Parent = Frame138
- TextButton194.Transparency = 0.5
- TextButton194.Size = UDim2.new(0, 300, 0, 15)
- TextButton194.Position = UDim2.new(2, 170, 0, 53)
- TextButton194.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton194.BackgroundTransparency = 0.5
- TextButton194.BorderSizePixel = 0
- TextButton194.Font = Enum.Font.SourceSans
- TextButton194.FontSize = Enum.FontSize.Size14
- TextButton194.TextColor3 = Color3.new(1, 1, 1)
- TextButton195.Name = "ContlrShiftUp"
- TextButton195.Parent = Frame138
- TextButton195.Transparency = 0.5
- TextButton195.Size = UDim2.new(0, 300, 0, 15)
- TextButton195.Position = UDim2.new(2, 170, 0, 73)
- TextButton195.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton195.BackgroundTransparency = 0.5
- TextButton195.BorderSizePixel = 0
- TextButton195.Font = Enum.Font.SourceSans
- TextButton195.FontSize = Enum.FontSize.Size14
- TextButton195.TextColor3 = Color3.new(1, 1, 1)
- TextButton196.Name = "ContlrShiftDown"
- TextButton196.Parent = Frame138
- TextButton196.Transparency = 0.5
- TextButton196.Size = UDim2.new(0, 300, 0, 15)
- TextButton196.Position = UDim2.new(2, 170, 0, 93)
- TextButton196.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton196.BackgroundTransparency = 0.5
- TextButton196.BorderSizePixel = 0
- TextButton196.Font = Enum.Font.SourceSans
- TextButton196.FontSize = Enum.FontSize.Size14
- TextButton196.TextColor3 = Color3.new(1, 1, 1)
- TextButton197.Name = "ContlrClutch"
- TextButton197.Parent = Frame138
- TextButton197.Transparency = 0.5
- TextButton197.Size = UDim2.new(0, 300, 0, 15)
- TextButton197.Position = UDim2.new(2, 170, 0, 113)
- TextButton197.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton197.BackgroundTransparency = 0.5
- TextButton197.BorderSizePixel = 0
- TextButton197.Font = Enum.Font.SourceSans
- TextButton197.FontSize = Enum.FontSize.Size14
- TextButton197.TextColor3 = Color3.new(1, 1, 1)
- TextButton198.Name = "ContlrPBrake"
- TextButton198.Parent = Frame138
- TextButton198.Transparency = 0.5
- TextButton198.Size = UDim2.new(0, 300, 0, 15)
- TextButton198.Position = UDim2.new(2, 170, 0, 133)
- TextButton198.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton198.BackgroundTransparency = 0.5
- TextButton198.BorderSizePixel = 0
- TextButton198.Font = Enum.Font.SourceSans
- TextButton198.FontSize = Enum.FontSize.Size14
- TextButton198.TextColor3 = Color3.new(1, 1, 1)
- TextButton199.Name = "ContlrToggleTMode"
- TextButton199.Parent = Frame138
- TextButton199.Transparency = 0.5
- TextButton199.Size = UDim2.new(0, 300, 0, 15)
- TextButton199.Position = UDim2.new(2, 170, 0, 153)
- TextButton199.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton199.BackgroundTransparency = 0.5
- TextButton199.BorderSizePixel = 0
- TextButton199.Font = Enum.Font.SourceSans
- TextButton199.FontSize = Enum.FontSize.Size14
- TextButton199.TextColor3 = Color3.new(1, 1, 1)
- TextButton200.Name = "ContlrToggleTCS"
- TextButton200.Parent = Frame138
- TextButton200.Transparency = 0.5
- TextButton200.Size = UDim2.new(0, 300, 0, 15)
- TextButton200.Position = UDim2.new(2, 170, 0, 173)
- TextButton200.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton200.BackgroundTransparency = 0.5
- TextButton200.BorderSizePixel = 0
- TextButton200.Font = Enum.Font.SourceSans
- TextButton200.FontSize = Enum.FontSize.Size14
- TextButton200.TextColor3 = Color3.new(1, 1, 1)
- TextLabel201.Name = "T"
- TextLabel201.Parent = Frame138
- TextLabel201.Transparency = 1
- TextLabel201.Text = "Deadzone"
- TextLabel201.Position = UDim2.new(1, 150, 0, 160)
- TextLabel201.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel201.BackgroundTransparency = 1
- TextLabel201.BorderSizePixel = 0
- TextLabel201.Font = Enum.Font.SourceSansItalic
- TextLabel201.FontSize = Enum.FontSize.Size18
- TextLabel201.TextColor3 = Color3.new(1, 1, 1)
- TextLabel201.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel201.TextStrokeTransparency = 0.94999998807907
- TextLabel201.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel202.Name = "T"
- TextLabel202.Parent = Frame138
- TextLabel202.Transparency = 1
- TextLabel202.Text = "Control Width"
- TextLabel202.Position = UDim2.new(1, 150, 0, 180)
- TextLabel202.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel202.BackgroundTransparency = 1
- TextLabel202.BorderSizePixel = 0
- TextLabel202.Font = Enum.Font.SourceSansItalic
- TextLabel202.FontSize = Enum.FontSize.Size18
- TextLabel202.TextColor3 = Color3.new(1, 1, 1)
- TextLabel202.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel202.TextStrokeTransparency = 0.94999998807907
- TextLabel202.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel203.Name = "T"
- TextLabel203.Parent = Frame138
- TextLabel203.Transparency = 1
- TextLabel203.Text = "Left Deadzone"
- TextLabel203.Position = UDim2.new(2, 150, 0, 200)
- TextLabel203.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel203.BackgroundTransparency = 1
- TextLabel203.BorderSizePixel = 0
- TextLabel203.Font = Enum.Font.SourceSansItalic
- TextLabel203.FontSize = Enum.FontSize.Size18
- TextLabel203.TextColor3 = Color3.new(1, 1, 1)
- TextLabel203.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel203.TextStrokeTransparency = 0.94999998807907
- TextLabel203.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel204.Name = "T"
- TextLabel204.Parent = Frame138
- TextLabel204.Transparency = 1
- TextLabel204.Text = "Right Deadzone"
- TextLabel204.Position = UDim2.new(2, 150, 0, 220)
- TextLabel204.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel204.BackgroundTransparency = 1
- TextLabel204.BorderSizePixel = 0
- TextLabel204.Font = Enum.Font.SourceSansItalic
- TextLabel204.FontSize = Enum.FontSize.Size18
- TextLabel204.TextColor3 = Color3.new(1, 1, 1)
- TextLabel204.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel204.TextStrokeTransparency = 0.94999998807907
- TextLabel204.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel205.Name = "MSteerDZone"
- TextLabel205.Parent = Frame138
- TextLabel205.Transparency = 1
- TextLabel205.Text = "100%"
- TextLabel205.Position = UDim2.new(1, 200, 0, 160)
- TextLabel205.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel205.BackgroundTransparency = 1
- TextLabel205.BorderSizePixel = 0
- TextLabel205.Font = Enum.Font.SourceSansItalic
- TextLabel205.FontSize = Enum.FontSize.Size18
- TextLabel205.TextColor3 = Color3.new(1, 1, 1)
- TextLabel205.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel205.TextStrokeTransparency = 0.94999998807907
- TextLabel205.TextXAlignment = Enum.TextXAlignment.Right
- ScrollingFrame206.Name = "S"
- ScrollingFrame206.Parent = TextLabel205
- ScrollingFrame206.Transparency = 0.5
- ScrollingFrame206.Size = UDim2.new(0, 260, 0, 3)
- ScrollingFrame206.Position = UDim2.new(0, 10, 0, 2)
- ScrollingFrame206.CanvasSize = UDim2.new(0, 5200, 0, 0)
- ScrollingFrame206.BackgroundColor3 = Color3.new(0, 0, 0)
- ScrollingFrame206.BackgroundTransparency = 0.5
- ScrollingFrame206.BorderSizePixel = 0
- ScrollingFrame206.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- ScrollingFrame206.ScrollBarThickness = 8
- ScrollingFrame206.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- TextLabel207.Name = "MSteerWidth"
- TextLabel207.Parent = Frame138
- TextLabel207.Transparency = 1
- TextLabel207.Text = "100%"
- TextLabel207.Position = UDim2.new(1, 200, 0, 180)
- TextLabel207.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel207.BackgroundTransparency = 1
- TextLabel207.BorderSizePixel = 0
- TextLabel207.Font = Enum.Font.SourceSansItalic
- TextLabel207.FontSize = Enum.FontSize.Size18
- TextLabel207.TextColor3 = Color3.new(1, 1, 1)
- TextLabel207.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel207.TextStrokeTransparency = 0.94999998807907
- TextLabel207.TextXAlignment = Enum.TextXAlignment.Right
- ScrollingFrame208.Name = "S"
- ScrollingFrame208.Parent = TextLabel207
- ScrollingFrame208.Transparency = 0.5
- ScrollingFrame208.Size = UDim2.new(0, 260, 0, 3)
- ScrollingFrame208.Position = UDim2.new(0, 10, 0, 2)
- ScrollingFrame208.CanvasSize = UDim2.new(0, 5200, 0, 0)
- ScrollingFrame208.BackgroundColor3 = Color3.new(0, 0, 0)
- ScrollingFrame208.BackgroundTransparency = 0.5
- ScrollingFrame208.BorderSizePixel = 0
- ScrollingFrame208.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- ScrollingFrame208.ScrollBarThickness = 8
- ScrollingFrame208.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- TextLabel209.Name = "ControlLDZone"
- TextLabel209.Parent = Frame138
- TextLabel209.Transparency = 1
- TextLabel209.Text = "100%"
- TextLabel209.Position = UDim2.new(2, 200, 0, 200)
- TextLabel209.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel209.BackgroundTransparency = 1
- TextLabel209.BorderSizePixel = 0
- TextLabel209.Font = Enum.Font.SourceSansItalic
- TextLabel209.FontSize = Enum.FontSize.Size18
- TextLabel209.TextColor3 = Color3.new(1, 1, 1)
- TextLabel209.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel209.TextStrokeTransparency = 0.94999998807907
- TextLabel209.TextXAlignment = Enum.TextXAlignment.Right
- ScrollingFrame210.Name = "S"
- ScrollingFrame210.Parent = TextLabel209
- ScrollingFrame210.Transparency = 0.5
- ScrollingFrame210.Size = UDim2.new(0, 260, 0, 3)
- ScrollingFrame210.Position = UDim2.new(0, 10, 0, 2)
- ScrollingFrame210.CanvasSize = UDim2.new(0, 5200, 0, 0)
- ScrollingFrame210.BackgroundColor3 = Color3.new(0, 0, 0)
- ScrollingFrame210.BackgroundTransparency = 0.5
- ScrollingFrame210.BorderSizePixel = 0
- ScrollingFrame210.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- ScrollingFrame210.ScrollBarThickness = 8
- ScrollingFrame210.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- TextLabel211.Name = "ControlRDZone"
- TextLabel211.Parent = Frame138
- TextLabel211.Transparency = 1
- TextLabel211.Text = "100%"
- TextLabel211.Position = UDim2.new(2, 200, 0, 220)
- TextLabel211.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel211.BackgroundTransparency = 1
- TextLabel211.BorderSizePixel = 0
- TextLabel211.Font = Enum.Font.SourceSansItalic
- TextLabel211.FontSize = Enum.FontSize.Size18
- TextLabel211.TextColor3 = Color3.new(1, 1, 1)
- TextLabel211.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel211.TextStrokeTransparency = 0.94999998807907
- TextLabel211.TextXAlignment = Enum.TextXAlignment.Right
- ScrollingFrame212.Name = "S"
- ScrollingFrame212.Parent = TextLabel211
- ScrollingFrame212.Transparency = 0.5
- ScrollingFrame212.Size = UDim2.new(0, 260, 0, 3)
- ScrollingFrame212.Position = UDim2.new(0, 10, 0, 2)
- ScrollingFrame212.CanvasSize = UDim2.new(0, 5200, 0, 0)
- ScrollingFrame212.BackgroundColor3 = Color3.new(0, 0, 0)
- ScrollingFrame212.BackgroundTransparency = 0.5
- ScrollingFrame212.BorderSizePixel = 0
- ScrollingFrame212.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- ScrollingFrame212.ScrollBarThickness = 8
- ScrollingFrame212.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- TextLabel213.Name = "Error"
- TextLabel213.Parent = Frame130
- TextLabel213.Transparency = 1
- TextLabel213.Text = "Invalid Input"
- TextLabel213.Position = UDim2.new(0.5, 0, 0, 20)
- TextLabel213.Visible = false
- TextLabel213.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel213.BackgroundTransparency = 1
- TextLabel213.BorderSizePixel = 0
- TextLabel213.Font = Enum.Font.SourceSansItalic
- TextLabel213.FontSize = Enum.FontSize.Size18
- TextLabel213.TextColor3 = Color3.new(1, 0, 0)
- TextLabel213.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel213.TextStrokeTransparency = 0.94999998807907
- TextLabel214.Name = "Overlay"
- TextLabel214.Parent = Frame130
- TextLabel214.Transparency = 0.5
- TextLabel214.Size = UDim2.new(1, 0, 1, 0)
- TextLabel214.Text = "[Press a key to assign or Enter to cancel]"
- TextLabel214.Visible = false
- TextLabel214.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel214.BackgroundTransparency = 0.5
- TextLabel214.BorderSizePixel = 0
- TextLabel214.ZIndex = 2
- TextLabel214.Font = Enum.Font.SourceSansItalic
- TextLabel214.FontSize = Enum.FontSize.Size28
- TextLabel214.TextColor3 = Color3.new(1, 1, 1)
- TextLabel214.TextStrokeColor3 = Color3.new(0.184314, 0.184314, 0.184314)
- TextLabel214.TextStrokeTransparency = 0
- LocalScript215.Name = "Controls_AC6"
- LocalScript215.Parent = Frame128
- table.insert(cors,sandbox(LocalScript215,function()
- --[[
- ___ _______ _
- / _ |____/ ___/ / ___ ____ ___ (_)__
- / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
- /_/ |_| \___/_//_/\_,_/___/___/_/___/
- SecondLogic @ Inspare
- ]]
- ---Controls UI
- script.Parent.Parent:WaitForChild("Controls")
- script.Parent.Parent:WaitForChild("ControlsOpen")
- script.Parent:WaitForChild("Window")
- script.Parent:WaitForChild("Toggle")
- local car = script.Parent.Parent.Car.Value
- local _Tune = require(car["A-Chassis Tune"])
- local UserInputService = game:GetService("UserInputService")
- local cPanel = script.Parent
- local Controls = script.Parent.Parent.Controls
- local ver = require(car["A-Chassis Tune"].README)
- cPanel.Window["//INSPARE"].Text = "A-Chassis "..ver.." by //INSPARE"
- local controlsOpen = false
- local cInputB = nil
- local cInputT = nil
- local cInput = false
- for i,v in pairs(_Tune.Peripherals) do
- script.Parent.Parent.Controls:WaitForChild(i)
- local slider = cPanel.Window.Content[i]
- slider.Text = v.."%"
- slider.S.CanvasPosition=Vector2.new(v*(slider.S.CanvasSize.X.Offset-slider.S.Size.X.Offset)/100,0)
- slider.S.Changed:connect(function(property)
- if property=="CanvasPosition" then
- Controls[i].Value = math.floor(100*slider.S.CanvasPosition.x/(slider.S.CanvasSize.X.Offset-slider.S.Size.X.Offset))
- slider.Text = Controls[i].Value.."%"
- end
- end)
- end
- for i,v in pairs(_Tune.Controls) do
- script.Parent.Parent.Controls:WaitForChild(i)
- local button = cPanel.Window.Content[i]
- button.Text = v.Name
- button.MouseButton1Click:connect(function()
- script.Parent.Parent.ControlsOpen.Value = true
- cPanel.Window.Overlay.Visible = true
- cInput = true
- repeat wait() until cInputB~=nil
- if cInputB == Enum.KeyCode.Return or cInputB == Enum.KeyCode.KeypadEnter then
- --do nothing
- elseif string.find(i,"Contlr")~=nil then
- if cInputT.Name:find("Gamepad") then
- Controls[i].Value = cInputB.Name
- button.Text = cInputB.Name
- else
- cPanel.Window.Error.Visible = true
- end
- elseif i=="MouseThrottle" or i=="MouseBrake" then
- if cInputT == Enum.UserInputType.MouseButton1 or cInputT == Enum.UserInputType.MouseButton2 then
- Controls[i].Value = cInputT.Name
- button.Text = cInputT.Name
- else
- cPanel.Window.Error.Visible = true
- end
- else
- if cInputT == Enum.UserInputType.Keyboard then
- Controls[i].Value = cInputB.Name
- button.Text = cInputB.Name
- else
- cPanel.Window.Error.Visible = true
- end
- end
- cInputB = nil
- cInputT = nil
- cInput = false
- wait(.2)
- cPanel.Window.Overlay.Visible = false
- script.Parent.Parent.ControlsOpen.Value = false
- end)
- end
- cPanel.Window.Error.Changed:connect(function(property)
- if property == "Visible" then
- wait(3)
- cPanel.Window.Error.Visible = false
- end
- end)
- UserInputService.InputBegan:connect(function(input) if cInput then cInputB = input.KeyCode cInputT = input.UserInputType end end)
- UserInputService.InputChanged:connect(function(input) if cInput and (input.KeyCode==Enum.KeyCode.Thumbstick1 or input.KeyCode==Enum.KeyCode.Thumbstick2) then cInputB = input.KeyCode cInputT = input.UserInputType end end)
- cPanel.Toggle.MouseButton1Click:connect(function()
- controlsOpen = not controlsOpen
- if controlsOpen then
- cPanel.Toggle.BackgroundColor3 = Color3.new(1,85/255,.5)
- cPanel.Window:TweenPosition(UDim2.new(0.5, -250,0.5, -250),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.7,true)
- else
- cPanel.Toggle.BackgroundColor3 = Color3.new(1,170/255,0)
- cPanel.Window:TweenPosition(UDim2.new(0.5, -250,0, -500),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.7,true)
- end
- end)
- cPanel.Window.Tabs.Keyboard.MouseButton1Click:connect(function()
- cPanel.Window.Content:TweenPosition(UDim2.new(0, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- end)
- cPanel.Window.Tabs.Mouse.MouseButton1Click:connect(function()
- cPanel.Window.Content:TweenPosition(UDim2.new(-1, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- end)
- cPanel.Window.Tabs.Controller.MouseButton1Click:connect(function()
- cPanel.Window.Content:TweenPosition(UDim2.new(-2, 0, 0, 60),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Keyboard:TweenPosition(UDim2.new(0, 5, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Mouse:TweenPosition(UDim2.new(0, 120, 0, -5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- cPanel.Window.Tabs.Controller:TweenPosition(UDim2.new(0, 235, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
- end)
- wait(.5)
- cPanel.Toggle:TweenPosition(UDim2.new(0, 50, 1, -30),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,false)
- for i=1,6 do
- cPanel.Toggle.BackgroundColor3 = Color3.new(100/255,100/255,100/255)
- wait(.2)
- if controlsOpen then
- cPanel.Toggle.BackgroundColor3 = Color3.new(1,85/255,.5)
- else
- cPanel.Toggle.BackgroundColor3 = Color3.new(1,170/255,0)
- end
- wait(.2)
- end
- end))
- LocalScript216.Name = "Backfire"
- LocalScript216.Parent = Folder84
- table.insert(cors,sandbox(LocalScript216,function()
- local car = script.Parent.Car.Value
- local _Tune = require(car["A-Chassis Tune"])
- local rate=0
- local prate=rate
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" then
- car.Body.Exhaust.E1.Afterburn.Rate=0
- car.Body.Exhaust.E1.L.Range = 0
- end
- end)
- function backfire()
- if script.Parent.IsOn.Value and script.Parent.Values.Throttle.Value <= _Tune.IdleThrottle and script.Parent.Values.RPM.Value>_Tune.PeakRPM and script.Parent.Values.Gear.Value~=-1 then
- rate = 100
- elseif rate>0 then
- rate = math.max(rate-25,0)
- end
- if prate~=rate then
- car.Body.Exhaust.E1.Afterburn.Rate = rate
- car.Body.Exhaust.E1.L.Range = (7+(math.random(-10,10)/10))*rate/100
- end
- prate=rate
- if car.DriveSeat:FindFirstChild("Rev")~=nil then
- local on=1
- if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end
- end
- end
- while wait(.1) do
- backfire()
- end
- script.Parent.Values.Throttle.Changed:connect(backfire())
- end))
- LocalScript217.Name = "Smoke"
- LocalScript217.Parent = Folder84
- table.insert(cors,sandbox(LocalScript217,function()
- local car = script.Parent.Car.Value
- car.Wheels.RL.SQ:Play()
- car.Wheels.RR.SQ:Play()
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" then
- car.Wheels.RL.SQ:Stop()
- car.Wheels.RR.SQ:Stop()
- car.Wheels.RL.Smoke.Rate=0
- car.Wheels.RR.Smoke.Rate=0
- end
- end)
- while wait(.2) do
- local r1 = Ray.new(car.Wheels.RL.Position,(car.Wheels.RL.Arm.CFrame*CFrame.Angles(-math.pi/2,0,0)).lookVector*(car.Wheels.RL.Size.x/2))
- local r1hit = 0
- if workspace:FindPartOnRay(r1,car)~=nil then r1hit=1 end
- local r2 = Ray.new(car.Wheels.RL.Position,(car.Wheels.RR.Arm.CFrame*CFrame.Angles(-math.pi/2,0,0)).lookVector*(car.Wheels.RR.Size.x/2))
- local r2hit = 0
- if workspace:FindPartOnRay(r2,car)~=nil then r2hit=1 end
- local rl = math.min((math.max(math.abs((car.Wheels.RL.RotVelocity.Magnitude*car.Wheels.RL.Size.x/2) - (car.Wheels.RL.Velocity.Magnitude))-20,0)),50)*r1hit
- local rr = math.min((math.max(math.abs((car.Wheels.RR.RotVelocity.Magnitude*car.Wheels.RR.Size.x/2) - (car.Wheels.RR.Velocity.Magnitude))-20,0)),50)*r2hit
- car.Wheels.RL.Smoke.Rate = rl
- car.Wheels.RR.Smoke.Rate = rr
- car.Wheels.RL.SQ.Volume = rl/50
- car.Wheels.RR.SQ.Volume = rr/50
- end
- end))
- LocalScript218.Name = "Burnout"
- LocalScript218.Parent = Folder84
- table.insert(cors,sandbox(LocalScript218,function()
- local car = script.Parent.Car.Value
- local slip = 0
- local pslip = slip
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" then
- car.Wheels.RL.Burnout.Force = Vector3.new(0,0,0)
- car.Wheels.RR.Burnout.Force = Vector3.new(0,0,0)
- end
- end)
- while wait(.2) do
- if script.Parent.Values.PBrake.Value and not script.Parent.Values.TCS.Value and car.DriveSeat.Velocity.Magnitude < 5 and script.Parent.Values.RPM.Value > 4000 then
- slip = math.min(15000,slip+3000)
- else
- slip = math.max(0,slip-1000)
- end
- if pslip~=slip then
- car.Wheels.RL.Burnout.Force = Vector3.new(0,slip,0)
- car.Wheels.RR.Burnout.Force = Vector3.new(0,slip,0)
- end
- pslip=slip
- end
- end))
- ScreenGui219.Name = "A-Chassis Interface"
- ScreenGui219.Parent = mas
- ObjectValue220.Name = "Car"
- ObjectValue220.Parent = ScreenGui219
- Folder221.Name = "Values"
- Folder221.Parent = ScreenGui219
- NumberValue222.Name = "RPM"
- NumberValue222.Parent = Folder221
- NumberValue223.Name = "Horsepower"
- NumberValue223.Parent = Folder221
- NumberValue224.Name = "Torque"
- NumberValue224.Parent = Folder221
- StringValue225.Name = "TransmissionMode"
- StringValue225.Parent = Folder221
- NumberValue226.Name = "Gear"
- NumberValue226.Parent = Folder221
- NumberValue227.Name = "Throttle"
- NumberValue227.Parent = Folder221
- NumberValue228.Name = "SteerC"
- NumberValue228.Parent = Folder221
- NumberValue229.Name = "SteerT"
- NumberValue229.Parent = Folder221
- NumberValue230.Name = "Brake"
- NumberValue230.Parent = Folder221
- BoolValue231.Name = "TCS"
- BoolValue231.Parent = Folder221
- BoolValue232.Name = "PBrake"
- BoolValue232.Parent = Folder221
- BoolValue233.Name = "TCSActive"
- BoolValue233.Parent = Folder221
- Vector3Value234.Name = "Velocity"
- Vector3Value234.Parent = Folder221
- BoolValue235.Name = "IsOn"
- BoolValue235.Parent = ScreenGui219
- BoolValue236.Name = "ControlsOpen"
- BoolValue236.Parent = ScreenGui219
- LocalScript237.Name = "Drive"
- LocalScript237.Parent = ScreenGui219
- table.insert(cors,sandbox(LocalScript237,function()
- --[[
- ___ _______ _
- / _ |____/ ___/ / ___ ____ ___ (_)__
- / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
- /_/ |_| \___/_//_/\_,_/___/___/_/___/
- SecondLogic @ Inspare
- *I assume you know what you're doing if you're gonna change something here.* ]]--
- script.Parent:WaitForChild("Car")
- script.Parent:WaitForChild("IsOn")
- script.Parent:WaitForChild("ControlsOpen")
- script.Parent:WaitForChild("Values")
- --Vars
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local UserInputService = game:GetService("UserInputService")
- local cam = workspace.CurrentCamera
- local car = script.Parent.Car.Value
- local _Tune = require(car["A-Chassis Tune"])
- local _IsOn = _Tune.AutoStart
- if _Tune.AutoStart then script.Parent.IsOn.Value=true end
- local _GSteerT=0
- local _GSteerC=0
- local _GThrot=0
- local _GBrake=0
- local _ClutchOn = true
- local _ClPressing = false
- local _RPM = 0
- local _HP = 0
- local _OutTorque = 0
- local _CGear = 0
- local _PGear = _CGear
- local _TMode = _Tune.TransModes[1]
- local _MSteer = false
- local _SteerL = false
- local _SteerR = false
- local _PBrake = false
- local _TCS = true
- local _TCSActive = false
- local FlipWait=tick()
- local FlipDB=false
- local _InControls = false
- --Shutdown
- car.DriveSeat.ChildRemoved:connect(function(child)
- if child.Name=="SeatWeld" and child:IsA("Weld") then
- script.Parent:Destroy()
- end
- end)
- --Controls
- local _CTRL = _Tune.Controls
- local Controls = Instance.new("Folder",script.Parent)
- Controls.Name = "Controls"
- for i,v in pairs(_CTRL) do
- local a=Instance.new("StringValue",Controls)
- a.Name=i
- a.Value=v.Name
- a.Changed:connect(function()
- if i=="MouseThrottle" or i=="MouseBrake" then
- _CTRL[i]=Enum.UserInputType[a.Value]
- else
- _CTRL[i]=Enum.KeyCode[a.Value]
- end
- end)
- end
- local _PPH = _Tune.Peripherals
- for i,v in pairs(_PPH) do
- local a = Instance.new("IntValue",Controls)
- a.Name = i
- a.Value = v
- a.Changed:connect(function()
- a.Value=math.min(100,math.max(0,a.Value))
- _PPH[i] = a.Value
- end)
- end
- function DealWithInput(input,IsRobloxFunction)
- if (UserInputService:GetFocusedTextBox()==nil) and not _InControls then --No texting while driving
- if _IsOn and (input.KeyCode ==_CTRL["ContlrShiftDown"] or (_MSteer and input.KeyCode==_CTRL["MouseShiftDown"]) or ((not _MSteer) and input.KeyCode==_CTRL["ShiftDown"])) and _TMode=="Manual" and (not _ClutchOn) and input.UserInputState == Enum.UserInputState.Begin then
- if _CGear == 0 and (_TMode=="Auto" or not _ClPressing) then _ClutchOn = true end
- _CGear = math.max(_CGear-1,-1)
- elseif _IsOn and (input.KeyCode ==_CTRL["ContlrShiftUp"] or (_MSteer and input.KeyCode==_CTRL["MouseShiftUp"]) or ((not _MSteer) and input.KeyCode==_CTRL["ShiftUp"])) and _TMode=="Manual" and (not _ClutchOn) and input.UserInputState == Enum.UserInputState.Begin then
- if _CGear == 0 and (_TMode=="Auto" or not _ClPressing) then _ClutchOn = true end
- _CGear = math.min(_CGear+1,#_Tune.Ratios-2)
- elseif _IsOn and (input.KeyCode ==_CTRL["ContlrClutch"] or (_MSteer and input.KeyCode==_CTRL["MouseClutch"]) or ((not _MSteer) and input.KeyCode==_CTRL["Clutch"])) and _TMode=="Manual" then
- if input.UserInputState == Enum.UserInputState.Begin then
- _ClutchOn = false
- _ClPressing = true
- elseif input.UserInputState == Enum.UserInputState.End then
- _ClutchOn = true
- _ClPressing = false
- end
- elseif _IsOn and input.KeyCode ==_CTRL["ContlrPBrake"] or (_MSteer and input.KeyCode==_CTRL["MousePBrake"]) or ((not _MSteer) and input.KeyCode==_CTRL["PBrake"]) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _PBrake = not _PBrake
- elseif input.UserInputState == Enum.UserInputState.End then
- if car.DriveSeat.Velocity.Magnitude>5 then
- _PBrake = false
- end
- end
- elseif (input.KeyCode == _CTRL["ContlrToggleTMode"] or input.KeyCode==_CTRL["ToggleTransMode"]) and input.UserInputState == Enum.UserInputState.Begin then
- local n=1
- for i,v in pairs(_Tune.TransModes) do
- if v==_TMode then n=i break end
- end
- n=n+1
- if n>#_Tune.TransModes then n=1 end
- _TMode = _Tune.TransModes[n]
- elseif _IsOn and ((not _MSteer) and (input.KeyCode==_CTRL["Throttle"] or input.KeyCode == _CTRL["Throttle2"])) or (input.UserInputType == _CTRL["MouseThrottle"] and _MSteer) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _GThrot = 1
- else
- _GThrot = _Tune.IdleThrottle
- end
- elseif ((not _MSteer) and (input.KeyCode==_CTRL["Brake"] or input.KeyCode == _CTRL["Brake2"])) or (input.UserInputType == _CTRL["MouseBrake"] and _MSteer) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _GBrake = 1
- else
- _GBrake = 0
- end
- elseif (not _MSteer) and (input.KeyCode==_CTRL["SteerLeft"] or input.KeyCode == _CTRL["SteerLeft2"]) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _GSteerT = -1
- _SteerL = true
- else
- if _SteerR then
- _GSteerT = 1
- else
- _GSteerT = 0
- end
- _SteerL = false
- end
- elseif (not _MSteer) and (input.KeyCode==_CTRL["SteerRight"] or input.KeyCode == _CTRL["SteerRight2"]) then
- if input.UserInputState == Enum.UserInputState.Begin then
- _GSteerT = 1
- _SteerR = true
- else
- if _SteerL then
- _GSteerT = -1
- else
- _GSteerT = 0
- end
- _SteerR = false
- end
- elseif input.KeyCode ==_CTRL["ToggleMouseDrive"] then
- if input.UserInputState == Enum.UserInputState.End then
- _MSteer = not _MSteer
- _GThrot = _Tune.IdleThrottle
- _GBrake = 0
- _GSteerT = 0
- _ClutchOn = true
- end
- elseif _IsOn and input.KeyCode == _CTRL["ToggleTCS"] or input.KeyCode == _CTRL["ContlrToggleTCS"] then
- if input.UserInputState == Enum.UserInputState.End then
- _TCS = not _TCS
- end
- end
- if input.UserInputType.Name:find("Gamepad") then
- if input.KeyCode == _CTRL["ContlrSteer"] then
- if input.Position.X>= 0 then
- local cDZone = math.min(.99,_Tune.Peripherals.ControlRDZone/100)
- if math.abs(input.Position.X)>cDZone then
- _GSteerT = (input.Position.X-cDZone)/(1-cDZone)
- else
- _GSteerT = 0
- end
- else
- local cDZone = math.min(.99,_Tune.Peripherals.ControlLDZone/100)
- if math.abs(input.Position.X)>cDZone then
- _GSteerT = (input.Position.X+cDZone)/(1-cDZone)
- else
- _GSteerT = 0
- end
- end
- elseif _IsOn and input.KeyCode == _CTRL["ContlrThrottle"] then
- _GThrot = math.max(_Tune.IdleThrottle,input.Position.Z)
- elseif input.KeyCode == _CTRL["ContlrBrake"] then
- _GBrake = input.Position.Z
- end
- end
- else
- _GThrot = _Tune.IdleThrottle
- _GSteerT = 0
- _GBrake = 0
- if _CGear~=0 then _ClutchOn = true end
- end
- end
- UserInputService.InputBegan:connect(DealWithInput)
- UserInputService.InputChanged:connect(DealWithInput)
- UserInputService.InputEnded:connect(DealWithInput)
- ---Drivetrain Initialize
- local wDia = 0
- local Drive={}
- if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
- table.insert(Drive,v)
- end
- end
- end
- if _Tune.Config == "RWD" or _Tune.Config == "AWD" then
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v.Name=="RL" or v.Name=="RR" or v.Name=="R" then
- table.insert(Drive,v)
- end
- end
- end
- for i,v in pairs(Drive) do
- if v.Size.x>wDia then wDia = v.Size.x end
- end
- ---Camera
- game:GetService("RunService").RenderStepped:connect(function()
- if _MSteer then
- cam.CameraType = Enum.CameraType.Scriptable
- local pspeed = math.min(1,car.DriveSeat.Velocity.Magnitude/500)
- local cc = car.DriveSeat.Position+Vector3.new(0,8+(pspeed*2),0)-(car.DriveSeat.CFrame.lookVector*17)+(car.DriveSeat.Velocity.Unit*-7*pspeed)
- cam.CoordinateFrame = CFrame.new(cc,car.DriveSeat.Position)
- elseif cam.CameraType ~= Enum.CameraType.Custom then
- cam.CameraType = Enum.CameraType.Custom
- end
- end)
- ---Steering
- function Steering()
- if _MSteer then
- local msWidth = math.max(1,mouse.ViewSizeX*_Tune.Peripherals.MSteerWidth/200)
- local mdZone = _Tune.Peripherals.MSteerDZone/100
- local mST = ((mouse.X-mouse.ViewSizeX/2)/msWidth)
- if math.abs(mST)<=mdZone then
- _GSteerT = 0
- else
- _GSteerT = (math.max(math.min((math.abs(mST)-mdZone),(1-mdZone)),0)/(1-mdZone))^_Tune.MSteerExp * (mST / math.abs(mST))
- end
- end
- if _GSteerC < _GSteerT then
- _GSteerC = math.min(_GSteerT,_GSteerC+_Tune.SteerSpeed)
- else
- _GSteerC = math.max(_GSteerT,_GSteerC-_Tune.SteerSpeed)
- end
- local sDecay = (1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-_Tune.MinSteer))
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v.Name=="F" then
- v.Arm.Steer.cframe=car.Wheels.F.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
- elseif v.Name=="FL" then
- if _GSteerC>= 0 then
- v.Arm.Steer.cframe=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerOuter*sDecay),0)
- else
- v.Arm.Steer.cframe=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
- end
- elseif v.Name=="FR" then
- if _GSteerC>= 0 then
- v.Arm.Steer.cframe=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
- else
- v.Arm.Steer.cframe=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerOuter*sDecay),0)
- end
- end
- end
- end
- --Engine
- function Engine()
- --Neutral Gear
- if _CGear==0 then _ClutchOn = false end
- --Car is off
- local revMin = _Tune.IdleRPM
- if not _IsOn then
- revMin = 0
- _CGear = 0
- _ClutchOn = false
- _GThrot = _Tune.IdleThrottle
- end
- --Determine RPM
- local maxSpin=0
- for i,v in pairs(Drive) do
- if v.RotVelocity.Magnitude>maxSpin then maxSpin = v.RotVelocity.Magnitude end
- end
- if _ClutchOn then
- local aRPM = math.max(math.min(maxSpin*_Tune.Ratios[_CGear+2]*_Tune.FinalDrive*30/math.pi,_Tune.Redline+100),revMin)
- local clutchP = math.min(math.abs(aRPM-_RPM)/_Tune.ClutchTol,.9)
- _RPM = ( (_RPM*2*clutchP) + (aRPM*2*(1-clutchP)) )/2
- _HP = (_Tune.Horsepower/2) * math.sin((math.pi/((1+(math.min(10,_Tune.IdleOffset)/100))*_Tune.PeakRPM)) * (_RPM - (((2-(1+(math.min(10,_Tune.IdleOffset)/100)))* _Tune.PeakRPM)/2))) + (_Tune.Horsepower/2)
- _OutTorque = _HP * 5250 / _RPM * _Tune.Ratios[_CGear+2] * _Tune.FinalDrive
- else
- if _GThrot-_Tune.IdleThrottle>0 then
- _RPM = math.min(_RPM+_Tune.RevAccel*_GThrot,_Tune.Redline+100)
- else
- _RPM = math.max(_RPM-_Tune.RevDecay,revMin)
- end
- _OutTorque = 0
- end
- --Rev Limiter
- local spLimit = 0
- if _RPM>_Tune.Redline then
- if _CGear<#_Tune.Ratios-2 then
- _RPM = _RPM-_Tune.RevBounce
- spLimit = 0
- else
- _RPM = _RPM-_Tune.RevBounce*.5
- end
- else
- spLimit = (_Tune.Redline+100)*math.pi/(30*_Tune.Ratios[_CGear+2]*_Tune.FinalDrive)
- end
- --Automatic Transmission
- if _TMode == "Auto" and _IsOn then
- _ClutchOn = true
- if _CGear == 0 then _CGear = 1 end
- if _CGear >= 1 then
- if _CGear==1 and _GBrake > 0 and car.DriveSeat.Velocity.Magnitude < 20 then
- _CGear = -1
- else
- if _Tune.AutoShiftMode == "RPM" then
- if _RPM>(_Tune.PeakRPM+_Tune.AutoUpThresh) then
- _CGear=math.min(_CGear+1,#_Tune.Ratios-2)
- elseif math.max(math.min(maxSpin*_Tune.Ratios[_CGear+1]*_Tune.FinalDrive*30/math.pi,_Tune.Redline+100),_Tune.IdleRPM)<(_Tune.PeakRPM-_Tune.AutoDownThresh) then
- _CGear=math.max(_CGear-1,1)
- end
- else
- if car.DriveSeat.Velocity.Magnitude > math.ceil(wDia*math.pi*(_Tune.PeakRPM+_Tune.AutoUpThresh)/60/_Tune.Ratios[_CGear+2]/_Tune.FinalDrive) then
- _CGear=math.min(_CGear+1,#_Tune.Ratios-2)
- elseif car.DriveSeat.Velocity.Magnitude < math.ceil(wDia*math.pi*(_Tune.PeakRPM-_Tune.AutoDownThresh)/60/_Tune.Ratios[_CGear+1]/_Tune.FinalDrive) then
- _CGear=math.max(_CGear-1,1)
- end
- end
- end
- else
- if _GThrot-_Tune.IdleThrottle > 0 and car.DriveSeat.Velocity.Magnitude < 20 then
- _CGear = 1
- end
- end
- end
- --Differential Stuff
- local fwspeed=0
- local fwcount=0
- local rwspeed=0
- local rwcount=0
- for i,v in pairs(car.Wheels:GetChildren()) do
- if v.Name=="FL" or v.Name=="FR" or v.Name == "F" then
- fwspeed=fwspeed+v.RotVelocity.Magnitude
- fwcount=fwcount+1
- elseif v.Name=="RL" or v.Name=="RR" or v.Name == "R" then
- rwspeed=rwspeed+v.RotVelocity.Magnitude
- rwcount=rwcount+1
- end
- end
- fwspeed=fwspeed/fwcount
- rwspeed=rwspeed/rwcount
- local cwspeed=(fwspeed+rwspeed)/2
- --Apply Forces
- for i,v in pairs(car.Wheels:GetChildren()) do
- local Ref=v.Axle.CFrame.lookVector
- local aRef=1
- local diffMult=1
- if v.Name=="FL" or v.Name=="RL" then aRef=-1 end
- --Torque Compensation
- if _Tune.Config ~= "AWD" then _OutTorque = _OutTorque*1.3 end
- --Differential
- if v.Name=="FL" or v.Name=="FR" then
- diffMult=math.max(0,math.min(1,1+((((v.RotVelocity.Magnitude-fwspeed)/fwspeed)/(math.max(_Tune.FDiffSlipThres,1)/100))*((_Tune.FDiffLockThres-50)/50))))
- if _Tune.Config == "AWD" then
- diffMult=math.max(0,math.min(1,diffMult*(1+((((fwspeed-cwspeed)/cwspeed)/(math.max(_Tune.CDiffSlipThres,1)/100))*((_Tune.CDiffLockThres-50)/50)))))
- end
- elseif v.Name=="RL" or v.Name=="RR" then
- diffMult=math.max(0,math.min(1,1+((((v.RotVelocity.Magnitude-rwspeed)/rwspeed)/(math.max(_Tune.RDiffSlipThres,1)/100))*((_Tune.RDiffLockThres-50)/50))))
- if _Tune.Config == "AWD" then
- diffMult=math.max(0,math.min(1,diffMult*(1+((((rwspeed-cwspeed)/cwspeed)/(math.max(_Tune.CDiffSlipThres,1)/100))*((_Tune.CDiffLockThres-50)/50)))))
- end
- end
- --Output
- if _PBrake and ((_Tune.Config ~= "FWD" and (((v.Name=="FL" or v.Name=="FR") and car.DriveSeat.Velocity.Magnitude<20) or ((v.Name=="RR" or v.Name=="RL") and car.DriveSeat.Velocity.Magnitude>=20))) or (_Tune.Config == "FWD" and (v.Name=="RR" or v.Name=="RL"))) then
- v["#AV"].maxTorque=Vector3.new(math.abs(Ref.x),math.abs(Ref.y),math.abs(Ref.z))*_Tune.PBrakeForce
- v["#AV"].angularvelocity=Vector3.new()
- else
- if (_TMode == "Manual" and _GBrake==0) or (_TMode == "Auto" and ((_CGear>-1 and _GBrake==0 ) or (_CGear==-1 and _GThrot-_Tune.IdleThrottle==0 )))then
- local driven = false
- for _,a in pairs(Drive) do if a==v then driven = true end end
- if driven then
- local on=1
- if not script.Parent.IsOn.Value then on=0 end
- local throt = _GThrot
- if _TMode == "Auto" and _CGear==-1 then throt = _GBrake end
- local tqTCS = 1
- if _TCS then
- tqTCS = 1-(math.min(math.max(0,math.abs(v.RotVelocity.Magnitude*(v.Size.x/2) - v.Velocity.Magnitude)-_Tune.TCSThreshold)/_Tune.TCSGradient,1)*(1-_Tune.TCSLimit))
- end
- if tqTCS < 1 then
- _TCSActive = true
- else
- _TCSActive = false
- end
- local dir = 1
- if _CGear==-1 then dir = -1 end
- v["#AV"].maxTorque=Vector3.new(math.abs(Ref.x),math.abs(Ref.y),math.abs(Ref.z))*_OutTorque*(1+(v.RotVelocity.Magnitude/60)^1.15)*throt*tqTCS*diffMult*on
- v["#AV"].angularvelocity=Ref*aRef*spLimit*dir
- else
- v["#AV"].maxTorque=Vector3.new()
- v["#AV"].angularvelocity=Vector3.new()
- end
- else
- local brake = _GBrake
- if _TMode == "Auto" and _CGear==-1 then brake = _GThrot end
- v["#AV"].maxTorque=Vector3.new(math.abs(Ref.x),math.abs(Ref.y),math.abs(Ref.z))*_Tune.BrakeForce*brake
- v["#AV"].angularvelocity=Vector3.new()
- end
- end
- end
- end
- ---Flip
- function Flip()
- if (car.DriveSeat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.y > .1 or FlipDB then
- FlipWait=tick()
- else
- if tick()-FlipWait>=3 then
- FlipDB=true
- local gyro = car.DriveSeat.Flip
- gyro.maxTorque = Vector3.new(10000,0,10000)
- gyro.P=3000
- gyro.D=500
- wait(1)
- gyro.maxTorque = Vector3.new(0,0,0)
- gyro.P=0
- gyro.D=0
- FlipDB=false
- end
- end
- end
- --Run
- local ver=require(car["A-Chassis Tune"].README)
- print("//INSPARE: AC6 Loaded - Build "..ver)
- while wait() do
- Steering()
- Engine()
- if _Tune.AutoFlip then Flip() end
- _IsOn = script.Parent.IsOn.Value
- _InControls = script.Parent.ControlsOpen.Value
- script.Parent.Values.Gear.Value = _CGear
- script.Parent.Values.RPM.Value = _RPM
- script.Parent.Values.Horsepower.Value = _HP
- script.Parent.Values.Torque.Value = _HP * 5250 / _RPM
- script.Parent.Values.TransmissionMode.Value = _TMode
- script.Parent.Values.Throttle.Value = _GThrot
- script.Parent.Values.Brake.Value = _GBrake
- script.Parent.Values.SteerC.Value = _GSteerC*(1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-_Tune.MinSteer))
- script.Parent.Values.SteerT.Value = _GSteerT
- script.Parent.Values.PBrake.Value = _PBrake
- script.Parent.Values.TCS.Value = _TCS
- script.Parent.Values.TCSActive.Value = _TCSActive
- script.Parent.Values.Velocity.Value = car.DriveSeat.Velocity
- if _PGear~=_CGear then
- _PGear=_CGear
- car.DriveSeat.MaxSpeed = car.DriveSeat.Velocity.Magnitude*(_Tune.Redline/_RPM)
- end
- end
- end))
- Model238.Name = "Body"
- Model238.Parent = Model0
- Model239.Name = "Body"
- Model239.Parent = Model238
- Model240.Name = "Exhaust"
- Model240.Parent = Model239
- PointLight241.Name = "L"
- PointLight241.Parent = mas
- PointLight241.Color = Color3.new(0.74902, 0.52549, 1)
- PointLight241.Brightness = 100
- PointLight241.Range = 0
- PointLight241.Color = Color3.new(0.74902, 0.52549, 1)
- ParticleEmitter242.Name = "Afterburn"
- ParticleEmitter242.Parent = mas
- ParticleEmitter242.Rotation = NumberRange.new(180, 180)
- ParticleEmitter242.Size = NumberSequence.new(0.3125,0.8125,0.1875)
- ParticleEmitter242.Color = ColorSequence.new(Color3.new(1, 0.207645, 0.067216),Color3.new(1, 0.395178, 0.386847))
- ParticleEmitter242.LightEmission = 0.80000001192093
- ParticleEmitter242.Texture = "http://www.roblox.com/asset/?id=462433141"
- ParticleEmitter242.Acceleration = Vector3.new(0, 0, 10)
- ParticleEmitter242.Lifetime = NumberRange.new(0.15000000596046, 0.25)
- ParticleEmitter242.Rate = 0
- ParticleEmitter242.RotSpeed = NumberRange.new(9000, 9000)
- ParticleEmitter242.Speed = NumberRange.new(8, 8)
- ParticleEmitter242.VelocitySpread = 1
- ParticleEmitter242.Color = ColorSequence.new(Color3.new(1, 0.207645, 0.067216),Color3.new(1, 0.395178, 0.386847))
- PointLight243.Name = "L"
- PointLight243.Parent = mas
- PointLight243.Color = Color3.new(0.74902, 0.52549, 1)
- PointLight243.Brightness = 100
- PointLight243.Range = 0
- PointLight243.Color = Color3.new(0.74902, 0.52549, 1)
- ParticleEmitter244.Name = "Afterburn"
- ParticleEmitter244.Parent = mas
- ParticleEmitter244.Rotation = NumberRange.new(180, 180)
- ParticleEmitter244.Size = NumberSequence.new(0.3125,0.8125,0.1875)
- ParticleEmitter244.Color = ColorSequence.new(Color3.new(1, 0.207645, 0.067216),Color3.new(1, 0.395178, 0.386847))
- ParticleEmitter244.LightEmission = 0.80000001192093
- ParticleEmitter244.Texture = "http://www.roblox.com/asset/?id=462433141"
- ParticleEmitter244.Acceleration = Vector3.new(0, 0, 10)
- ParticleEmitter244.Lifetime = NumberRange.new(0.15000000596046, 0.25)
- ParticleEmitter244.Rate = 0
- ParticleEmitter244.RotSpeed = NumberRange.new(9000, 9000)
- ParticleEmitter244.Speed = NumberRange.new(8, 8)
- ParticleEmitter244.VelocitySpread = 1
- ParticleEmitter244.Color = ColorSequence.new(Color3.new(1, 0.207645, 0.067216),Color3.new(1, 0.395178, 0.386847))
- Model245.Name = "Lights"
- Model245.Parent = Model239
- SurfaceLight246.Name = "Light"
- SurfaceLight246.Parent = mas
- SurfaceLight246.Color = Color3.new(0.654902, 0.956863, 1)
- SurfaceLight246.Enabled = false
- SurfaceLight246.Brightness = 15
- SurfaceLight246.Range = 35
- SurfaceLight246.Shadows = true
- SurfaceLight246.Face = Enum.NormalId.Back
- SurfaceLight246.Color = Color3.new(0.654902, 0.956863, 1)
- SurfaceLight247.Name = "Light"
- SurfaceLight247.Parent = mas
- SurfaceLight247.Color = Color3.new(0.666667, 0, 0)
- SurfaceLight247.Enabled = false
- SurfaceLight247.Brightness = 3
- SurfaceLight247.Range = 15
- SurfaceLight247.Shadows = true
- SurfaceLight247.Angle = 50
- SurfaceLight247.Color = Color3.new(0.666667, 0, 0)
- Model248.Name = "Body"
- Model248.Parent = Model239
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement