Creating a timer that ends in game quitting (UMG)

hope it helps, try this blueprint