Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

please help? " 14:50:39.242 - 502: API Services rejected request with error. HTTP 403 (Forbidden)"

please help me the code is

game.Players.PlayerRemoving:Connect(function(player)
	datastore:SetAsync(player.UserId, player.leaderstats.Milk.Value)
	datastore:SetAsync(player.UserId, player.leaderstats.Coins.Value)
end)

1 comment

0

Go to your game settings and enable API Services

1 answer

✓ Accepted answer

Basically, you have to go to team create and make sure your the owner, if you're not, then you cannot use datastores.

Make sure you publish the game.

1 comment

0

ok

This discussion is preserved as it was. New answers, comments, and votes are closed.