Formatting issue

function EditStats(Player,Stat,Amount)
	
	
	game.Players[Player].Leaderstats.[stat].Value = game.Players[Player].Leaderstats.[stat].Value + Amount
	

	
end


script.LEADERSTATS_EVENT.Value.Event:Connect(EditStats)

how am i supposed to format this?

stat is supposed to be Stat
and when youre using square brackets ( “[ ]”) you dont put a dot before them.