Variable problem

i have a problem ( that was supposed to be fixed by now but the guy that was helping me didn’t answer since ) with an attack system ( simplified - at beginning of scene PlayerTurn = 1 which means that FightButton is on screen, player attacks so PlayeTurn = 0 which deletes FightButton, attack starts so AttackEnd = 0, attack ends so AttackEnd = 1 which sets PlayerTurn = 1 which creates FightButton again and repeat ), and the first attack works fine, but from the second attack the button is deleted but then immediately creates itself again, so i figured it’s a problem with the PlayerTurn variable ( it used to not work before AttackEnd was added ). so what do you think is it?

can you post a screenshot or upload your project?
deleting and creating the button is also not the best solution.