I have 0 idea why this doesnt work but the viewport just has nothing to show up and does nothing
heres the code
local vp = script.Parent
local mapfolder = workspace.Map
local function clonemap()
local clonedfolder = mapfolder:Clone()
clonedfolder.Parent = vp
end
local function setupcamera()
local vpcam = Instance.new(“Camera”)
vpcam.Parent = vp
vp.CurrentCamera = vpcam
vpcam.CFrame = Vector3.new(0,20,20)
end
local function startVP()
setupcamera()
clonemap()
end
startVP()