CustomPhysicalProperties Breaks Custom Characters

I just noticed today that my game’s custom characters can’t collide with each other anymore if its parts use CustomPhysicalProperties, either one or both of the involved characters (sometimes fling out of control then) respawn.
Here are the properties I am using (which never had a problem a few days ago):

local properties = PhysicalProperties.new(“Plastic”)
part.CustomPhysicalProperties = PhysicalProperties.new(2, properties.Friction, 0,
properties.FrictionWeight, 90)

I have CustomPhysicalProperties enabled in all the parts in the character so that there is no elasticity. Disabling CustomPhysicalProperties isn’t an option because it makes the characters bounce when they jump.

With CustomPhysicalProperties enabled:
https://i.gyazo.com/5c8a032892417ddc456f65fa32a777d1.gif

With it disabled (and how it should look):
https://i.gyazo.com/89fb5d27874a51defdff20264a32ca2c.gif

I stripped down my game and made a repro place: Bomb Prototype - Roblox
but how do I attach a copy of it privately?? or can you guys get it without me attaching a copy

The only private way to attach it is to PM it to an admin. I might know the problem though – that behavior really looks like the problem you get when two parts’ frictionweight is 0. CustomProperties.new (material) might not be able to take a string and needs an enum, and because of that, your physical properties are zeroed out because there is no “Plastic” material (only Enum.Material.Plastic) Try printing out the frictionweight and also switch from a string to an enum.

1 Like

omg you’re right, thanks!! It was even working a few days ago too
I wish they at least had it print an error or warning message for giving an invalid argument

@Khanovich This sounds like a good idea.

He’s already aware and going to change it:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.