In order to prevent heavy duping in my economy game, I need to make my datastore session locking, But I honestly don't know where to start on making a session locking system.

(No I will not use any datastore modules, I want to do this myself, but I need help)