Modulescript values not changing

Hi, I’m trying to achive a way of having one set ModuleScript of settings but with a way for a user to define their own. For example, this could be the standard settings

local Settings = {}

Settings.Name = "abcd"
Settings.AnotherVal = "123"

return Settings

And the user would be able to have their own ModuleScript such as this

local Settings = {}

Settings.Name = "fghj"

return Settings

, What I want to achive is the user’s modulescript changing the value in the main settings one while leaving other values intact. This is what I have currently but it’s not working

 local modifiedTune = require(clonedVehicle.Tune)
                    local actualTune = game.ServerStorage.TictacAutos.VehicleComponents.Tune:Clone()
                    local requiredActualTune = require(actualTune)
                    
                    clonedVehicle.Tune:Destroy()

                    for key in pairs(requiredActualTune) do
                        if modifiedTune[key] then
                            requiredActualTune[key] = modifiedTune[key]
                        end
                    end
                    
                    actualTune.Parent = clonedVehicle

I also need to grab these values from both the server and the client

you could clone the modulescript table via this

Would this not just have the same effect as requiring it? As I still need to update the values in the main settings module

you could clone the actual tune module from like SS or something then modify that if you still want to store the normal tune values

That’s what I’m doing currently, here’s an update as to what I have

local actualTune = game.ServerStorage.TictacAutos.VehicleComponents.Tune:Clone()
                    local modifiedTuneCopy = deepCopy(require(clonedVehicle.Tune))
                    local actualTuneCopy = deepCopy(require(actualTune))
                    
                    clonedVehicle.Tune:Destroy()
                    
                    for key,value in pairs(modifiedTuneCopy) do
                        if actualTuneCopy[key] then
                            actualTuneCopy[key] = value
                            print("Found " .. tostring(key) .. " in modified tune, updating in main tune to",value)
                        end
                    end
                    
                    local required = require(actualTune)
                    
                    required = actualTuneCopy
                    print(required)
         
                    actualTune.Parent = clonedVehicle

Have solved it as I worked out it could all be done from the client anyway