Making a custom interaction system

Hello! Right now I want to develop a custom interaction system similar to proximity prompts but I just wanna have more control over visuals and order ext.

I was wondering what is the best way to check the distance of the player to the closest interactable efficiently. I want the possibility of having many of these interactable as I want without any performance problems.

I was thinking of using Region3 and constantly check for any interactable using a custom collision group on the client but I am not sure if this would be the most efficient method. Any suggestions would be greatly appreciated : )

2 Likes

You could use Bilboard gui for this and it alredy have distance so you dont need to script it

and basicly it work like Proximity prompts and nametags above players Heads in roblox.

I want to place my interaction UI straight on the players screen rather than having it be on the world. Thanks for the help either way though

1 Like

Then cameras have

and I would use touch event to show up gui so it wont need a loop

Alright I think I’ll do something like this, thanks for the help