How to make a rts unit move system?

Hello. I am attempting to make a unit move system and every thing is going fine until i wonder how to actually move the part. I want it to be like Rise Of Nations where you select a movement, then give it a path and it follows the path, and rotates accordingly to where you clicked and moves accordingly as well.

PathfindingService is probably what you’re looking for.

You give it a start point and a goal and it will give you waypoints of which you can move from waypoint to waypoint, of course this is a very rough explanation and you should probably read the documentation or watch a tutorial (if you don’t know how to use it).

It would go to the exact mouse position given correct? Or would it be relative

I’m sorry but i don’t know you mean exactly, it would go to whatever you set the goal location to, which can be the mouse location if you want to, it wouldn’t be relative to anything.

If this is not what you’re looking for then giving an example on what you’re trying to achieve would be very helpful.

Oh okay, you answered my question even if you didn’t understand it. Much appericated!

1 Like

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