Minimap / Radar UI help needed

  1. I want to achieve learning on how to make a advanced minimap with GPS, a scripter once told me the best way is using widgeon his rendering plugin and putting it into a viewportframe, but I’m kinda confused to this.

  2. My issue is that I really need to know, it would finish loads of my projects. Example of something I mean is XCrim, created by PurpleRBX_82 along with VernandoGames. They make the renders with widgeon’s plugin and put it into a viewportframe somehow.

  3. I’ve tried using multiple YouTube tutorials but those are really basic and don’t show smooth terrain. I need the minimap to not lag and show terrain like Jailbreak from @badcc . He uses his own program to send all bits to the program and renders them. That’s also a good example.
    I’m not asking for the script itself, I would be asking for some open source minimap/radar project I can check out and learn how it’s made from the beginning to end so I could improve my scripting.

5 Likes

The way I would complete this is to use a viewport frame as you would guess, and clone the entire workspace into it. Have the camera situated above the player’s head, the higher the camera the more the minimap shows. It wouldn’t take too terribly much scripting after that, the most you’d have to do is script for markers of other players on the minimap.

1 Like

The problem with that that’ll lag alot.

Not exactly. @boatbomber had a nice security camera system that followed nearly the same principles and it caused no lag. It’d be a matter of how well you execute it: mostly focused on how much of the actual workspace you put in the frame. For example; you wouldn’t need any interiors or such, since it is a top down view, which would take away a majority of what would cause lag in the first place.

1 Like

The other problem is, I’m fairly new to making minimaps or doing stuff with viewportframe. I’ve got alot to learn that’s the reason the post is here anyway.

It’s really just contents, and camera, which isn’t very demanding to learn, if you sit down and try to think through making a viewport frame system it should come quite naturally.

1 Like

I’m really trying my best to think on how to do it but I cant come out of it.
Because one of the things is all minimap scripts I’ve seen makes no sense to me, I don’t learn anything off of them because the code is very messy.

This is personally the way I would create something like this but there are plenty of ways to achieve similar or better effects than this does.

You can take a top down screenshot of your map with anything you want to include. If you want to edit out the sky you can for example change the sky to solid black and do this in an image editor. Then you can put it onto a decal within a ViewportFrame with a low FOV camera (this will give a more orthographic/2D look). The camera should be very high above the map in order to see the whole map.

Next, to convert from “map coordinates” to “real coordinates” and vice versa you need to first define a stud size for the minimap (you can take the pixel size of your image). Then you can divide the real coordinates by the stud size of the real map to get a decimal value from around 0-1 (doesn’t really matter if this is higher, it just means the player is outside of the bounds you defined). Finally you can multiply this decimal by the map’s size in pixels.

Finally you’ll want to create some kind of marker for objects you want to display (e.g. a circle with some text). These marker objects are then overlayed on top of the ViewportFrame.

1 Like

I kinda get it now but I still don’t know how to do it.

To add to Hexcede’s reply, if you are trying to learn how to setup a minimap and add coordinates to it and certain marker displays this open-sourced game might be of use. There is a localscript called MapScript that has an updating minimap and a marker system. Ruddev's Battle Royale Test Zone - Roblox

4 Likes

Thanks so much! You guys are such a good help. I’ll check it out and try some different things and try to make some improvements in my scripting!

Hm, I do kinda get how it works but I don’t really know how to use it if I would, I changed the minimap image to a render I made and it doesnt work or show up at all.

Well using what they have won’t work straight out of the box, i linked it as it might be a good learning tool to give you an idea how they accomplished it. Specifically the positioning and movement of the map itself and the “pin” system they have. From what i can tell the map is just a high-res square render of the map looking down. Probably done using widgeons map plugin.