Trying to weld a trailer to a van, any ideas?
Tried using Motor6Ds and WeldConstraints, but they don’t seem to work unless I’m doing something wrong.
local function weldTrailer(trailer,car)
for _,part in pairs(trailer:GetDescendants()) do
if part:IsA("BasePart") then
local weldConstraint = Instance.new("Motor6D")
part.Anchored = false
weldConstraint.Part0 = car.DriveSeat
weldConstraint.Part1 = part
weldConstraint.Parent = car.DriveSeat
end
end
end
this was the function I used