This script you posted does not seem to be related to this. Perhaps you could follow along a tutorial:
This is a feature that has been explored quite extensively.
When it comes to the errors:
There can be multiple issues:
- no parent actor
- no component on parent actor
- wrong tag
Going by the script I do not understand what you’re trying to do. Normally, it would be the player / controller who would interact with a widget providing we’re inside an interactive area.
Here it seems that it is the area that is trying to fetch a widget? Even if you did manage that, what would be the next step.