Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I change CustomPhysicalProperties in a part?

Asked by 5 years ago

I've tried before, and it didn't work.

script.Parent.CustomPhysicalProperties.Friction = 0

I need help on how to do this properly. Output:

09:28:10.841 - PhysicalProperties.Friction cannot be assigned to

1 answer

Log in to vote
0
Answered by 5 years ago

You assign PhysicalProperties with the constructor PhysicalProperties.new().

script.Parent.CustomPhysicalProperties = PhysicalProperties.new(
    1, 
    1, 
    1
)

Learn more here

Ad

Answer this question