pasje1312
(pasje1312)
October 19, 2024, 7:56pm
#1
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.
pasje1312
(pasje1312)
October 19, 2024, 8:21pm
#3
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?
pasje1312
(pasje1312)
October 19, 2024, 8:25pm
#5
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.