Collect Item multiplayers/Replicated

Thank you for your response but how to update the values?
if I get remaining kit for set remaining kit I get an infinite loop error
same thing for the repnotify function of total kit