Hello there! I’m AlphaEpsilon290. I edited More like rescripted an open-source chassis to make it play more nicely with NPCs that use the VehicleSeat ThrottleFloat and SteerFloat properties. Unfortunately, I get this error when using this file (250.1 KB)
Expected BasePart got Model for WeldConstraint:Part1
13:08:28.721 - Stack Begin
13:08:28.722 - Script 'Workspace.Chevy Caprice.VehicleSeat.ChassisMainEdited', Line 33
13:08:28.724 - Stack End
I’m using this chassis. If anyone could help me, that would be appreciated.
EDIT
Here's the code I think is being problematic:for i, Descendant in pairs(Car:GetDescendants()) do
if Descendant:IsA("BasePart") then
if Descendant:FindFirstAncestor("Body") then
local Weld = Instance.new("WeldConstraint", Welds)
Weld.Part0 = Descendant
Weld.Part1 = CarEngine
end
if Descendant.Name == "Holder" and not Descendant:FindFirstAncestor("Body") then
local Weld = Instance.new("WeldConstraint", Welds)
Weld.Part0 = Descendant
Weld.Part1 = CarEngine
end
if Descendant:FindFirstAncestor("Wheel") then
local Wheel = Descendant:FindFirstAncestor("Wheel")
local Weld = Instance.new("WeldConstraint", Welds)
Weld.Part0 = Descendant
Weld.Part1 = Wheel
Wheel.Transparency = 1
Descendant.Anchored = false
end
end
end