I wanted to make a RPG game with my friend and looked at “Evercyans RPG Kit” for help. After looking at his module script for the basic enemy i am confused on why he types
“function module.Load()”
i have tried googling the answer but find nothing. does the module script not load by itself? or does .Load() have multiple purposes?
.Load()
is just a method for the ModuleScript. It’s basically a function with that name. Some people call it Load, Others call it Initialize or even Start. It’s not necessary to name it Load to make it work, It’s just a choice.
Some modules use it to start stuff that it depends of, Like a folder, RemoteEvent and in between other stuff that may vary depending on the ModuleScript.
2 Likes