SurfaceGUI : Vector3 to UDim2

How can I convert Vector3 to a SurfaceGUI’s position using a ServerScript?

You can do SurfaceGUI.Parent to ur instance. It will automatically position to ur position. Just make sure the position of the instance is the same as the Vector3 you want

local part = Instance.new("Part", workspace)
part.Position = Vector3.new(0,1,0)
SurfaceGui.Parent = Part

I don’t necessarily get what you want but you can do this:

local Vector = Vector3.new(0, 0, 0)
local Udim = UDim2.new(0, Vector.X, 0, Vector.Y)

Maybe one of these could help?[If I understood you right]

Tho, SurfaceGUI itself doesnt have a position property, you’ll have to put it under ScreenGui or an object.

Example
Basically the glowing thing is the frame, when a player hits the part the frame goes to the position where the player hit.

Maybe you would use WorldToScreenPoint?

local Part = workspace.Baseplate
local WTSP = workspace.CurrentCamera:WorldToScreenPoint(Part.Position)
local Udim = UDim2.fromOffset(WTSP.X, WTSP.Y)