You really should not be using them in AG at all.
Krookodile's Moxie is cool, but it is too weak and too slow to be viable. It is outclassed by Excadrill as a Ground type for its ability to function as an effective suicide Stealth Rock lead, Tyranitar for its support and bulk, Yveltal for its sheer wallbreaking power or its access to some good support moves like Snarl, Foul Play, Knock Off, Defog, Roost as well as it having the best matchup against Calyrex-Shadow, the most dangerous Pokemon in Gen 8 AG, which becomes dominant once an answer is removed. Between Krookodile and Groudon, it isn't even a contest. Dynamax Groudon is bigger, faster, stronger too.
Excadrill @ Focus Sash
Ability: Mold Breaker
EVs: 4 HP / 252 Atk / 252 Spe
Jolly Nature
- Earthquake
- Stealth Rock
- Rapid Spin
- Rock Tomb / Iron Head
Tyranitar @ Leftovers / Heavy-Duty Boots
Ability: Sand Stream
EVs: 252 HP / 4 Def / 252 SpD
Careful Nature
- Rock Blast / Rock Tomb
- Thunder Wave
- Stealth Rock
- Rest
Yveltal @ Life Orb
Ability: Dark Aura
EVs: 4 Atk / 252 SpA / 252 Spe
Rash Nature
- Dark Pulse
- Oblivion Wing
- Sucker Punch
- Heat Wave / Focus Blast
Yveltal @ Heavy-Duty Boots
Ability: Dark Aura
EVs: 252 HP / 4 Def / 252 SpD
Careful Nature
- Knock Off / Snarl
- Foul Play
- Defog / Toxic / Taunt
- Roost
Groudon @ Life Orb
Ability: Drought
EVs: 252 Atk / 4 Def / 252 Spe
Jolly Nature
- Precipice Blades
- Stone Edge
- Aerial Ace
- Swords Dance
The answer is still the same. Outclassed, this time by the much stronger Kyogre (I'd add the Block+Calm Mind+Rest/Block+Sheer Cold set here but I don't know the exact EVs, item, and nature)
Kyogre @ Choice Scarf / Choice Specs
Ability: Drizzle
EVs: 4 Def / 252 SpA / 252 Spe
Timid Nature
- Water Spout
- Origin Pulse
- Thunder
- Ice Beam
Heracross is not a good Pokemon in Gen 8 AG either. Marshadow is much better for its ability to revenge-kill Calyrex-Shadow, and its higher Speed and better part Ghost typing.
Marshadow @ Life Orb
Ability: Technician
EVs: 252 Atk / 4 Def / 252 Spe
Jolly Nature
- Poltergeist
- Close Combat
- Shadow Sneak
- Bulk Up / Ice Punch