Alright I’ve had this problem for a while and it has been getting on my nerves forever:
Here’s a code snippet:
local saveattempts;
repeat
saveattempts += 1;
local success, err = pcall(function()
print("A");
return TycoonStore:SetAsync(player.UserId, savedData);
end)
print("B");
if not success then error(err); end;
task.wait();
until success or saveattempts >= 7;
Every time WITHOUT FAIL, this loop will print A but won’t print B. Best part? No error message. No hints to what’s going on. What the hell roblox?
In case anyone is wondering, savedData is a dictionary wrapped inside an array wrapped inside another array. For example, when I print out the data I’m trying to save, this is what prints in the output:
{
[1] = {
["boughtButtons"] = {
[1] = "Buy Colorizer ",
[2] = "Buy Materializer "
},
["presentButtons"] = {
[1] = "CustomButtonTextStyle1",
[2] = "Style2",
[3] = "Style3",
[4] = "Test Button "
}
}
}
The script will literally stop running after reaching the SetAsync line. Why am I getting no error or no type of message. It doesn’t even give the generic “Module failed to load” vague message…
Anyone else know what’s going on? Anyone else have this problem?