Spawn object alternative

Hello , this is Mahsa

I have game that player attack a tree , and what i want is when i hit the tree first time doesn’t spawn log and next time i hit the tree spawn a log