local L=0 function getMass(C)for C,t in pairs(C:GetChildren())do if t:IsA("\066\097\115\101\080\097\114\116")then L=L+t:GetMass()end getMass(t)end end getMass(car)if L<_Tune.Weight*weightScaling then local C=Vector3.new()local t=Vector3.new()local l=0 local g=0 for L,I in pairs(Drive)do if I.Name=="\070\076"or I.Name=="\070\082"or I.Name=="\070"then C=C+I.CFrame.p l=l+1 else t=t+I.CFrame.p g=g+1 end end C=C/l t=t/g local I=t:Lerp(C,_Tune.WeightDist/100)local R=Instance.new("\080\097\114\116",car.Body)R.Name="\035\087\101\105\103\104\116"R.Anchored=true R.CanCollide=false R.BrickColor=BrickColor.new("\082\101\097\108\108\121 \098\108\097\099\107")R.TopSurface=Enum.SurfaceType.Smooth R.BottomSurface=Enum.SurfaceType.Smooth if _Tune.WBVisible then R.Transparency=.75 else R.Transparency=1 end R.Size=Vector3.new(_Tune.WeightBSize[1],_Tune.WeightBSize[2],_Tune.WeightBSize[3])R.CustomPhysicalProperties=PhysicalProperties.new((_Tune.Weight*weightScaling-L)/((R.Size.x*R.Size.y)*R.Size.z),0,0,0,0)R.CFrame=((car.DriveSeat.CFrame-car.DriveSeat.Position)+I)*CFrame.new(0,_Tune.CGHeight,0)else end local C=Instance.new("\066\111\100\121\071\121\114\111",car.DriveSeat)C.Name="\070\108\105\112"C.D=0 C.MaxTorque=Vector3.new(0,0,0)C.P=0
	
	--Determine Current Mass
	local mass=0
	
	function getMass(p)
		for i,v in pairs(p:GetChildren())do
			if v:IsA("BasePart") then
				mass=mass+v:GetMass()
			end
			getMass(v)
		end	
	end
	getMass(car)
	
	--Apply Vehicle Weight
	if mass<_Tune.Weight*weightScaling then
		--Calculate Weight Distribution
		local centerF = Vector3.new()
		local centerR = Vector3.new()
		local countF = 0
		local countR = 0
		
		for i,v in pairs(Drive) do
			if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
				centerF = centerF+v.CFrame.p
				countF = countF+1
			else
				centerR = centerR+v.CFrame.p
				countR = countR+1
			end
		end
		centerF = centerF/countF
		centerR = centerR/countR
		local center = centerR:Lerp(centerF, _Tune.WeightDist/100)  
		
		--Create Weight Brick
		local weightB = Instance.new("Part",car.Body)
		weightB.Name = "#Weight"
		weightB.Anchored = true
		weightB.CanCollide = false
		weightB.BrickColor = BrickColor.new("Really black")
		weightB.TopSurface = Enum.SurfaceType.Smooth
		weightB.BottomSurface = Enum.SurfaceType.Smooth
		if _Tune.WBVisible then
			weightB.Transparency = .75			
		else
			weightB.Transparency = 1			
		end
		weightB.Size = Vector3.new(_Tune.WeightBSize[1],_Tune.WeightBSize[2],_Tune.WeightBSize[3])
		weightB.CustomPhysicalProperties = PhysicalProperties.new(((_Tune.Weight*weightScaling)-mass)/(weightB.Size.x*weightB.Size.y*weightB.Size.z),0,0,0,0)
		weightB.CFrame=(car.DriveSeat.CFrame-car.DriveSeat.Position+center)*CFrame.new(0,_Tune.CGHeight,0)
	else
		--Existing Weight Is Too Massive
	end
	
	local flipG = Instance.new("BodyGyro",car.DriveSeat)
	flipG.Name = "Flip"
	flipG.D = 0
	flipG.MaxTorque = Vector3.new(0,0,0)
	flipG.P = 0


	