How can I make my player move when the timeScale is set to 0 or 0.5.

First, use code tags:

Next you probably want Time.unscaledTime and Time.unscaledDeltaTime:

There’s also fixedUnscaledTime for FixedUpdate: