Trying to make a damage collection module script but have run into trouble

I want to have a dictionary inside my module script with the player and the dammage they have taken so I can run it through a for loop and make the player take damage at a specific time. Like this
module = {
MrGamerGod1000 = 200
}

what I tried to do is link the damage to the specific player by doing this:

module = {
player.Name = 200
}

The problem here is the game is thinking im trying to set the players name to 200 or something. Can someone tell me how I can link the player and the damage with a different method ?

You can try

local module = {
player.Name = 200
}

This will probably work. :slight_smile:
Reply me if it helps you, please.

Nope the game is not viewing “Player.Name” as a variable.

Do you update it when the humanoid takes damage?

local module = {
  [player.Name] = 200
}

Thanks d_hq this is working , I’m not getting an error anymore.

Literal indices must be wrapped within a pair of enclosing square brackets.