Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Spawning a function/instance in Module results in a Module Error? [SOLVED]

Hey there, I've been off studio for over 4 months, and I believe a new Lua Update was released around that time, and it broke many of my scripts that were mainly Modules, usually I'd set up a function in a module, and call it with a script using:

local Module = require(game.Workspace.TestModule)
spawn(Module.FadeScreen)

And the module would probably contain code like

local TestModule= {}

function TestModule:FadeScreen(config)
	--blah blah
end


return TestModule

Around one month before I left studio for some time it worked, but now I don't know what to do or replace it with.

1 answer

Actually I found out it was a beta feature that broke it lol

This discussion is preserved as it was. New answers, comments, and votes are closed.