Function in module always returns nil

It returns nil
It returns nil
It returns nil

What is written in the script calling the module function?

Module("GET")

???

module("GET", Player.Character)

And just to be certainly clear, you are calling

Module("STUN",Player.Character,Time)

first?

Yes, I do that too…

30

Interesting. If you wouldn’t mind, could you attach the server script that calls the module? With the current information I have no idea what could cause this. Thanks!

Nevermind, seems like it works. I was confused because I was adding it in command bar but it still said that it’s nil, seems like if I do that out of bar it works perfectly fine :thinking:

Sorry for wasting your time :sweat_smile:

Don’t worry about it. You’re fine! I am glad you figured it out. The reason it probably didn’t work in command bar was because I don’t think you can do everything you normally can from a script. Have a good day!

1 Like