--Module Script
local MODULE = {
["test"] = "test123"
}
return MODULE
-- Local Script
local test = require(game.StarterGui.CoreScripts.test)
print(test["Test"]) --> prints "test123"
The other method:
-- Module Script
return function()
return "test123"
end
-- Local Script
local test = require(game.StarterGui.CoreScripts.test)
print(test()) --> prints "test123"
That is weird, seems to work fine for me. Try restarting your studios, or perhaps rewriting the Lines. I know Roblox can be buggy like that some times, and itβs not uncommon for IDEs to return incorrect values some times.