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