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

How do you move a model with moveTo while ignoring collision?

I have a boat I'm trying to move automatically while people are sitting in seats, but the boat moves extra far up above all the seats just because they're colliding. Is there some sort of way to move a model with moveTo while ignoring the fact that the boat is touching the seats just so it can move straight forward without a change of the Y position?

If there is some other fancy way to move the model then let me know.

2 comments

0

:GetPrimaryPartCFrame and :SetPrimaryPartCFrame

0

When setting the Vector3 of a part it will move above obstacles when set. Setting the Cframe will ignore obstacles.

1 answer

It's better to use SetPrimaryPartCFrame if you dont want it to change the Y.

2 comments

0

This has nothing to do with using SetPrimaryPartCFrame ?

0

Yes it does, the difference between MoveTo and SetPrimaryPartCFrame is that MoveTo goes over everything in its path and SPPC doesn't

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