Can't change variable

Hello,
I Want to create a simply gold system, but the gold variable doesen’t change
Can anyone help?

PS: Sorry for my bad English

Hello,

Is your ActorBeginOverlap event firing when you overlap the coin? Is the coin being destroyed on overlap? If not, then the issue can be that the ActorBeginOverlap event is never firing.

Also, it looks like you’re storing your Gold variable inside of the Gold Actor, which is being destroyed. When the actor is destroyed, the variable is also destroyed, which means you’ll need to keep track of the Gold variable inside another blueprint such as the player controller, character, game mode, etc. This is most likely the issue.

Thanks for the Answer, But I found the Problem already.