- 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)
```
'tech > game' 카테고리의 다른 글
21/07/27 로블록스 게임 만들기 #1/3 - 리오아빠 - Leo's Daddy (0) | 2021.07.27 |
---|---|
21/07/24 Roblox Studio MiniMap System (0) | 2021.07.24 |
21/07/24 ROBLOX | How to make a game like Camping (0) | 2021.07.24 |
21/07/24 How to Make a Story Game in Roblox (0) | 2021.07.24 |
21/07/24 HOW TO MAKE A GAME LIKE AIRPLANE (0) | 2021.07.24 |