How to make a frame the same size as a part?

Trying to figure out how to make a frame the same size as a part someone told me to do this “get position of each visible corner of part as screen pos then size based on that” however not entirely sure how to do that lol so coming here ot see if I can get some help.

here’s a video for what the frame is used for it’s for visualizing hitboxes

The easiest way I can think of doing this is to put a surface gui into the hitbox and set it’s size to {1,0} {1, 0} and then stick a frame in it with size {1,0} {1,0} and visualize that frame.

Honestly didn’t even think about using a surface gui this made things much easier lol