I want to show a character animating in a viewport frame, but as I have found animations will not show when the character is parented to the viewport frame. So I moved the character into the workspace and created a transparent part to use as the camera's CFrame and tried this:

local viewportFrame = script.Parent

local part = workspace:WaitForChild("AnimDisplayCamera")

local viewportCamera = Instance.new("Camera")
viewportCamera.CameraType = Enum.CameraType.Scriptable
viewportFrame.CurrentCamera = viewportCamera
viewportCamera.Parent = workspace

viewportCamera.CFrame = part.CFrame

The viewport frame is not showing anything though, and I'm not quite sure what to do. Is it even possible to do this? Any help would be greatly appreciated, thanks for reading :D