Say I have a part (let’s call it part1) that I want to always be 4 studs to the right and 0.2 studs behind of another part (let’s call it part2). How would I get the correct location relative to part2?
part1.Position = part2.Position + Vector3.new(4, 0, -0.2)
1 Like
Part2 can rotate, meaning that the right and back relative to it won’t always be the same in world coordinates
local offsetCFrame = CFrame.new(4, 0, -0.2)
part1.CFrame = part2.CFrame:ToWorldSpace(offsetCFrame)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.