Viewport frame on surface gui not visible

I made a minimap it works, fine

But the thing is, if you know me earlier, I made tesla auto pilot in Roblox
And I would like to show map on the screen inside the vehicle, rather than a gui on player screen so it look more like a tesla auto pilot, but when I kept the viewport frame in the screen, it does not show anything, i tried it with a local and server script, does anyone know how to shop minimap on surfacegui in workspace

You did not provide the script, so we can’t help you.

Oh you mean script?

for i,v in pairs(game.Workspace.Folder:GetChildren()) do
    local clone = v:Clone()
    clone.Size = v.Size
    clone.BrickColor = v.BrickColor
    clone.CFrame = v.CFrame
    clone.Parent = script.Parent
end

local camera = Instance.new("Camera",script.Parent)
script.Parent.CurrentCamera = camera
camera.FieldOfView = 25
while wait(0.25) do
    camera.CFrame = CFrame.lookAt(script.Parent.Parent.Parent.Position + Vector3.new(0,200,0),script.Parent.Parent.Parent.Position)
end

Are there any scripts in the viewport frame? If so, can you show me them please?

Thats the only script in viewport frame

Could you share the viewport frame and the physical instance you’re trying to display on that viewport frame?

To get this to work you need to put the surfaceGui in the PlayerGui, and then adorn it to the part you want.

I did that, long ago, it works, but can I not do it on the server?

Some devs told you cannot display viewports in workspace in a server script, is that true

Ok i will send image soon, its night for me