How would I make this work?

So I want it so I can put :credits but it gives me an error:
require script

local core = require(script.Parent);

core.functions()
:manual()
:credits() -- This dosent work, it gives me an error : Workspace.CoreInstaller X.Script:3: attempt to call a table value

main script

local core = {}

core.functions = {
}

function core.functions:manual()
	print('Make sure your using a fully functional, original, and dated Core X! To use Core X, read the paragraps in CoreInstaller X.')
end;

function core.functions:credits()
	print('CoreX1.5: made by funnyfunns')
end;

return core
1 Like

I’m not sure how any of this works, but maybe it’s because you don’t have anything inside the functions table?

core.functions = {
}

You would call these functions by doing core.functions:manual() or core.functions:credits().

Doing…

local code = {}

function code.printText()
    print("Hello world!")
end

Is the same as…

local code = {}

code.printText = function()
    print("Hello world!")
end

Okay but have you tried putting the functions inside of the table?

core.functions = {
function core.functions:manual()
	print('Make sure your using a fully functional, original, and dated Core X! To use Core X, read the paragraps in CoreInstaller X.')
end;

function core.functions:credits()
	print('CoreX1.5: made by funnyfunns')
end;
}

I also haven’t seen you Connecting any of the functions using “:Connect”

One again I’m trash at tables and modules and stuff.

What do you mean? I don’t get what you mean by :Connect()

Ignore what they said it’s not relevant. They are trying to help on something that even they are mentioning, have no clue on what they are doing.

Your issue is how you are addressing the functions. When using ModuleScripts all you are doing is accessing a table not present inside the current script. So to use scripts in a table you have to call the table they are stored in.

For example…
core.functions:manual()