I am a beginner in the program (^_^)
I want to help
Why does the player not execute the code??
When the collision
Without knowing more about what’s going on in the scene I can’t really venture much more than a guess.
One thing you might check is if whatever surface the player is on is a “platform object”