How do I make a model fall without it being destroyed in pieces

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):


now it "fell"

I tried to use welds like this:

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).

Thanks!

1 Like

You can use WeldConstraints. It can weld stuff correctly without scripts.

2 Likes

Use WeldConstraint instead of Welds. They are simpler.

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
2 Likes

Nice, I’ll go try that out!
Thanks for your answer!

1 Like

You’re welcome!! :smiley:

Why is there a character limit

1 Like

Oh well, thanks, seems like that this fixed lol, thanks! I’ll just make it so a few of the parts will not be welded together !

Thanks for your help!

1 Like

Why is there a character limit

because they do not want huge replies I guess because it would be too much large strings to store lol

1 Like

I meant there is a limit that doesn’t let you write 30 or less characters.

1 Like

Ahh yeah I see :sweat_smile:
it’s to prevent “useless” answers, like “ok”

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.