I was wondering how I would create Motor6Ds with scripts for rotating item previews. The problem is that when unanchoring the parts, they all go to the centre of Part0 which is the bounding box, and I am not sure how to fix that.
Original thickness (target thickness, it’s actually 2 parts)
for i,v in pairs(workspace.Wall:GetChildren()) do
if v:IsA('BasePart') then
if v.Name ~= 'BoundingBox' then
local M6D = Instance.new('Motor6D', v.Parent.BoundingBox)
M6D.Part0 = v.Parent.BoundingBox
M6D.Part1 = v
v.Anchored = false
end
end
end