Transform.parent !!!!!!!!

hi all what does Transform.parent do?

i need a line of code that will lock my player in his position ??

Transform.parent gets what an object is parented to.

So, if you have an object called Hand and you drag an object on top of it called Finger, Finger will become the child of Hand, and running a Transform.parent inside of Finger would return Hand (or more specifically, Hand's Transform component).

If you want to freeze your character, try setting rigidbody.isKinematic to true (since as I recall, you're using a physics object for your character).