Hey everyone, my friend helped me figure what I had done wrong.
I had mistakenly thought that on top meant that the sprite was meant to stand on top of the box rather than the box being literally on top of the sprite, so in essence my controls had been trying to move the locked platforms all of the time.
Thanks for all who replied!