How do I scale a rigidbody with code?

Hi @jus.co_ding_me_23,

You can’t really scale a rigidbody since as soon as it’s created and added in the physics simulation the shape can’t change.

What you can do is update your collision component to get a new shape and then re-add the body in the sim.

Check this thread, it contains an example on how to change the height of the player controller (a rigidbody) to enable/disable crouching: