I have a part in workspace that is positioned inside of another part (we’ll call them part1 and part2), so I have a model inside replicatedstorage and a script where when you do a specific thing in the game, it should do the MoveTo function to move the model to part1’s position, but for some reason when I do that, the model is flying up in the sky instead, why is that happening? Could it be the stuff around it due to cancollide properties or something?
2 Likes
are you parenting the model to workspace before trying to move it to the part?
if you are parenting it and it still has this issue, try Model:SetPrimaryPartCFrame(part.CFrame)
2 Likes
Yes I am already parenting it to workspace, and I tried your suggestion & it worked, thank you so much!
1 Like
I suggest using Model:PivotTo(CFrame)
rather than Model:SetPrimaryPartCFrame(CFrame)
as SetPrimaryPartCFrame
is deprecated.
They should both work the same, though PivotTo
doesn’t require a primary part to be set.
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.