The title says it all this is a example of what it does
local Dot = currentCamera.CFrame.LookVector:Dot(camera_Orgin.Position)
local angle = math.deg(Dot)
local ray = workspace:Raycast(targetPos, util * magnitude, camera_parameters)
if (ray) then
local instance = ray.Instance
if instance:IsDescendantOf(character) then
if (angle > 45) then
print("A")
end
end
end