How to make a UI element point towards a Vector2 Position?

Something like this should work:

local function GetAngle(v1,v2)
    local dir = v1 - v2
	local Angle =  math.atan2(dir.y,  dir.x)
	return  math.deg(Angle)
end
2 Likes