Floating menu like Adopt me does

Hi,
I’ll like to create a floating menu like “Adopt me” has when clicking another user (see attached image). How is this done via some Roblox API like proximityAPI or Avatar Context Menu or is just done manually…

Thanks
menu-usuari_cropped

2 Likes

Use a BillboardGui. They go inside parts, and can be used to make floating menus.

2 Likes

Not the best way. What you want to do is create a 2D GUI and position it near selected person each frame.

local position, visible = workspace.CurrentCamera:WorldToScreenPoint()
--Position is Vector2 (X, Y)
--Visible is a bool value, change GUI visiblity with this value whenever selected player is off screen
1 Like

Why not use a BillboardGui though? It’s the same thing as you’re doing but easier and no code

Billboard guis will not work properly if they aren’t parented to the startergui, as in you cant interact with it.

Insert a billboard gui into startergui and design it the way you like. Make a localscript in starterplayerscripts
and when the mouse gets clicked (like mouse.Button1Down), get the mouse.target. If that target’s parent is a player, set the adornee of the billboard gui to the player’s head, torso, or other part if you want. Also set a hotkey or something to make the gui disappear. This might not be the most efficient way of doing it but it definitely works

Why wouldn’t you use a billboard gui though? It seems way simpler than making a whole system for things that a billboard GUI can already accomplish.

Adopt Me most likely uses a BillboardGui. Why bother creating your own updater to ensure the UI is placed at the character?

Put a BillboardGui in StarterCharacter and use scripting to put it in the root. Just so you know, Adopt Me uses offset on their floating menu.

Thanks for all your replies, I’ll make with BillboardGUI, seems to be what I was looking for.