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