Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
3

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

Asked by 8 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 5640 — 8y
0
^ CFrame doesnt break welds, so it should work fine RubenKan 3615 — 8y
0
Use CFrame instead of Vector3. iiEpixnesss 0 — 8y

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 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 728 — 7y
Ad

Answer this question