Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
3

When I use :MoveTo() on a model it breaks all the welds. How do I fix this?

Asked by 3 years ago

Title says it all. I use :MoveTo() on a model, and all the welds break. How can I fix this?

0
Try SetPrimaryPartCFrame (See: http://wiki.roblox.com/index.php?title=API:Class/Model/SetPrimaryPartCFrame). I'm not certain this will solve your problem, but if it's just MoveTo alone, it should. ScriptGuider 5517 — 3y
0
^ CFrame doesnt break welds, so it should work fine RubenKan 3590 — 3y
0
Use CFrame instead of Vector3. iiEpixnesss 0 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Use a CFrame or anchor all the parts, call :MoveTo() then call :MakeJoints() and then unanchor the parts.

0
I accepted it, because I had no other answers that were given. If I had a model, and other models inside of that model this wouldn't work since Anchored isn't a property of models. I'd have to use a repeated for i,v in pairs() loop. AstrealDev 698 — 3y
Ad

Answer this question