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

How do i prevent a model from moving on top of the roof?

Then i use :MoveTo() to move a model inside a building, it just appears on the roof. Why? Is there any way to prevent it from doing that?

1 answer

✓ Accepted answer

MoveTo() moves object by the position. Moving stuff by the position automatically puts them on the top if it detects any collision. To force the position, you need to use a function that works with CFrame and not Vector3.

2 comments

0

that function is SetPrimaryPartCFrame

0

Thanks for the help!

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