so im trying to make a gui showing the players camera with viewportframes (for learning) and, its not working:
local script:
local vpf = Instance.new("ViewportFrame")
vpf.Size=UDim2.fromScale(1,1)
vpf.BorderSizePixel=0
vpf.BackgroundTransparency=1
vpf.Name="hello"
vpf.Parent=script.Parent:waitForChild("Frame")
while true do
local vpc = Instance.new("Camera")
vpf.CurrentCamera=vpc
vpc.Parent=vpf
vpc.CFrame=workspace.CurrentCamera.CFrame
wait()
vpc:destroy()
end
help
