Answered by
5 years ago Edited 5 years ago
To keep all parts of a model "glued" together, you need to use Weld objects. Here's a simple welding script that you can place within your model. Make sure to assign a PrimaryPart for the model inside of the model's Properties (this can be any part within the model), Keep the entire model anchored (the script will unanchor it for you, if it starts unanchored it will break) and put this script within the model:
01 | local model = script.Parent |
02 | local primary = model.PrimaryPart |
03 | local modelParts = model:GetDescendants() |
05 | for i = 1 , #modelParts do |
06 | local part = modelParts [ i ] |
07 | if part:IsA( "BasePart" ) and part ~ = primary then |
08 | local weld = Instance.new( "Weld" , primary) |
11 | weld.C 0 = primary.CFrame:Inverse() |
12 | weld.C 1 = part.CFrame:Inverse() |
16 | primary.Anchored = false |
If you have any questions or problems with this answer, let me know. I'd be happy to clarify or fix it.
Hope this helps!