Issues with Global Datastore?
I have some errors regarding a global datastore not functioning correctly. I will attach the code I am using to call said value and to set it. HTTP and Roblox Studio API are all good.
Setting code:
1 | local CreatedServer = TeleportService:ReserveServer(game.PlaceId) |
9 | serverData [ CreatedServer ] = Dict |
Original setup:
01 | local DataStoreService = game:GetService( "DataStoreService" ) |
02 | local HttpService = game:GetService( "HttpService" ) |
04 | local serverDataStore = DataStoreService:GetDataStore( "jreiogehrughwrjghew3kjghe" ) |
07 | local success, getServerData = pcall ( function () |
08 | return serverDataStore:GetAsync( "Main" ) |
12 | serverData = getServerData |
15 | local function VerifyServers() |
16 | for code,data in pairs (serverData) do |
23 | for i,v in pairs (serverData) do |
24 | print (i, v [ "ServerName" ] ) |
It calls nill. I have it screenshot. It’s kinda hard to read.
photo