Problem when local script references a module script

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to be able to have the module script store information without any issues
  2. What is the issue? Include screenshots / videos if possible!
    I have a module script that adds a new dictionary every time a player joins and it works well until it disappears because I reference it with a local script.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I checked with prints and it only starts telling errors about not finding the dictionary once I referenced it with a local script. I thought of using values instead of a dictionary but I don’t know if it will cause a bit more performance issues because there would be a lot of value objects and It will take a day to switch from this to that.
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

Module script stores the dictionary in itself.

please show us local script error line code or line get error to fix it and make sure you required module

I checked and Modules are all required.
For the script’s code on Module

Local module = {}
function module.AddPlayerStorage(plr)
	module[plr.Name] = {Items = {Log = 0, Stone = 0}}
end
function module.TellValue
return module[plr.Name].Items[Item]
end
Return module

Client Code

local StorageModule = require(game:GetService("ReplicatedStorage"))
local Logs = StorageModule[game:GetService("Players").LocalPlayer.Name].Items.Log

There is also a server script that fires the addplayerstorage function whenever a player joins.

StorageModule is requiring ReplicatedStorage not the module

Oh wait I wrongly copy/pasted that. It does references the module directly in the script.