Shan Foster saved his best for his final home game.
Vanderbilt's all-time leading scorer had a career-high 42 points and hit his final nine 3-point attempts, the last with 2.7 seconds left in overtime, to help the 16th-ranked Commodores to an 86-85 victory over Mississippi State on Wednesday night.
The Senior Night victory allowed Vanderbilt (25-5, 10-5) to finish unbeaten at home this season and kept alive its chances at a first-round bye in the Southeastern Conference tournament starting next week in Atlanta.
The Commodores finished 19-0 in Memorial Gym where they have won 32 of 33 games.
Jamont Gordon had 24 points for the Bulldogs (20-9, 11-4), who clinched the SEC West title last weekend with a win at Florida.
Mississippi State, which had a three-game winning streak snapped, needed a win to have any chance at winning the overall league title.
A.J. Ogilvy had 16 points and Alex Gordon added 14 for Vanderbilt, which trailed most of the game and even through most of overtime.
Gordon had to leave with 29 seconds left in overtime because of cramps.
Charles Rhodes had 22 points for the Bulldogs, while Jarvis Varnardo added 16 and Barry Stewart 10.