Hello, I am having a issue with a module script:
local Settings = {} settings.Zones = { [1] = {"Barn", "Small", "101, 3030, 4004"}, [2] = {"City", "Huge", "All units"}, } settings.ApprovedTeamColors = {"Lime green"} return Settings
Error: ReplicatedStorage.FireSystem.Settings.Main:2: attempt to index function with ‘Zones’
I am not 100% sure on whats happing?
You just forgot to capitalize the 2 “settings”.
Thankyou so much forgot about that.
Regarding your error, the reason it wasn’t attempt to index nil with “Zones”/“ApprovedTeamColors” is because “settings” is a global variable exclusive to Roblox, it’s a function which returns a GlobalSettings object.
https://developer.roblox.com/en-us/api-reference/lua-docs/Roblox-Globals