reset the rotation woiht script code example
Example 1: simple reset transform.rotation c#
transform.rotation = Quaternion.identity;
Example 2: how to reset rotation in unity
transform.rotation = Quaternion.Euler(transform.rotation.x, transform.rotation.y, 0);