Alright so i have a minimap and it gives the distances and placements correctly but then i added a roation method using an earlier post and it is behaving very weirdly like half working i guess anyway the math is well above me so could someone explain it and help me out
here is the code that i have so far
local sx, sy, sz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = head.CFrame:components()
heading = math.atan2(m02, m22)
local rotMod = rot(Vector2.new(75, 75), f.AbsolutePosition, heading)
f.Position = f.Position + UDim2.new(0, rotMod.x, 0, rotMod.y)
function rot(center, point, deg)
point = (point - center)
local point_c = point
local len = point.magnitude
point = point.unit
local rad = math.atan2(point.y, point.x)+ deg
point = Vector2.new(math.cos(rad), math.sin(rad))*len
return (point-point_c)
end

2 comments
What kind of effect are you looking for?
a smooth rotation when a player turns their head to look around the map