Coin pickup counter with UE5 and C++

You are right! I just copied and pasted what you told me.
But I still have error

AddCoinByValue is inaccessible.