How to enable CustomPhysicalProperties to a part

1:
I’m trying to make a part that changes and enables the CustomPhysicalProperties of a part.

2:
I can’t enable the CustomPhysicalProperties.

3:
I tried to look at the creator hub, but I can’t find how to enable it there. I also used the AI.

This is the script I used:

script.Parent.Touched:Connect(function(hit)
	if hit.CustomPhysicalProperties then
		--hit.CustomPhysicalProperties.Enabled = true
		hit.CustomPhysicalProperties = PhysicalProperties.new(hit.CurrentPhysicalProperties.Density, 2, hit.CurrentPhysicalProperties.Elasticity, 100, hit.CurrentPhysicalProperties.ElasticityWeight)
	end
end)

I looked at that, it didn’t work.

right, okay, is the part anchored? and what are you trying to achieve with the part hit?

I ran the game and then I unanchored it.

Okay, this line here is incorrect; that’s because this is nil, so it can’t set your customphysicalproperties.
I don’t exactly know what you’re trying to achieve, more information would be appreciated.

	if hit.CustomPhysicalProperties then

What is a variable “CurrentPhysicalProperties”?
I suppose you misspeled it and want it to be "CustomPhysicalProperties " instead

script.Parent.Touched:Connect(function(hit)
	if hit:IsA("BasePart") then
		hit.CustomPhysicalProperties = 
			PhysicalProperties.new(
				hit.CustomPhysicalProperties.Density, 
				2,
				hit.CurrentPhysicalProperties.Elasticity,
				100,
				hit.CurrentPhysicalProperties.ElasticityWeight
			)
	end
end)