How to make something appear when a player gets close enough

I am trying to make a custom Proximity Prompt-esc thing for a door, but its a surface gui instead of a billboard one. I don’t know how to tell.

1 Like

Why are you making a custom proximity prompt? You can change the appearance of the built in one.

Also, what do you mean by

Its a surface gui instead of a billboard one. I don’t know how to tell

You could check the magnitude between the player and that part, if it’s within a certain radius, then do stuff.

I’m using a surface gui on the door with the keybind instead of a billboard gui.

I attempted to do that in a local script but the code wasn’t running.

Do you mean a custom billboard interact thing before ProximityPrompt were even a thing?

Sort of. It’s on a surface gui as I don’t like billboards.

Like this:
image

Ohhhhhh. You can use a raycast or do a magnitude like @Valkyrop said.

Edit:Just making a system for MrPieFace10 to help out.

1 Like

Heres my bad system for your door system :

I mean, why do you not want to use billboard guis? You can makr the billboard gui lower to be at the center of the door by the way

Is the script local or server? also, is it located in the part or in the gui or somewhere else?

Depending on how many of these you have, constantly checking magnitude is not the best idea unless you have it in a centralised script

Its a server script and its parented to ServerScriptService.

If I created a centralized script, how would I go about refrening all the doors?

You could use tags, so collection service together with this tag editor plugin.