Getting a part's face from Raycasting?

Getting the corners of a face is a bit more messy since you would need to know which Axis to use maths on, i’m lazy so i don’t know any easy way but i would just code 6 different axis calculations to get the corner of any face.

this is the image i always refer to whenever i need to get the corners of a basepart.

https://images-ext-2.discordapp.net/external/2GsFJHd-N6zdLu0BdOWjj4B7KZBhhIQ3TtO0vyE4JIo/%3Fwidth%3D1009%26height%3D676/https/media.discordapp.net/attachments/932657144191414303/941875705925476402/6b6f081efba33170e35eb80346909228.png

EDIT:
don’t exactly understand the intention of the OPs code, from what it seems you want it so the player can only climb the corners of an instance

3 Likes