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

2 comments

1

Why not save the values in an array instead of individually?

3