You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
i want to create a viewport frame that holds a model -
What is the issue? Include screenshots / videos if possible!
the viewport frame was empty -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i already tried finding solutions but none of them worked
and this is my code
local viewportframe = script.Parent.View3D
local part = game.ReplicatedStorage.Skins.Default:Clone()
part.PrimaryPart.CFrame = CFrame.new(0,0,0)
part.Parent = viewportframe
local viewportcamera = Instance.new("Camera")
viewportcamera.CameraType = Enum.CameraType.Scriptable
viewportframe.CurrentCamera = viewportcamera
viewportcamera.Parent = viewportframe
viewportframe.CurrentCamera.CFrame = CFrame.new(0,0,6)
this is the result:
Any helps would be appreciated, Thank you.