Hello, I’m developing a game similar to Rust or Roblox’s “Lost” and I need a way to save structures to a datastore from the workspace, i have folders in my workspace, being World > Structures > Walls, Foundations, Floors
Theo nly problem i sthe datastore, my game will hav e a set amount of servers and the information inside them will save according to their always the same privateserverid with reserveserver, but heres the issue.
I cannot :GetChildren() On a datastore.
I cannot go local lists = ds:GetAsyncChilderen()
and then do something like for i,v in pairs (lists) do
to save and load data.
So, to combat this i have to stuff everything into a single key, but this will be messy and turn out stuff like
local s, e = pcall(function()
dss:SetAsync("Structures", data.Name.."-"..rotX)
dss:SetAsync("Structures", data.Name.."-"..rotY)
dss:SetAsync("Structures", data.Name.."-"..rotZ)
dss:SetAsync("Structures", data.Name.."-"..posX)
dss:SetAsync("Structures", data.Name.."-"..posY)
dss:SetAsync("Structures", data.Name.."-"..posZ)
dss:SetAsync("Structures", data.Name.."-"..HealthLeft)
end)
And i’d need to figure out a way to have custom name sets for each entry to stop conflicting names, this is all very odd and complicated and seems very difficult to do for me, so any help would be great, I wish we could store dictionaries in datastores.
Extra note: Would using httpsservice with an out of roblox database be feasable, and if so, how?