How can I put Slow Motion using Rigidbody Controller

Hello, I made a Sword Game in Unity, now I want to put Slow Motion in the game to make it look better. And I want to activate Slow Motion by pressing Shift, I’m not good at coding, If you can, please send me the code and tell me what to do.

Cheers, Andrei.

Hi,

Did you tried to eddit the Time.timeScale value?

-How to make Slow Motion in Unity - Bullet Time Tutorial - YouTube

-Physics and Slow Motion in Unity | Beginner Prototype Series - YouTube

Here,

Time.timeScale=0.5F; Time.fixedDeltaTime=0.02F*Time.timeScale;
// To slow everything down

Time.timeScale=1; Time.fixedDeltaTime=0.02F*Time.timeScale;
// To set everything Back to normal