i know that there is not an only one solution in coding stuff but i coded it this way and tested it so it works clearly.
- i add a bool variable named “isEffectable” that allows to play the effects.
- if the player crashes, it becomes “false”
- and it becomes “true” again with the loadscene method.
waiting for your comments. thanks <3