Assuming the script you’ve shown is inside the player character: Get Player Character → Cast To your character, set Carrot Reference.
Thank you! How would I then be able to use this variable in the other blueprint?
Avoid pulling data out of widgets, it leads to some bad design choices in the long run.
A neat way to do it all is via a dispatcher that you register once when the game starts. And every time a button is pressed, a reference is set automatically. For this, however, we’d need to know, where, when and how the widget gets created. Tbh, there is generally no reason to even spawn the carrot in the widget… I’d dispatch a click and spawn it where it needs to be referenced.