When I try this code it gives me the following error: "Cannot modify Transform.localRotation because it's not a variable."
public Transform Player;
public float speed = 12f;
bool isGrounded;
if (Input.GetKey("left ctrl") && isGrounded)
{
speed = 6f;
Player.localScale.y = 0.5f;
}
else
{
speed = 12f;
Player.localScale.y = 1f;
}