How Bubble gum Sim Ui shows up when player is near the egg

How does bubble gum simulator make this Ui that shows the pets show when the player is near.
Is there like an event for Proximity prompt

It’s probably just changing the distance property of the billboard gui.

So the T for Auto Open and the R for open 3 eggs and the E are all Proximity Prompts and the Gui above them is a BillBoard Gui?

They could be using this to find the distance to the egg:
<Player | Roblox Creator Documentation

If you wanted you can also abuse the features of the ProximityPrompt API, (PromptShown, PromptHidden)

I do this quite a lot, not sure if it’s more or less efficient that normal distance checks, but it’s easier to implement and handle IMO.

1 Like