Yesterday I created a marker system that displays your distance above a block on a BillboardGui. It’s a really simple script, but I’m proud of the way it turned out.
In the video, the distance displayed on the GUI is in kilometers (I’m using it for another game at the moment), but it can be changed to any unit of distance with some math; I’ve tried it with meters as well as studs.
Another feature of the script is that the loop that updates the distance breaks once the player is a certain distance away so it doesn’t continuously run even when the player can’t even read it. This greatly improved the performance of the game during the tests I did.
The only issue as of now is that in multiplayer, it only displays the distance of the closest player to the block, and isn’t adapted to show each player’s distance locally. If anyone knows how to correct this, information would be greatly appreciated.
I’d also like some feedback on the UI design. I’m not that caught up on the features of Roblox’s GUIs, so I know I could improve on the current design.
If you’re interested, you can test it out here. It’s a really basic script as I said before, but I guess I could make it open-source if enough people asked for it (and if the bugs were ironed out).