Constraints disable when created

i have a script that creates colliders for a ragdoll system:

function makecollider(part:Part)
	local col = Instance.new("Part")
	local size = math.min(col.Size.X, col.Size.Y, col.Size.Z) /2
	col.Size = Vector3.new(size,size,size)
	col.CFrame = part.CFrame
	col.Transparency = 0
	col.Color = Color3.new(1)
	col.CanCollide = true
	col.CanTouch = false
	col.CanQuery = false
	col.Massless = true
	local weld = Instance.new("WeldConstraint")
	weld.Part0 = part
	weld.Part1= col
	weld.Parent = col
	local nocol = Instance.new("NoCollisionConstraint")
	nocol.Part0 = part
	nocol.Part1=col
	nocol.Parent = part
	col.Name = "collider"..part.Name
	col.Parent = part
	print(weld.Active)
end

yet when i run the script, all of the constraints automatically disable. they are where they are meant to be, they are active, but they are not enabled, and even when i manually enable them at the end of the script they still are disabled when they spawn in
ive looked around devforum but i havent found anyone with the same error

1 Like

nevermind, i just had breakjointsondeath enabled, make sure to disable this if you have the same problem

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