skeleton directions wrong

hello my problem is that the skeletons are not in the right position

If the mesh is being affected but is not synced with the skeleton, you need to fix the bindposes

It may also be that the skinnedMeshRenderer is referencing the incorrect bones

how do i fix it

Are the bones still affecting the mesh?
What did you do to cause the problem?
Try reimporting the model

I used transform.parent and skinned meshrenderer bones

The problem is caused by the skinnedMeshRenderer referencing the incorrect bones. Just drag a new prefab to the scene and delete this one that you messed up

how do we use prefab

I suggest you learn all the basic stuff here before you continue making your game: https://learn.unity.com/

Wrong forum and low effort posts. You will find your answers via the learn section and searching the forums. Please do not start posting every question you have, that is what the tutorials are for, the forum is for when you are farther in your progress.
Closed.