Should I still use :BreakJoints() in this script?

I have a script where I’m using :BreakJoints(), but I don’t know if I should still use it.

I’m quite new to scripting, so I am not completely sure if I should still use it considering it’s deprecated. I also don’t know any other methods I could use in the first place.

local descendants = workspace:GetDescendants()  

for _, descendant in pairs(descendants) do
	if descendant:IsA("BasePart", "MeshPart") then
		descendant:BreakJoints()
		descendant.Anchored = false
		end
	end


What are you doing in this script?

I’m getting all the descendants of the workspace then breaking all joints and unanchoring them.

First of all anchored parts wouldnt move when welded so its useless to breakjoints

You’re being so confusing.

Wouldn’t that mean you should use :BreakJoints()?

And what’s second of all, exactly?

your right breakjoints would break all the welds but arent they already unanchored the parts

Why are you helping me with this topic if you don’t even understand or are sure about it?

I’m like 95% sure :BreakJoints() doesn’t unanchor parts.

BreakJoints being deprecated was because Roblox deprecated legacy joints, it still works as expected because so much depends on it.

It only destroys all connected Weld based objects, doesn’t change if the object is anchored or not . Unsure if it targets constraints.

1 Like

no i guess my statement isnt that clear as im not really good in writing english