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

Why does it take 8-10 seconds to save a value for me?

Asked by 8 years ago

Im not sure why but when I try saving more than one value it takes a very long time, this is a problem because I need to save hundreds of values for my game and can't have this happen. Please help thank you, here is the script.

    v1.Parent.Parent.MenuFrame.Save.MouseButton1Down:connect(function()
        player.PlayerGui.ScreenGui.MenuFrame.Visible = false
        ds1:SetAsync(player.UserId, v1.Pokemon.Value)
        print'clear?' --prints immediately
        ds1:SetAsync(player.UserId, v2.Value)
        print'Text 2 Clear' --takes about 10 seconds for this to appear
        ds1:SetAsync(player.UserId, v3.Value)
        print'3'-- take 10 more seconds
        ds1:SetAsync(player.UserId, v4.Value)
        print'4'-- +10 sec
1
Why not save the values in an array instead of individually? BlackJPI 2658 — 8y
3
Might have something to do with this: http://wiki.roblox.com/index.php?title=Data_store#Limitations dyler3 1510 — 8y

Answer this question