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)
Basically, you have to go toteam create
and make sure your the owner, if you're not, then you cannot use datastores.
Make sure you publish the game.