I kinda experienced the same thing when I switched over from MTB. I was so used to climbs that didn't las that all that long that, when it came to spinning for more than 15 or 20 minutes, my legs would turn to jelly. The upside is that it didn't take all that long for my legs to get used to spinning. Keep at it bro!