for _,v in pairs(Drive) do
	--Apply Wheel Density
	if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
		if v:IsA("BasePart") then
			if v.CustomPhysicalProperties == nil then v.CustomPhysicalProperties = PhysicalProperties.new(v.Material) end
			v.CustomPhysicalProperties = PhysicalProperties.new(
				fDensity,
				v.CustomPhysicalProperties.Friction,
				v.CustomPhysicalProperties.Elasticity,
				v.CustomPhysicalProperties.FrictionWeight,
				v.CustomPhysicalProperties.ElasticityWeight

Please help, i'm bad at scripting

2 comments

1

What is Drive?

0

show us the entire script ._.