Which is the function of the exoskeleton in animals?

Produces the sperm used in reproduction
Protects against different weather
Protects against their environment
Works with muscles to allow movement