How to create a variable in a table?

  1. What do you want to achieve? I want to insert a variable into a table so that I can change its value in the future

  2. What is the issue? i dont know how to do it

  3. What solutions have you tried so far? my searches in the answer were not successful

players = {

}

game:GetService("Players").PlayerAdded:Connect(function(player)
	for i,v in ipairs(game:GetService("Players"):GetChildren()) do
		if v == player then
			table.insert(players, table.create(i, v))
			--i want "Hero" to be variable
			table.insert(players[i], "Hero")
			for i,v in ipairs(players[i]) do
				if i == 2 then
					print(v)
				end
			end
			print(players)
		end
	end
end)
diccionary = {
players = {
variable = nil;
}
}
game:GetService("Players").PlayerAdded:Connect(function(player)
	for i,v in ipairs(game:GetService("Players"):GetChildren()) do
		if v:IsA("Player") then
			table.insert(diccionary.players, table.create(i, v))
			--i want "Hero" to be variable
			table.insert(diccionary.players[i], "Hero")
			for i,v in ipairs(diccionary.players[i]) do
				if i == 2 then
					print(v)
				end
			end
			print(players)
		end
	end
end)

simply make a dictionary limitsdsdasdsa