Viewport on accessory?

So, I’m trying to make a viewport for an accessory, but it doen’t work because it does’t have a CFrame.
Btw “v” is the accessory

This is what I have now:

camera.CFrame = CFrame.new(v.AttachmentPoint.Position + (v.AttachmentPoint.CFrame.lookVector * 3),v.AttachmentPoint.Position)

I also tried without the attechmentpoint at the CFrame part.

Could someone help me?

Instead of using the accessory’s AttachmentPoint, try using the CFrame of a part or mesh that is inside it.

It solves the error but there’s nothing on the screen, I used the handle in the accessory

Is the accessory located inside of the ViewportFrame?

No, inside a folder in replicated storage

To my knowledge, the only way to view it is for the accessory to be a child of the frame. You could try cloning it and parenting it inside of the ViewportFrame.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.