
So I’m trying to create a Inventory System, and I’ve got mostly all of it working though it doesn’t set the ViewPort currentcamera to the Camera I’ve inside the Viewport, any idea why?

So I’m trying to create a Inventory System, and I’ve got mostly all of it working though it doesn’t set the ViewPort currentcamera to the Camera I’ve inside the Viewport, any idea why?
I had this issue before, all I did was create a new instance inside the script. I don’ think you can add a camera manually.
local camera = instance.new("Camera", viewportFrame)
I’ve done this a bit before but trying doing
local camView = Instance.new("Camera", script.Parent.View)
script.Parent.View.CurrentCamera = camView
Its always worked for me
That worked but it creates the Camera and then Deletes it right after, I’m so confused on why it’s doing that?
I have no clue why it would delete the camera.
You need to make the current camera Scriptable, you can read up on Camera Manipulation on this forum; Camera | Roblox Creator Documentation
try
also yea you have to add the camera with the script (instance.new) and try changing it to scriptable.
CamView.CFrame = CFrame.new(Object.Position+Vector3.new(0,2,12),Object.Position)
probably not the issue, but this is the only thing i could come up with
Appreciate it, forgot that I was supposed to make the Cam Scriptable lol