Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Positioning a GuiFrame (2d object) over a part if it's in the cameras view (3d Object)?

Asked by 9 years ago

I've been trying this for the past few hours and I'm getting frustrated, and am wondering if anyone can help. I need to get a frame to move directly over-top of a part if it's in the cameras view and move around with it if the camera turns. I've tried so many formulas, and I just can't think of anymore. If anyone can help me, thank you!

~Obscure Entity

1 answer

Log in to vote
1
Answered by
MrSquer 15
9 years ago

You can use the Camera's method called WorldToScreenPoint. http://wiki.roblox.com/index.php?title=API:Class/Camera/WorldToScreenPoint

0
Thanks. I had to do a little tweeking and stuff, but eventually I figured it out! ObscureEntity 294 — 9y
Ad

Answer this question