Hello!
I try to make a system where the normal camera ( the normal one, the camera we use normally when we play roblox ) but i want that this camera is render inside the viewportframe. There is some solutions ?
I try this, but obviously, it doesnt work :
local viewport = script.Parent.ViewportFrame
local currentCamera = workspace.CurrentCamera
viewport.CurrentCamera = currentCamera
-- You need to update the viewport variable
local viewport = workspace.Part.ViewportFrame
local currentCamera = workspace.CurrentCamera
viewport.CurrentCamera = currentCamera