Problem is here :
func animiplay():
if moving == true:
if velocity.x >= 1:
ani_ref = "walkR"
if is_on_floor() == false:
ani_ref = "jumpR"
if is_on_floor():
if velocity.x >= 1:
ani_ref = "idleR"
You have gone too far with indentations. If player is not on floor it plays jumping animations and only then it checks, if it is on floor. Obviously he is not on floor, because it has just been checked, so your idle condition is never fulfilled. Code should go like this :
func animiplay():
if moving == true:
if velocity.x >= 1:
ani_ref = "walkR"
if is_on_floor() == false:
ani_ref = "jumpR"
elif is_on_floor():
if velocity.x >= 1:
ani_ref = "idleR"
Instead of elif You can just use "else"