Making a GUI appear just over a ProximityPrompt

Hey! I’m quite confused on how to make a GUI just like the image below to display stock of items where it appears right above the ProximityPrompt on all devices. Is there a way I’d attach it to the ProximityPrompt or would I have to EXACTLY position it right? Even then, would it show the same way on all devices? I’ve looked through the DevForum and haven’t found any answers on this. Any help would be appreciated! :thumbsup:

Additionally, if I’ve posted this in the wrong category, just let me know. I’m unsure if this in the right category or not. Thanks! :heart:

image

1 Like

You could set ProximityPrompt.Style to Custom and make your own from scratch. If you want the exact look of the default style, you can copy the gui from PlayerGui.ProximityPrompts. AFAIK you’ll have to manually insert the guis when ProximityPrompt.PromptShown is fired and clean it up on PromptHidden.

Alternatively you could find the corresponding prompt for the specific object at runtime by searching through PlayerGui.ProximityPrompts, and then modify the gui on the fly.

2 Likes