Cannot set CustomPhysicalProperties

I’ve seen topics on the devforum saying that if you try to set new physical properties on a part CustomPhysicalProperties are set to true. But even with this simple script:

local density = 1
local friction = 0.1
local friction_weight = 100
local elasticity = 1
local physproperties = PhysicalProperties.new(density,friction,elasticity,friction_weight)
script.Parent.CustomPhysicalProperties = physproperties

the properties do not change on the part. The part stays the same.
What am i doing wrong? How can i enable CustomPhysicalProperties and set the properties above?

Have you tried just directly accessing the part’s properties

part.density = 1
part.friction = 0.1
part.friction_weight = 100
part.elasticity = 1

You forgot ElasticityWeight as the last argument in PhysicalProperties.new

setting them directly are deprecated

still doesn’t work though

ldkfjlaksjflaksjflakd;sjflda;kjs

Oh I didn’t know that, thanks for letting me know. What a weird thing to do though, going through a lot more trouble just to set the property.

weird, it ​​​worked for ​​me :<