You should start learning basics, there’s a lot of beginers tutorial on youtube.
Can you post a screenshot of your hud blueprint and the blueprint where you have the function of collected gems if it’s not in the same blueprint? If you can get how many gems you’ve collected, you already have this variable somewhere.