Hey, I can completely understand what you mean but I still don’t understand how I can write this code? I basically want it so that when the player died, the score is added to the amount of coins they have, but the current problem is that when the died variable = 1, it is constantly adding the score to the coins variable. How else would I write this?
Thank you so much for your help!
If you are wondering why I am wanting to know how to do this it is because I am currently doing a lua assignment at college and need to make a game. I can email you my main.lua file if you wish. Thank you again!