Rotating hoverboard based on incline

Hi,

Currently trying to make a overboard system for my upcoming game and I’m having a hard time trying to correct the board’s orientation to that of the incline of the part below it.

Current behaviour:

Desired behaviour:

If someone could send me a function to achieve this that would be great, here is a place demo of my current system and it’s code: (Currently server based for the sake of easy testing with draggers.)

HoverboardDemo.rbxl (41.7 KB)

3 Likes

This function should work with another similar hoverboard project post, to orientate the UpVector of the board with the normal of the incline.

1 Like