How to change CFrame.lookAt()

I’ve been working on a custom slope-sliding system for objects in my game.

We know that CFrame.lookAt(), makes the object’s lookVector face the desired point.

However, I don’t want the LookVector to face the desired point, I want the UpVector to instead.

How can I implement this?

2 Likes

Tried rotating the resulting CFrame 90 degrees in the X axis?

1 Like