CHICAGO (CBS)– It was an NBA All-Star weekend to remember in Chicago and the game was also a victory for Chicago school kids.

Two Chicago youth organizations were handpicked by team captains LeBron James and Giannis Antekounmpo.

READ MORE: Northwestern University Bans All Social Activities At Campus Fraternities Until At Least Mid-October After Reports Of Drugging

Not only were students given great seats at the game, but the players competed on their behalf, trying to win up to $500,000 to put towards their futures.

The students of Chicago Scholars, a program that helps low-income students get to and through college, could hardly contain their excitement.

READ MORE: Family Remembers Azul De La Garza, Young Woman Shot And Killed In West Elsdon, As 'Beautiful Soul' With A Future In Art

When team LeBron won, so did they.

Last night’s victory secured $400,000 for their organization.

Chicago’s own Anthony Davis hit the game winning free throw.

After school matters

Although their team didn’t win, students from After School Matters still walked away with $100,000 for their organization.

This year, the All-Star game tried out a new format.

Instead of the four-quarter formula, the game was broken down with $100,000 on the line for the charities every quarter.

And an extra $100,000 was awarded to the first team to tack on 24 points in the final minutes, a tribute to the late Kobe Bryant.

MORE NEWS: 6 Killed, 43 Wounded In Weekend Shootings Across Chicago

The league hopes the new format will impact thousands of students over time.