Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do something every time a data store is changed?

I would do a loop but because data stores have limits to how many times I can get them, is there a way I can do a function every time a data store is changed?

1 answer

✓ Accepted answer

DataStore.OnUpdate

It takes 2 arguments; the key to check, and the function to bind it to. For all intents and purposes it works just like an Event, but it doesn't use connect

This discussion is preserved as it was. New answers, comments, and votes are closed.