Character Controller Going through Moving Objects

I am using the first person controller. I have an obstacle in my game that is like a trash compactor that’s suppose to squash the player. Although if the player jumps into it, they get propelled ontop of it. I have a video that demonstrates the problem.

How can I fix the problem? Thanks.

Is your character using transform movement or physics movement?

transform movement I think. Its not the physics character controller.