How do i get this rotation?

robloxapp-20240328-2101572.wmv (4.5 MB)

1 Like

You cast a ray and then the ray will return something called a surface normal, a surface normal is a vector that points perpendiulcar to the surface at a specific point

You can use the surface normal to orient your object by using CFrame.LookAt, and passing in where the ray hit for the first argument and the raycast normal for the second

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.