Getting a screen position from a viewportframe's camera

It’s me again.

I’m trying to position a frame where the head of a character is displayed in a ViewportFrame, but methods such as Camera:WorldToViewportPoint() doesn’t respect the dimensions of a ViewportFrame, nor it’s position, and instead returns a position as if the ViewportFrame was fullscreen.

Any ideas? Should I instead make a feature request? Let me know.

From what I understand, I believe you’re trying to create a CFrameValue based on the position of your camera in studio. This plugin by @tyridge77 should help; I use it often:

2 Likes

No, not quite. I’m simply trying to get the screen/viewport position of an instance within a viewport frame that’s accurate to the size of the viewportframe, not the viewportsize of the camera.

Glad to see my little plugin found its way to someone and is helpful, but I honestly have no clue how. That was never a public/advertised plugin but just a tiny tool I made for my own game :rofl:

4 Likes