frontstiffness=(1290*StiffnessFront)/2 frontdamping=40*StiffnessFront rearstiffness=(1290*StiffnessRear)/2 reardamping=40*StiffnessRear minLF=SuspensionTravelF minLR=SuspensionTravelR maxL=(RideHeightRear+RideHeightFront)/2+4 ffl=RideHeightFront+2 rfl=RideHeightRear+2 local w=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",SFL)w.Attachment0=SFL.Attachment w.Attachment1=SSML.Attachment w.Damping=frontdamping w.FreeLength=ffl w.Stiffness=frontstiffness w.Visible=false w.LimitsEnabled=true w.MinLength=minLF w.MaxLength=maxL local I=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",SFR)I.Attachment0=SFR.Attachment I.Attachment1=SSMR.Attachment I.Damping=frontdamping I.FreeLength=ffl I.Stiffness=frontstiffness I.Visible=false I.LimitsEnabled=true I.MinLength=minLF I.MaxLength=maxL local y=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",SRL)y.Attachment0=SRL.Attachment y.Attachment1=BRL.Attachment y.Damping=reardamping y.FreeLength=rfl y.Stiffness=rearstiffness y.Visible=false y.LimitsEnabled=true y.MinLength=minLR y.MaxLength=maxL local p=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",SRR)p.Attachment0=SRR.Attachment p.Attachment1=BRR.Attachment p.Damping=reardamping p.FreeLength=rfl p.Stiffness=rearstiffness p.Visible=false p.LimitsEnabled=true p.MinLength=minLR p.MaxLength=maxL local x=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",SSL)x.Attachment0=SSL.Attachment x.Attachment1=SSML.Attachment x.ActuatorType="\077\111\116\111\114"x.LimitsEnabled=true x.LowerAngle=SteeringAngle*-1 x.UpperAngle=SteeringAngle x.MotorMaxTorque=200000 local X=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",SSR)X.Attachment0=SSR.Attachment X.Attachment1=SSMR.Attachment X.ActuatorType="\077\111\116\111\114"X.LimitsEnabled=true X.LowerAngle=SteeringAngle*-1 X.UpperAngle=SteeringAngle X.MotorMaxTorque=200000 local B=Instance.new("\066\111\100\121\071\121\114\111")B.Parent=xSSL B.Name="\071\121\114\111"B.D=180 B.MaxTorque=Vector3.new(900,0,900)B.P=300 local m=Instance.new("\066\111\100\121\071\121\114\111")m.Parent=xSSR m.Name="\071\121\114\111"m.D=180 m.MaxTorque=Vector3.new(900,0,900)m.P=300 local l=Instance.new("\066\111\100\121\071\121\114\111",script.Parent)l.Name="\070\108\105\112"l.D=1000 l.MaxTorque=Vector3.new(0,0,0)l.P=30000
--Springs--

frontstiffness = 1290 * StiffnessFront / 2
frontdamping = 40 * StiffnessFront

rearstiffness = 1290 * StiffnessRear / 2
reardamping = 40 * StiffnessRear

minLF = SuspensionTravelF
minLR = SuspensionTravelR
maxL = ((RideHeightRear + RideHeightFront) / 2) + 4

ffl = RideHeightFront + 2
rfl = RideHeightRear + 2

local springFL = Instance.new("SpringConstraint", SFL)
springFL.Attachment0 = SFL.Attachment
springFL.Attachment1 = SSML.Attachment
springFL.Damping = frontdamping
springFL.FreeLength = ffl
springFL.Stiffness = frontstiffness
springFL.Visible = false
springFL.LimitsEnabled = true
springFL.MinLength = minLF
springFL.MaxLength = maxL

local springFR = Instance.new("SpringConstraint", SFR)
springFR.Attachment0 = SFR.Attachment
springFR.Attachment1 = SSMR.Attachment
springFR.Damping = frontdamping
springFR.FreeLength = ffl
springFR.Stiffness = frontstiffness
springFR.Visible = false
springFR.LimitsEnabled = true
springFR.MinLength = minLF
springFR.MaxLength = maxL

local springRL = Instance.new("SpringConstraint", SRL)
springRL.Attachment0 = SRL.Attachment
springRL.Attachment1 = BRL.Attachment
springRL.Damping = reardamping
springRL.FreeLength = rfl
springRL.Stiffness = rearstiffness
springRL.Visible = false
springRL.LimitsEnabled = true
springRL.MinLength = minLR
springRL.MaxLength = maxL

local springRR = Instance.new("SpringConstraint", SRR)
springRR.Attachment0 = SRR.Attachment
springRR.Attachment1 = BRR.Attachment
springRR.Damping = reardamping
springRR.FreeLength = rfl
springRR.Stiffness = rearstiffness
springRR.Visible = false
springRR.LimitsEnabled = true
springRR.MinLength = minLR
springRR.MaxLength = maxL

local XSteeringL = Instance.new("HingeConstraint", SSL)
XSteeringL.Attachment0 = SSL.Attachment
XSteeringL.Attachment1 = SSML.Attachment
XSteeringL.ActuatorType = "Motor"
XSteeringL.LimitsEnabled = true
XSteeringL.LowerAngle = SteeringAngle * -1
XSteeringL.UpperAngle = SteeringAngle
XSteeringL.MotorMaxTorque = 200000

local XSteeringR = Instance.new("HingeConstraint", SSR)
XSteeringR.Attachment0 = SSR.Attachment
XSteeringR.Attachment1 = SSMR.Attachment
XSteeringR.ActuatorType = "Motor"
XSteeringR.LimitsEnabled = true
XSteeringR.LowerAngle = SteeringAngle * -1
XSteeringR.UpperAngle = SteeringAngle
XSteeringR.MotorMaxTorque = 200000

local BGL = Instance.new("BodyGyro")
BGL.Parent = xSSL
BGL.Name = "Gyro"
BGL.D = 180
BGL.MaxTorque = Vector3.new(900, 0, 900)
BGL.P = 300

local BGR = Instance.new("BodyGyro")
BGR.Parent = xSSR
BGR.Name = "Gyro"
BGR.D = 180
BGR.MaxTorque = Vector3.new(900, 0, 900)
BGR.P = 300

local flip = Instance.new("BodyGyro", script.Parent)
flip.Name = "Flip"
flip.D = 1000
flip.MaxTorque = Vector3.new(0, 0, 0)
flip.P = 30000
