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

how to make a function inside a module script?

I don't know if someone will actually answer me, but I just don't understand the videos on this subject. Can someone please help?

2 comments

0

Check the wiki, we do NOT make scripts for free. Check out the wiki and look up "ModuleScript". On the bottom there are 3 examples. Again, we do NOT make scripts for people.

0

You need to make the script yourself first before anyone can help you. The link is here: http://wiki.roblox.com/index.php?title=API:Class/ModuleScript#Example

1 answer

Heya,here's a quick example:

local module = {}
module.SomeFunction=function(Message)
print(Message)
end
return module

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