local f={}if _Tune.Config=="\070\087\068"or _Tune.Config=="\065\087\068"then for S,m in pairs(car.Wheels:GetChildren())do if m.Name=="\070\076"or m.Name=="\070\082"or m.Name=="\070"then table.insert(f,m)end end end if _Tune.Config=="\082\087\068"or _Tune.Config=="\065\087\068"then for S,m in pairs(car.Wheels:GetChildren())do if m.Name=="\082\076"or m.Name=="\082\082"or m.Name=="\082"then table.insert(f,m)end end end local S=0 for f,m in pairs(f)do if m.Size.x>S then S=m.Size.x end end for f,S in pairs(car.Wheels:GetChildren())do if math.abs(S["\035\065\086"].maxTorque.Magnitude-PBrakeForce)<1 then _PBrake=true end end
--[[Drivetrain Initialize]]

local Drive = {}

--Power Front Wheels
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

--Power Rear Wheels
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

--Determine Wheel Size
local wDia = 0
for i, v in pairs(Drive) do
	if v.Size.x > wDia then
		wDia = v.Size.x
	end
end

--Pre-Toggled PBrake
for i, v in pairs(car.Wheels:GetChildren()) do
	if math.abs(v["#AV"].maxTorque.Magnitude - PBrakeForce) < 1 then
		_PBrake = true
	end
end
