How can i Freeze Time whilst still allowing my character to move around?

i’m making a game where the character has the ability to freeze time