How to keep a slider position?

Drag from the blue pin of Cast to gameinstance node and type the name of your variable. You’ll see Get and Set nodes in the list.