How to get rotation from TileMap

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Newby

I have a tile map for my doors and i have a script for it so when the game loads the tilemap of the doors will be replace by it’s scene.

in the tile editor i can rotate the tiles but since the door scene rotation is 0 all the doors rotation when loaded is 0.

what is the script used to get the rotation of the tile sprite so i can make it the door scene rotation.