I need scripting/ physics help

Hello does anybody know how to make a script that when i die it freezes me for a second and then unfreezes me using a rigidbody thanks in Java Script

That depends on if you want to free the user input or simply freeze the rigidbody in the game physics.
If it’s just the game physics, you can set rigidbody constraints. And freeze whichever position/rotation you’d like.

i cant find out how to do rigidbody.constraints

There’s a related topic/answer for ya.
See if that helps.