How long can muscle spasms last for? Took muscle relaxant worked for a bit but now are back and stronger. I can't really walk properly im am tilted

Depends. Muscle spasms can be difficult to treat if the underlying cause cannot be determined and/or eliminated. Further, muscle spasticity after injury is also very individual and some individuals may suffer much longer than others despite adequate rest, anti-inflammatories and muscle relaxant medications.