Why is my raycast not working ?

Use debug.Log, to grab coordinates vector of mousePosN and mousePosF, to see iif they are correct…
Also, please use Code Tags
** Using code tags properly **