Make part face raycast hit

I’m currently trying to find a way to make a part, face the direction that the instance of the raycast is facing. Can anyone help me out & possibly tell me how to accomplish this?

1 Like

Basically your going to want to fire your ray, and if it hits you find the position of the ray it hit, then you set the CFrame of the part you want to face it to it’s position and make it look at the position you desire, I know I explained it kind of bad but here’s how I would do the last part:
partYouWantToFace.CFrame = CFrame.new(partYouWantToFace.CFrame.Position,ray.Position)
If you have any questions, feel free to ask them, this might confusing because I’m really tired rn.

2 Likes

Thank you, appreciate it. (character limit)

2 Likes