How can I save tool values?

Hey! So I want to have a level value in my tool, but ofc it wont save if I leave. So does anyone know where I can start, or do to save the value?

use datastore and save those exact values of the tool in the data. i recommend using profileservice for datastore so you won’t have to go through pain