Datastore not working

I’ve got my leaderstats setup, but for some reason it doesn’t load when someone joins.

local DataStoreService = game:GetService("DataStoreService")

local moneyDS = DataStoreService:GetDataStore("moneyDS")

game.Players.PlayerAdded:Connect(function(plr)
	local leaderstats = Instance.new("Folder")
	leaderstats.Name = "leaderstats"
	leaderstats.Parent = plr
	
	local cash = Instance.new("IntValue")
	cash.Name = "Money"
	cash.Parent = leaderstats
	
	local data
	local success, errormessage = pcall(function()
		data = moneyDS:GetAsync(plr.UserId.."-cash")
	end)
	
	if success then
		cash.Value = data or 1500
	else
		warn(errormessage)
	end
end)

game.Players.PlayerRemoving:Connect(function(plr)
	local success, errormessage = pcall(function()
		moneyDS:SetAsync(plr.UserId.."-cash", plr.leaderstats.Money.Value)
	end)
	
	if success then
		print("Data successfully saved")
	else
		print("Error when saving data")
		warn(errormessage)
	end
end)

It seems fine to me. I am not sure why it won’t do so. I have the same script with different values on my obby and it does work.

Oh, it works now! I think I was running a command to change my money in the command bar. Doing it in the F9 server command bar worked.

Ok good. Any more help or is that it?