AUSTIN (KXAN) — The streak is over. The Texas Longhorns snapped a six-game losing streak Friday, finishing the season with a win over Kansas State.

The Longhorns will end the year with a 5-7 record, defeating the Wildcats 22-17 in Austin on Senior Day. The Texas defense stood strong in the second half, stopping Kansas State on back-to-back fourth down attempts to earn the come-from-behind win.

Texas trailed KSU 17-16 at halftime. The Longhorns held the Wildcats scoreless in the second half.

UT running back Roschon Johnson was the player of the game, leading the offense mostly out of the Wildcat formation. Johnson carried the ball 31 times for 179 yards, scoring the first touchdown of the game.

Johnson also picked up two key first downs in the final four minutes of the game, allowing Texas to bleed the clock down with a lead.

The Longhorns will likely miss a bowl game for the first time since 2016, but there’s still a chance Texas could get a bid if there aren’t enough 6-6 teams to fill bowl slots.

Read below for a full breakdown of Texas’ win over Kansas State.

Kansas State vs. Texas live blog

POWER: Texas is trying to run the clock out with its four-minute offense. Roschon Johnson picks up two huge first downs to keep the drive alive. The Longhorns are draining the clock, coming close to snapping the six-game losing streak.

Texas will punt back to Kansas State with 33 seconds left on the clock. KSU has no timeouts at its own 20-yard line.

SCORE: Texas wins 22-17

BACK-TO-BACK STANDS: After a season of struggles, this game has come down to the Longhorns run defense.

The Texas defense stops Kansas State on fourth down on back-to-back series. This time, Kansas State was stopped at the Texas 17-yard line on 4th-and-1.

ANOTHER FG: Roschon Johnson broke through on the first play of the drive for 21 yards, but Texas can’t find the end zone. It feels like a missed opportunity for Texas — even with the Dicker field goal.

Dicker hits his third field goal of the day from short range to extend the lead to five.

SCORE: Texas leads 22-17

FOURTH DOWN STAND: The Longhorns defense stops Kansas State and Vaughn on 4th-and-1 on its own 30-yard line. Moro Ojomo came through the hole, stopping by Vaughn just inches short.

With nine minutes left, Texas can really clamp down on this game with a touchdown. UT leads 19-17.

100-YARD DAY: Roschon Johnson has been the player of the game for the Longhorns. He eclipsed 100 yards for the day in the third quarter. Johnson has 106 yards on 22 carries.

TEXAS FIGHT: The Longhorns aren’t withering away in the second half as we seen in previous games during this losing streak.

Starting at its own 18-yard line, Texas takes the lead on a Dicker field goal after the offense drove 60 yards to the KSU 21-yard line.

SCORE: Texas leads 19-17

CASEY THOMPSON STATUS: Thompson left the game for several plays in the second quarter after a hard hit. He returned for the final two plays of the drive, which ended with a hurried Dicker field goal as time expired.

Texas was without a timeout as Thompson was stopped short of the first down in bounds at the 6-yard line with 10 seconds left in the half.

The special teams unit was able to quickly get set for Dicker’s 24-yard field goal.

SCORE: Kansas State leads 17-16 at halftime

FIELD POSITION BATTLE: The Texas defense forced a punt, but couldn’t move out of the shadow of its own goal post on its next series. Kansas State started with the ball back in good position at its own 42-yard line.

The Wildcats are able to pick up two first downs, setting up a 51-yard field goal for Chris Tennant. The KSU kicker hits his career-long to add to Kansas State’s lead.

SCORE: Kansas State leads 17-13

UGLY: Bad angles and bad discipline. KSU quarterback Will Howard finds a huge hole on the left side and goes 71 yards virtually untouched for the touchdown. Longhorns safety BJ Foster was the last line of defense and he took a bad angle to Howard.

SCORE: Kansas State leads 14-13

TD AND A MISS: Cade Brewer makes a great catch in the back of the end zone surrounded by three Kansas State defenders, giving Texas the lead.

But, Cameron Dicker missed the extra point — his first miss of the season. Prior to that attempt, Dicker was 49-of-49 on extra-point attempts.

SCORE: Texas leads 13-7

DEUCE: Round Rock’s Deuce Vaughn is one of the best running backs in the country. Vaughn is the anchor for Kansas State’s offense and he gets the Wildcats even on the scoreboard.

Vaughn picked up 47 yards on the seven-play scoring drive.

Vaughn is a Cedar Ridge High School graduate.

SCORE: Tied at 7

TURNOVER: Texas’ second possession didn’t last long. Casey Thompson intercepted on a deep ball intended for Xavier Worthy.

That’s Thompson’s ninth interception of the season.

WILDCAT: Texas took the Wildcat formation to the Kansas State Wildcats during the first drive of the game and it resulted in a Longhorns touchdown.

Roschon Johnson handled the ball on the final six plays of the drive, taking a direct snap for a 9-yard touchdown. Sarkisian providing an extra wrinkle to the Kansas State staff that they’ll have to adjust to on the fly. Johnson threw a pop pass to Worthy for a 2-yard game. He ran the ball for 36 yards on his other five plays.

SCORE: Texas leads 7-0

HISTORY: With a loss, Texas would have eight losses for only the third time in program history. Texas went 1-9 in 1956 and 1-8 in 1938.