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: Chicago Weather: Sunny And Breezy Tuesday

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: As Bucktown's Remedy Bar Reopens After 5 Months, Call Mounts For Increase To 50% Capacity For Chicago Bars And Restaurants

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: Doctors Say Newly-Approved Johnson & Johnson COVID-19 Vaccine Could Be Game-Changer

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