How to access Player Blueprint from another?

Hello all!
I have an EndGameUI Widget Blueprint, and I want it so that when it shows up, player movement is disabled. What I’ve done:

  • I have a SetNoMove function in my Player Blueprint.
  • I have created a Player variable (type Player, i.e. my Player Blueprint) in my EndGameUI Widget Blueprint
  • I used GetPlayer to be able to call SetNoMove from within EndGameUI’s EventConstruct
    Untitled

Unfortunately, I am still able to control movement when the UI shows, and I get an error in my log “Blueprint Runtime Error: “Accessed None trying to read property Player”. Blueprint: EndGameUI Function: Execute Ubergraph End Game UI Graph: EventGraph Node: Set No Move”

Thank you for your help! I got it working!
For reference, my Player Pawn was a Player, but not a Player Character (I’m still too new to appreciate the difference), so it worked without needing to Set the Player: