Lets say I have a 3 by 3 by 3 block and I know the positions and lookvectors of that block. Is there a way I can find the center of where the front or back surfaces are on that part? So move from the parts position in the lookvector half the parts size. How do I do that?
You can get the
LookVector of the part, then multiply the
LookVector by half of the Part’s
Size on the
Z axis to get the center of front of the part:
local Center = Part.CFrame.LookVector * (Part.Size.Z / 2)