Parkland shooter Nikolas Cruz texted his friend just moments before killing 17 students and adults and injured 17 at Marjory Stoneman Douglas High School on Feb. 14. (Sun Sentinel)

The lawyer for a northern Broward County family that took in Parkland mass shooter Nikolas Cruz provided The Palm Beach Post on Wednesday with chilling details about texts between Cruz and the family’s teenage son in the minutes before Cruz opened fire.

Attorney Jim Lewis’ comments came on the day a grand jury formally indicted Cruz on 34 counts, including 17 counts of premeditated first-degree murder and 17 counts of attempted first-degree murder in the injuries to 17 others.

Lannis Waters/The Palm Beach Post

Supporters greet students arriving at Marjory Stoneman Douglas High School as students began returning to class on Feb. 28. (Lannis Waters / The Palm Beach Post)

• Cruz texted the Sneads' teenage son, who was in class at Douglas, around 2 p.m., about 20 minutes before Cruz started shooting. Cruz asked what class the son was in and who the teacher was. The son said the teacher was one of the coaches. Cruz texted the son to ask the coach if he remembered Cruz. The coach was not one of the people Cruz shot.

>>PHOTOS: remembering the Parkland victims• Minutes later, Cruz texted to say he was going to a movie. Lewis said he then "made some kind of comment that, 'I've got something big to tell you.'" When the son pressed him, Cruz texted, "no big deal. Nothing bad." • Lewis said the texting stopped at 2:18 p.m. The last text was a single word: "Yo." The Snead teen texted back several times without a response. Then, the shooting started.

Lawyer: No clue this was about to happen

Lewis said in the days before the shooting, "There was nothing to give any clue that this was about to happen.

“No bad feelings about anybody's school. No bad feelings about Douglas in general."

Authorities have said that, after the November pneumonia death of Cruz’s mother left Cruz and his younger brother, Zachary, orphaned, the two moved to the suburban Lantana home of family friend Rocxanne Deschamps.

When Deschamps told Cruz he could stay only if he got rid of his guns, Cruz moved in with the Sneads in late November.

Six weeks before the shooting, Lewis said, James Snead, the father, had asked Douglas officials if Cruz, who'd been expelled, could re-enroll. They said no.

Lannis Waters/The Palm Beach Post

A police officer looks at memorials on the fence in front of Marjory Stoneman Douglas High School on Feb. 28. (Lannis Waters / The Palm Beach Post)

‘People were saying it was Nik’

It was James Snead who got a text minutes into the rampage from his son, saying there'd been a shooting at the school. The father was on the way to school to pick up the teen. The son "called back and said people were saying it was Nik. That's when the father freaked out," Lewis said.

Around that time, Lewis said, a Broward County Sheriff's Office commander called James Snead to ask if he had a son named Nik.

Snead explained Cruz wasn't related, but was living at the house.

A short time later, Snead called the commander back to say he was worried because his wife, who's a night nurse, was asleep at the home on Loxahatchee Road. Soon deputies were swarming the home. Snead’s wife was unharmed.

Lewis said Cruz had no contact with the family after that last text message, "Yo," until the family saw him later that night. They'd come down to make a statement to Broward County Sheriffs' investigators and saw Cruz through a window.

"That's when Nik mouthed the words to them; 'I'm sorry.'"

Alaina Petty, 14, was one of the 14 students killed on Feb. 14. Her family issued this statement: 'Alaina was a vibrant and determined young woman, loved by all who knew her. Alaina loved to serve. She served her community through her participation in the Marjory Stoneman Douglas JROTC program and her countless hours of service as a volunteer for the Helping Hands program of The Church of Jesus Christ of Latter-day Saints. Alaina was part of hundreds of volunteers that rushed to the most heavily impacted areas of Florida to clean up and help rebuild the lives of those devastated by Hurricane Irma. Her selfless service brought peace and joy to those that had lost everything during the storm.'