Hiya. I am quite new to scripting on roblox, and I am wondering how do they make the character follow the cursor. I would not like to have the code ready. I would just like to know the basics on how this works and what I can do to accomplish this. Thank you!

4 comments

0

Well if you look at the mouse object on the wiki there are target and hit properties which can both be used to identify a position, although target takes a tad longer and is used for moving to an object in this use case. Then you can use the humanoid methods move or moveto.

0

Lua is not an acronym,,,,,,,,,

0

Are you talking Click to Move? If you right click on a surface it finds a path then follows that.

0

Sorry. I should have been more clear. I meant that wherever the cursor is located on the screen, the character will face that direction, including up or down.