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

Is there anyway to convert a UDim2 value to a Vector3 value?

Asked by
zblox164 531 Moderation Voter
6 years ago
Edited 6 years ago

I don't know if this is possible but if it is then please help me. Thanks! I don't have any code to display because I have no idea how this would be done. What I want to do is create a SurfaceGui that is on a part and follows the mouse. Then when the player clicks a convert the UDim2 value or the position or the gui to a vector3 value to place an object.

0
A Udim2 is used for guis 2D and a Vector3 is for 3D space. There are some methods in the camera to find points from your screen to the game. https://scriptinghelpers.org/blog/screen-space-conversion-and-back-again. You need to explain your question in more detail before I can help more. User#5423 17 — 6y
0
I added more details zblox164 531 — 6y

Answer this question