Hi! I’m having problems calculating a player’s position to an image position like Jailbreak or Vehicle Simulator. How would you calculate the position of a player on the Roblox map to a square image minimap? (pretty much exactly like Jailbreak or Vehicle Simulator)
Everything I’ve found on the dev forum either doesn’t work or doesn’t fit my needs because they use mostly Viewport.
I think you can you just have a map Gui with overlaying Guis that have a dot (or whatever symbol) for each player and change the Udim2 Scale values to move each players dots.
You’d just need to convert the player’s Position based on a percentage of the world map size, then convert it to change the Gui Scale Position.
So basically if you have a world that is 5000 studs by 5000 studs and the player is at Position 3000,1000, then 3000/5000 and 1000/5000 would be percentages of 60% (.6) and 20% (.2). Use .6 and .2 as the Scale values in Guis to indicate each player.