I want people to configure the load asset to customize the looks from the model. But the script does not read the other content table from the "Settings Script"
The first script is named "Settings" And is a Module script.
local settings = {}
--Lightings Configurations
settings.SunFlare = true --Additional Custom Sunrays to the sun (Not Roblox Default Sunrays)
return settings
And i have another script name "MainSettings_Operation" Is another module() script.
local settings = settings(getmetatable)
if settings.SunFlare == true then
script.Parent.Lensflare1:Clone().Parent = game.StarterGui
end
SunFlare is set to "True" And i want the script to Clone the "Lensflare1" For the sun effects
However, the script does not give the gui and i Might have use a wrong code? Or I have a mistake in this system?

6 comments
i believe to access a module script you need to require it
i dont know much about module scripts though, someone correct me if im wrong
You do realise the settings() function returns the studio settings right
The ones you can get with pressing ALT + S or FILE > Settings, and what is getmetatable doing here
What can i do for the script to access the other script settings to enable the SunFlare?
I see multiple people here answering your question and even 2 official answers telling you what to do, and you simply are not listening.