Error While Updating Leaderboards (HELP NEEDED)

Hello! First off, I am very confused with this. I’m not new when it comes to datastores. So, I’m not sure why it’s bugged. It started occurring once I changed the integer values to number values while I use SetAsync(). Here’s the code:

for _, player in pairs(game.Players:GetPlayers()) do
		MissionsLeaderboard3:SetAsync(player.UserId, math.floor(player.leaderstats.Rebirths.Value))
	end

First of all it would help to post the error thats being outputted.

Also updating all the player’s values at once can be quite expensive. DataStores are not very effective at writing quickly. It would be better to save the data when the player leaves.

1 Like

Oh, my bad, “Invalid Https Request, Line 120” Line 120 is the middle SetAsync code. And also it never had this issue before.

I also don’t get why it’s an Https Request. Since you only need API.

Sorry, but I do still need help.