Mouse Position doesnt update while pressing a button


I use these to set it to variable, how can i do it with functions you sent?