I’ve recently tried to make my own replication system although it wasn’t very optimized and it often bugged so I decided to use replica service although I couldn’t find any documentation that properly shows how to use it nor did I find any real tutorials (except for 1 deform post that seemed outdated and um, slightly weird ?)
either way, any help towards this subject would be greatly appreciated
Data replication? Can’t you just copy the data over? for example this is how I copied my data from a regular datastore to an ordered datastore. This was for leaderboards, but it basiaclly follows the same principle:
local Pages = datastore:ListKeysAsync()
local Page = Pages:GetCurrentPage()
for Every, Key in Page do
local success, errormessage = pcall(function()
local data = datastore:GetAsync(Key.KeyName)
if data then
OrderedStore:SetAsync(Key.KeyName, tuple)
end
end)
if success then
print("Success")
end
end
so I forgot to mention this in the original post but I use profile service, as for leaderstats (not sure what you meant by leaderboards), I have tried it although it didn’t work well since I’ve had errors with it a lot, additionally, explaining what happens in this script would be helpful since I’m a bit confused on how this replicates from the server to the client
i have tried this although remote events aren’t very optimized whenever I send a lot of data, and for every client firing the remote, it won’t be pretty in terms of lag, additionally, sometimes they fail and it just results in incorrect replication
I ended up finding my own method though so thanks for the help, ill be marking this as the solution to close this post