Contraint Removal Tool Help/Fix?

I’ve been trying to get this tool fixed, the author who posted it hasn’t been around for like, 700 days. And this appears to be the only constraint removal tool.

[lua]
TOOL.Category = “Construction”
TOOL.Name = “Constraint Remover”
TOOL.Command = nil
TOOL.ConfigName = “” //Setting this means that you do not have to create external configuration files to define the layout of the tool config-hud

local ConstraintBreaker = {}

ConstraintBreaker.Constraints = {
{“AdvBallsocket”, “Advanced Ballsockets”},
{“Axis”, “Axis”},
{“Ballsocket”, “Ballsockets (Including EZ)”},
{“Elastic”, “Elastics”},
{“Hydraulic”, “Hydraulics”},
{“Keepupright”, “Keep Uprights”},
{“Motor”, “Motors”},
{“Muscle”, “Muscles”},
{“Nail”, “Nails”},
{“Pulley”, “Pullies”},
{“Rope”, “Ropes”},
{“Slider”, “Sliders”},
{“Weld”, “Welds”},
{“Winch”, “Winches”}
}

if (CLIENT) then
language.Add(“Tool_constraintbreakerm_name”, “Constraint Remover Tool”)
language.Add(“Tool_constraintbreakerm_desc”, “Makes all selected constraints remove from an entity.”)
language.Add(“Tool_constraintbreakerm_0”, “Left click on an entity to remove all selected constraints.”)
end

// ConVars

for K, V in pairs(ConstraintBreaker.Constraints) do

local Type = V[1]

TOOL.ClientConVar[ ""..Type ] = 0

end

// Functions

function TOOL:LeftClick( trace )

if (!trace.Entity:IsValid() || trace.Entity:IsPlayer() ) then return false end
if ( CLIENT ) then return true end

local thisbetterwork = {}

for K, V in pairs(ConstraintBreaker.Constraints) do
	local Type = V[1]
	local ID = V[2]

	thisbetterwork = self:GetClientNumber( Type )
	
	if (thisbetterwork != 0) then
		
		constraint.RemoveConstraints( trace.Entity, Type )

		Msg( "Removed "..tostring(ID)..".

" )

	end

end

return 1

end

// Build Tool Panel

function TOOL.BuildCPanel( panel )

panel:AddControl("Header", { Text = "Rope Breaker", Description = "Breaks all rope constraints on an entity." })

for K, V in pairs(ConstraintBreaker.Constraints) do
	local Type = V[1]
	local ID   = V[2]
	
	panel:AddControl("CheckBox", {Label = "-"..ID, Command = "constraint.RemoveConstraints"..Type })
end

end
[/lua]

When I try to use it to remove on of the listed constraints in-game, it spits out errors like:



Unknown command: constraint.RemoveConstraintsWeld

I’ve tried actually changing the command it’s running, but I can’t seem to make this work.

Thanks in advance,
wtr