I have my part set to choose a random material and I can control what happens with each material(fabric makes you jump higher, i.e) but I wanted to set ice to be slippery using CustomPhysicalProperties. however, when I did, the output displayed this: PhysicalProperties.Friction cannot be assigned to
here is my code 'FloorPeice.CustomPhysicalProperties.Friction = -1 print(FloorPeice.CustomPhysicalProperties.Friction) FloorPeice.CustomPhysicalProperties.FrictionWeight = 100 print(FloorPeice.CustomPhysicalProperties.FrictionWeight)'
I've found it out! instead of
FloorPeice.CustomPhysicalProperties.Friction = -1 print(FloorPeice.CustomPhysicalProperties.Friction) FloorPeice.CustomPhysicalProperties.FrictionWeight = 100 print(FloorPeice.CustomPhysicalProperties.FrictionWeight)
its FloorPeice.CustomPhysicalProperties = PhysicalProperties.new(1.922, -1, 0.15, 100, 1) because part.CustomPhysicalProperties = PhysicalProperties.new(Density, Friction, Elasticity, FrictionWeight, ElasticityWeight)