Ok so, I have a model, let’s call it FallingModel, I would like to make it fall but NOT being totally destroyed into pieces, what I mean is that I do not want to just unanchor each descendant of the model but make the model just fall like a big block except 1 or 2 parts but I’m going to do this on my own, I have enough experience to do so.
So what I call “Falling and destroyed into pieces” is this (first image is the FallingModel not falling and the 2nd is when it has fell but I unanchored all of its descendants):
for i, child in pairs(FallingShelf:GetChildren()) do
if child:IsA("BasePart") then
local weld = Instance.new("Weld")
weld.Part0 = shelf:FindFirstChild("Block")
weld.Part1 = child
weld.Parent = child
child.Anchored = false
end
end
I do not need a WHOLE script, I just need your help so I can know what I should use, I want code snippets instead showing what to use and how to do (for example).
for i, child in pairs(FallingShelf:GetChildren()) do
if child:IsA("BasePart") then
local weld = Instance.new("WeldConstraint")
weld.Part1 = shelf:FindFirstChild("Block")
weld.Part0 = child
weld.Parent = child
child.Anchored = false
end
end