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
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