Unable to make a function in a module script

Hi, so my friend told me I am able to make functions inside modules and call them in other scripts, so I thought it’d be the easiest way to make a ragdoll/unragdoll function.

This is the error that pops up as soon as I try to make it:
image
I might be being stupid here (which is probably the case), but then again, I’m new to scripting. Could someone help me out? No other post really explained it to me and I really need some help. Thanks in advance.

local RagdollFunc = {
    Ragdoll = function()

    end,

}

return RagdollFunc

This is the only way to define functions in a dictionary.

1 Like

Oh, my bad. I didn’t know. Thank you!

1 Like

Glad to help. Tables are really useful as you start to use them more!

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