i tried following SuphiKaner’s tutorial on making a minimap, but for some reason, it doesnt work
here’s the video link:
(184) Minimap - Roblox Scripting Tutorial - YouTube
also here’s my script
local Frame = script.Parent
local ViewportFrame = Frame.ViewportFrame
local Camera = workspace.CurrentCamera
for _, i in pairs(workspace.Map:GetChildren()) do
if i:IsA("BasePart") then
local clone = i:Clone()
clone.Parent = ViewportFrame
end
end
local ViewportCamera = Instance.new("Camera")
ViewportCamera.FieldOfView = 20
ViewportFrame.CurrentCamera = ViewportCamera
local offset = Vector3.new(0,500,0)
Camera:GetPropertyChangedSignal("Focus"):Connect(function()
local cx = Camera.Focus.Position.X
local cy = Camera.Focus.Position.Y
local pos = Vector3.new(cx, 0, cy)
ViewportCamera.CFrame = CFrame.lookAt(pos * offset, pos, -Vector3.zAxis)
end)
the explorer:

for the output, there seems to be no errors, so im a little bit confused on this one.
please help, thanks!