A crazed fan tried to break into the set of DWTS to meet Shawn Johnson.

Johnson, 17, an Olympic gold medalist, is one of the celeb contestants on this season’s dance comp.

A restraining order was issued against Robert O’Ryan, 34, who was busted by LAPD after being stopped by security at the CBS Studios where DWTS is taped.

Cops found a loaded shotgun and a hand gun, duct tape and rambling love letters in the suspect’s car trunk.  

Court records reveal O’Ryan told security he had packed his belongings and traveled from Florida to California in hopes of being with the flexible beauty. The alleged stalker is currently in police custody on $35,000 bail on a felony charge of carrying loaded firearms.

An order of protection has been issued for Shawn but her dance partner Mark Ballas was not included in the order despite the plea for inclusion.