Whats the problem to my code?

that was just an example, the point was

your create character is different from your result button you need to find a way to communicate between them