Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i fix the following problems of items not clone and/or not saving?

Asked by 4 years ago
01local Players = game:GetService("Players")
02local DataStoreService = game:GetService("DataStoreService")
03local ServerStorage = game:GetService("ServerStorage")
04 
05local playerdata = DataStoreService:GetDataStore("testdata")
06 
07local tools = ServerStorage.Tools
08local inventories = ServerStorage.Inventories
09 
10Players.PlayerAdded:Connect(function(client)
11    local key = "client_" .. client.UserId
12    local inventory
13    local err, su = pcall(function()
14        inventory = playerdata:GetAsync(key)
15    end)
View all 67 lines...

basically the error function is supposed to report errors and send the player to a limbo housing, i need to clone the item to the players inventory and i cant clone and save the data even with manual cloning. I cant seem to identify the problems

1 answer

Log in to vote
0
Answered by 3 years ago

Apparently it only happened with single player servers and i was able to fix it with game:BindtoClose

Ad

Answer this question