On a full suspension bike of that age, I'm guessing some suspension bushings/bearings are worn out.
Otherwise, rattling is usually from the cassette when someone forgets to put on a spacer behind the cassette. You said you swapped wheels, so that is probably not the problem.