Passing function in TABLE through :Connect() function

Hi, I have a problem, I assumed my method would work, but it doesn’t. So, I need to make sure that its possible. I am trying to do the aforementioned. Here how it looks.

color1.Changed:Connect(effectsModule.updateTheme)

effectsModule.updateTheme is supposed to be a function, from a module. But it keeps giving me this error, is it possible to do what I’m trying to?

The error message you got means you didn’t require the module, thus it tries to index something that neither a property or a child of EffectsModule

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.