You’re attempting to create a proximity detection to allow nearby players to interact with, by any key chosen. In another topic, this has been answered(and there’s many more). Use the search function, unless you don’t have any applicable solution from there.
The title is misleading and should be properly renamed. I have not thought of any yet.