Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I convert a 3D position to a 2D position on your screen?

So, what the title says. How can I convert a 3D position to a 2D position on your screen, for example how can I make it so the blue gui goes where the red part is on the screen? https://gyazo.com/419662dacab2f576926d6584bb227a75 (I do know about BillboardGui but I want to do it in a ScreenGui)

1 comment

0

I want to figure this out too. xD It would be cool to have it so that a gui is between the cursor and the object until they are completely hovering on the object

1 answer

✓ Accepted answer

WorldToScreenPoint

WorldToScreenPoint produces a Vector3 value where the X/Y/Z values represent the X and Y values (in offset) for the GUI, and the Z value is how far away it is from the camera.

This discussion is preserved as it was. New answers, comments, and votes are closed.