I also figured out the reason it didn't work in the first place, I didn't name the bones and vertexes the same name.
I had an issue when my mesh was not moving with my bones, I've managed to fix it but now I have another problem.
Now when my bones bend it kinda looks like that scene from harry potter where the teacher tries to fix harrys broken arm. Actually it's kinda funny because in this situation I'm that teacher.
Is there a solution to this?