Better approach to making light blind you the more you look at it

currently made a lens flare sorta system for a light

the more you look at it ( not in the sense of time, but in the sense of angle)

the flare gets bigger and what not, it does this by calculating the angle and if angle is below a certain amount in degrees,
raycasting to see if its obstructed and then it positions the ui flare to the desired origin using camera:WorldToScreenPoint

im currently wondering if there is a better approach to this, since it is quite wonky and isnt that visually pleasing either

PICTURE:

If I understand you currently, you should go with Vector3:Dot():

if CameraLookVector:Dot(LightSourceLookVector) >= Threshold then
    -- Increase flare transparency and size
end

For more information on Vector3:Dot(), see this post

edit: figured it out, wonkyness was a UI issue

hey man, just wondering, could i see some of the code behind this? just tryna save time