Thank you so much for your time dude, well i kind of solve the rotation problem but it feels like cheap solition xd. im not sure if i can do better. i solve it but another problem popup.
anyway now it look like this,

i add two RayCast to my main_node ( not the boss_node) so when player intearct with the RayCasts boss_node will rotate on the y axis, i did add RayCasts under the main_node because i dont want them rotate with the boss_node, if they will, then that will be meaningless.
this is the code
if get_node("../boss_donus/RayCast2_arkadaki").is_colliding():
get_node("../boss_donus/RayCast2_arkadaki").enabled = false
get_node("../boss_donus/RayCast_ondeki2").enabled = true
rotation_degrees = Vector3(0,90,0)
elif get_node("../boss_donus/RayCast_ondeki2").is_colliding():
get_node("../boss_donus/RayCast_ondeki2").enabled = false
get_node("../boss_donus/RayCast2_arkadaki").enabled = true
rotation_degrees = Vector3(0,-90,0)
they triger eachother. But, there is a huge BUT in this. first, when boss_node move (follow the player) this RayCasts also need follow the Boss_node without rotating with the boss_node, and i need the know how to move boss_node, i did write down some thing but its turn out like this,

this is the follow code
var player_location = get_node("../karakter/karakter_kinematik").global_transform.origin
var boss_location= get_node("../bossssss1").global_transform.origin
var direction= player_location - boss_location
move_and_slide(direction, Vector3.UP)
its follow to fast and even at the y axis, boss need the to be on the floor :)
and lastly, i need a way to stop my player move from other than the z axix(currently only moving on the z axis).
Because, when i jump or interact with the enemy object, sometimes player goes to a little left or right, and stop interact with the RayCasts. and as a result, animatins of the enemy objets stops.
like this:

i thoug that i can use collision shapes around the my character till the end of the map but, some objects is bigger then player character so that will not work, is there a way to lock other axis so that my player character only bounce the z axis ?