How would I make a ProximityPrompt from scratch?

Hello! So I am wanting to make a Custom ProximityPrompt but unfortunately the design I want, I am unable to make with the standard Custom prompts. So I decided to make one from scratch but cannot get it to work.

I am assuming I need to use Magnitude and I tried to do so but can not get it to work. It’s kind of hard to explain but do you guys have any ideas of how I would go about doing this?

to get the distance of the player and the custom proximity prompt is

(Part.Position - Character.HumanoidRootPart.Position).Magnitude

If I am understanding you, here is a custom ProximityPrompt tutorial:

I have that part down but, like for example I want it so when they are in range it like activates a UserInputService.InputBegan event and then when they are no longer in range it deactivates it. I tried using Connections but even after disconnecting it it still fired.

If this video is doing this the way I think it is this might help. I was gonna use a script made by @BitwiseAndrea but the unfortunate thing about that is I can’t add anything to the UI only change it. But after a quick look at the video you just shared I think that might allow me to add stuff? I’ll have to look into that. Thanks!