Getting a Angle relative to a parts position and rotation

I need to get a angle that uses a vector and is relative to the part. I am using this calculate missile locking. basically I want to get a angle between two parts that is relative to one of the parts. A example of what I want to check for is below


basically I want to check if the missile is within this cone

I can do checking of angles I just need to know how to get them

thank you. This will help me so much

How would I get the degree angle?

math.deg() maybe?
possibly… i didnt chec,

There is one issue though with :dot()

image
This is a example of it being out of the line but I think I know a fix
basically it will still say 0 even though it is more than 45 degrees away from it

Issue fixed thanks for the help