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

how to place a screen gui on a part with raycasting?

Asked by 4 years ago

so this is simple so i want to have a raycast hit something then a screen gui is positioned where it hit i have been working on that for a while and i dont know if there is a simple way to do it or the "math" way also no putting it on a part and welding it to the place so what i want is for you to tell me if there is an easy way and tell me how or wish me luck :/

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

You could use WorldToScreenPoint or WorldToViewportPoint if you want to ignore gui inset. This will return the exact X and Y position on your screen relative to the Vector3 provided.

0
the screen gui will be in a part does it still work in a part? botw_legend 502 — 4y
Ad

Answer this question