Describe the issue briefly
‘’‘local function loadSkinsData(player: Player) dataStoreQueue:add(function() local success, data = pcall(skinsStore.GetAsync, skinsStore, player.Name) if not success then loadSkinsData(player) return end if not data 또는 data == “null” then updatePlayerSkinsData(player, defaultSkinData()) return end local decoded = json.decode(data) – HttpService:JSONDecode(data) updatePlayerSkinsData(player, decoded) end) end local function saveSkinsData(player: Player, tryRightNow: boolean) – 플레이어의 데이터 캐시에서 현재 스킨 데이터를 저장합니다 local state = playersStates[player] if not state then return end local skinsData = state.skinsData가 아니라면 skinsData를 반환하고 tryRightNow가 아니라면 end를 반환하고 local success = pcall(skinsStore.SetAsync, skinsStore, player.Name, json.encode(skinsData) ) if 성공하면 return end end end dataStoreQueue:add(function() --print(“DataStore 처리 중!”) local success, _ = pcall(skinsStore.SetAsync, skinsStore, player.Name, json.encode(skinsData) ) if not 성공하면 saveSkinsData(player, false) return end --print(“DataStore 처리 완료!”) end) end Players.PlayerRemoving:Connect(function(player) saveSkinsData(player, true) local state = playersStates[player] if state then if state.pvpGodModeBed:delete() state.pvpGodModeBed = nil end task 종료.wait(10) playersStates[player] = nil end) – 임시 데이터 저장 task.defer(function() while task.wait(10) do local players = Players:GetPlayers() for i = 1, #players do local player = players[i] saveSkinsData(player, true) end end end)’‘’
이렇게 임시로 10초씩 저장하도록 했는데도 스튜디오에선 잘 저장이 되는것 같은데 인게임에서는 저장이나 로드가 전혀 안되는거같아요.
Environment
Production
Expected Result
스튜디오에서 테스트한것과 같이 저장이 되야합니다
Issue Frequency
20%~80% (Often)