21/07/24 How To Make A MINIMAP in Roblox Studio!!! with open/close button
- model : https://www.roblox.com/library/5801189190/MiniMap
MiniMap - Roblox
Please enable Javascript to use all the features on this site.
www.roblox.com
```
---Watch my tutorial to understand everything: https://youtu.be/YRQoi88DY3I
local plr = game:GetService("Players").LocalPlayer
local char = plr.Character or plr.CharacterAdded
local hum = char:WaitForChild("Humanoid")
local humRootPart = char:WaitForChild("HumanoidRootPart")
local map = game.Workspace.Map
local gui = script.Parent
local ViewPortFrame = gui:WaitForChild("MinimapFrame")
---get the Camera
local cam = Instance.new("Camera")
cam.Parent = game.Workspace
cam.CameraType = Enum.CameraType.Scriptable
cam.FieldOfView = 1
ViewPortFrame.CurrentCamera = cam
for i, minimapObjects in pairs(map:GetChildren()) do
minimapObjects:Clone().Parent = ViewPortFrame
end
game:GetService("RunService").RenderStepped:Connect(function()
local camFr = CFrame.new(humRootPart.Position+Vector3.new(0, 3500, 0), humRootPart.Position)
cam.CFrame = camFr
ViewPortFrame:WaitForChild("Arrow").Rotation = -humRootPart.Orientation.Y -90
end)
```