Data Store Problem

I’m having a problem with my data store.
Each time I leave Testing in studio everything freezes for a good 5 seconds then in the output shows this message:

This is my saving script:
image

am I doing something wrong? If so any solutions?

1 Like

Can you show the part of the code where you called* the function?
The error/warning means you’re saving data too often.

image the two parts where I call the function

Most likely came from the :BindToClose function.
Not sure how to fix this because I’ve never ran into this problem before. Try adding a small yield to the for loop. (Might be a better option out there, I’ll do some research and come back if someone doesn’t already give you the solution)

1 Like

Alright thank you I will try your suggestions, good day.

It was the BindToClose function, thank you.

1 Like