Solved , I’ve been digging for a whole week in the internet and I read that you cannot pass Class values through game instances , in this post Game instance lose object on "Open level" - #6 by kristian0049 . So I used strings to compare with the string values , from a for loop ,where I loop through an array of classes which contains the strings and assigned the matching class ,with that matching string , to spawn from that .