Coin pickup counter with UE5 and C++

yes, you should be more careful when copy pasting a code. Inaccessible mean the function you want to call, is not set to public so other class can’t call it. To make it accessible, just go to your ACoinPickupTutorialCharacter.h, and look for that function (The addcoin one), move the function to the public section of that class.