Client controlled character's Rotation sometime is not replicated

I’m try to make one function that player click mouse and the character change his rotation to the direction that mouse click but sometime client character is not change correctly.

My code:

Example Pic:

Most of time it is work, but if I try to click mouse to other direciton quickly, the client character sometime is just keep the rotation. I’m very confused with it, is there some replication magic that I’m not understand?