So im confused. how does Inverse work in this? wouldn't inverse make the position completely off?
local prev
for i, parts in pairs(script.Parent:GetChildren()) do
if parts.className == "Part" then
if (prev ~= nil) then
local weld = Instance.new("Weld")
weld.Part0 = prev
weld.Part1 = parts
print(weld.C0)
weld.C0 = prev.CFrame:inverse()
print(weld.C0)
weld.C1 = parts.CFrame:inverse()
weld.Parent = prev
parts.Anchored = false
end
prev = parts
end
end
wait(3)

3 comments
inverse is simply flipping the cframe. Its the opposite of the cframe
ik but why is this relevant here?
I'm not sure about this one, because normally inverse is used to convert things to local space.