I have a DataStore with banned players script which sucessfully works. But I have a question.
Let's say I have a moderator taking in reports in a Public Server and bans a player which is playing in another server adding him into a table which is saved into the DataStore which holds bans.
Will that DataStore also update on other public servers? And on private servers? Does :OnUpdate() detect that the DataStore has been updated on the other server?
If it doesn't, how can I send a signal through every server to verify if the player is in it and kick him?
yes, datastores does update globally, this is a basic script to check for an update
local datastore_service= game:GetService("DataStoreService") local your_datastore = datastore_service:GetDataStore("Datastore") your_datastore.OnUpdate("yourkeyhere", function() print("update") end)
hope that script helps you!
edit: @vulkarin made a simple key ( ?° ?? ?°)