You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? I want datastore not being tied to the player.
What is the issue? The problem is that the data is tied to the player in which I do not want.
What solutions have you tried so far? Their is none as far as I know.
I using datastore2 but I just want the data not being tied to the player I just want the server to be able to load the data that isn’t from the player.
-- i don't want to have the data tied to the player
local ServerBrowserStorage = DataStore2("ServerBrowser",Player)
Data = ServerBrowserStorage:Get() -- this loads the data
ServerBrowserStorage:Set(Data) -- this saves the data
oh, okay wait.
you can get “myDataStore” (or any thing you want to call it)
like this,
local datastoreservice = game:GetService("DataStoreService")
local myDataStore = datastoreservice:GetDataStore("globaldata") -- global data for example
local success, errorm = pcall(function()
local mydata = myDataStore:GetAsync("globalkey") --you can change this to any key
end)
if success then
print("Success loading global data!")
end
the first two line is how you get “myDataStore” and the other lines are just example
Datastores have been proved to be extremely bad at handling saving issues. Data corruption when saving on leave, data corruption without warning after too many requests, etc.
As for OP’s question, @SR02justin could you please elaborate on what you mean by a datastore that isn’t tied to a player?
Data is never saved to the player. Data is saved by keys, as long as you have that key you can always access the data at any time. Data is always saved (by datastores) to the datastore itself.
I see what you’re trying to create however I really don’t recommend using datastores. It’s not secure and can cause tons of errors. I recommend using a node.js backend or memorystoreservice (better because the data won’t be saved in the end) and the likes.
could I use discord api maybe? Post a comment with the list of servers with ServerId, ServerRegion, Map, Gamemode, Team. Then get the list of server from the posted comment? Webhooks
Arsneal Server Browser is quite broken. If the server just started then their will be no servers listed in there. Arsenal devs say it is a api limit prevents the servers from showing
Another terrible idea, you’d need to identify those messages, split them, and get around message limits (2000 characters) and so on. Just use a node server (node.js) or memoryservice. There are articles on how to do this as well.
Here is an opensource module called MatchmakingService that utilizes MemoryStoreService for its queueing.
You want a system that shows available servers so I recommend going with MemoryStoreService for it or using a node backend (node.js) that would save and remove entries from a mongodb database.
hello again, sorry for late reply. I’m not really familiar on how to use DataStore2, since i always use DataStore. You can still make DataStore Secure without using datastore2