How to make a part rotate while its moving uphill

I am trying to make a tower defence game and thought that making an enemy moving up a hill would be easy - turns out not.

I am trying to recreate a post made by some smart man called @Atrazine, however I cannot manage to make the enemy move uphill properly and smoothly, this is what I have done:

It turns and moves fine, it just doesn’t turn when i make it go uphill and it kind of looks like its going into the floor aswell, which I’m not sure if its just my map building skills

The place:
Testing.rbxl (66.7 KB)

3 Likes

I may be misunderstanding what you’re asking but it seems to turn just fine, are you asking why it doesn’t turn smoothly? Then you’d just lerp it. I’m not too sure what you’re trying to achieve. However the part going under the build a little bit, you’d just apply a slight offset since it seems to be constant.

2 Likes

If I add an offset it looks weird when it gets to the top. EDIT: fixed the floor issue and will try lerping the rotation soon

2 Likes