Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can i move a model in relation to mouse?

ive tried :MoveTo(mouse.hit) i know it can be done im just not quite sure how to accomplish it.

2 answers

:MoveTo() requires a Vector3, but Mouse.Hit is a CFrame. To fix it (assuming it wasn't working) you should use :MoveTo(mouse.Hit.p) instead. You can also use :SetPrimaryPartCFrame(mouse.Hit) if you set the PrimaryPart of your model.

2 comments

0

I like this answer.

0

Thank you very much

I personally like to use NXTBoy's Model CFrame script which is available on the wiki, it allows you to CFrame an entire model instead of using :MoveTo() NXTBoy's Model CFrame

This discussion is preserved as it was. New answers, comments, and votes are closed.