Why is :BreakJoints() deprecated and can I still use it?

Instead of using the simple :BreakJoints() method I have to use

local function BreakJoints(Part)
	for _, child in Part:GetJoints() do
		child.Enabled = false
		child:Destroy()
	end
end

Because it’s “deprecated”, even though it works perfectly fine! And if I use it I feel like it would be bad practice because it’s “deprecated”, but IDK

Help would be appreciated THX :pray:

2 Likes

it’s deprecated because it has only 1 specific use and not customizable, which is why roblox doesn’t encourage to use those types of ancient functions because engine evolved with more freedom to code. Answer is: yes, you can use it. But now, you know the reason why those functions are deprecated

1 Like

I think it will actually be more optimized since you do only 1 method call rather than a whole loop setup, lmao.

2 Likes

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