AUBURN HILLS, Mich. -- Los Angeles Lakers star Kobe Bryant left Sunday’s 111-91 loss against the Detroit Pistons in the third quarter because of a stomach flu and had to receive IV fluids after the game.

But the 37-year-old said he expects to play Monday when the Lakers play the Raptors in Toronto, the second game of a back-to-back set.

“If I’m walking, I’m playing,” Bryant said after finishing with 5 points on 2-of-15 shooting from the floor and 1-of-6 from 3-point range in 26 minutes against the Pistons.

Kobe Bryant scored five points against the Pistons as he battled a stomach virus. AP Photo/Carlos Osorio

Bryant plans to retire at the end of this season and thus wants to play in every game, even if his health isn’t great -- as was the case Sunday.

“If it wasn’t my last season, I probably wouldn’t have played [Sunday], honestly,” Bryant said.

Lakers coach Byron Scott said the decision to play was made by Bryant.

“Before the game, he just told me [that] he wanted to give it a go,” Scott said. “He knew a lot of fans came to see him, so he wanted to try to come out here and perform as best he could. I think he tried to give everything he had.”

Scott added, “The one thing that I told him is, ‘I understand what you’re saying as far as coming here and playing because of all the people that came to see you, but I’m thinking about you, not them.’ But he was like, ‘No, I got to play. I can’t come out and not play.’ So I understand where he’s coming from.”

Scott blamed Bryant’s poor shooting Sunday -- a consistent theme all season -- on the illness.

Bryant said he wasn’t sure how his illness affected his play.

Bryant is averaging a team-high 15.9 points while shooting a career-worst and team-low 29.6 percent from the field on a team-high 17.9 field-goal attempts per game.