Doodle Jump Breakable Platform

There is a platform in doodle jump where you can jump on it but it gets destroyed instantly. How can you know if the player hit the object without colliders? Colliders will make you stand on the platform. I tried it with the layer matrix but then the collision detection wont work. So whats the best way to get the platform to be “not jumpable” but still “checkable”

im new to coding still, but try to make 2 scripts,one that forces you to jump when you collide with it, and one the destroys it on collision

There’s a flag on colliders called OnTrigger. They won’t make the rigidbody stop, and you can get callbacks on collision with it.