Im making Motor6D Welder Plugin (I know some exists) but when it came to rotation i struggled to make it
- Screenshots
- Before Welding (black part is primary (whats welded to ) )
- After (primary part got inverted position)
- Weld properties
(Last working with rotating code)
local Primary
for i,v in pairs(game.Selection:Get()) do
if i == 1 then
Primary = v
end
if v ~= Primary then
local Weld = Instance.new("Motor6D",Primary)
Weld.Name = v.Name
Weld.C1 = v.CFrame.Rotation*CFrame.new(Primary.Position-v.Position)
Weld.Part0 = Primary
Weld.Part1 = v
end
end