How do I make a simple UI pop up when the player is within range

I have actually come across both of these tutorials before but I was more looking into how I’d rotate the specific component within a blueprint with just code, as opposed to manipulating materials and blueprint nodes.