Module Script Not Working Scripting Support Developer Forum Roblox
Module Script Not Working Scripting Support Developer Forum Roblox Double check that the module script is being required correctly. make sure the file path is correct and that the module is being returned correctly. if all of these things are correct and you’re still having trouble, you can try adding some print statements inside the functions in the module script to make sure they’re being called at all. Modulescripts cannot run code by itself, it can only return functions and execute those functions if require ()ed by scripts. you should put this line remotes:waitforchild('hatchegg').onclientevent:connect(module.hatchegg) into a script (localscript or script).
Module Script Not Working Scripting Support Developer Forum Roblox When another dev tries to use the modulescript the function runs properly. this is a major issue because i can’t test any modulescript period. my entire game runs on modulescripts and i literally cannot work on it because none of them run for me. I can’t even create new games in studio. i was gonna work on some stuff but couldn’t due to long loading times and things simply not working (e.g. things not loading in studio and experiences). Your module script is not working because you are not calling the function in the model script. create a name for a function in your modelscript, and call it like how i did above. Have you previously required this script with the command bar? if so, it’s using a stale copy, and you can fix it by just cutting and pasting the module back into the game, and trying again from the command bar. either that, or check you’ve got no spelling errors (capitalisation, typos, etc.).
Modulescript Not Working Scripting Support Developer Forum Roblox Your module script is not working because you are not calling the function in the model script. create a name for a function in your modelscript, and call it like how i did above. Have you previously required this script with the command bar? if so, it’s using a stale copy, and you can fix it by just cutting and pasting the module back into the game, and trying again from the command bar. either that, or check you’ve got no spelling errors (capitalisation, typos, etc.). Does the module script return something? i think it returns the library. is this your own module? i am looking at the module and i do not see any return statement at the end. no its one that is used by exploiters but i really like the design of it and want to transfer it over to roblox studio. I just placed both scripts in replicated first, seems to work. yet when i try to set something in a module script it still prints nil. thank you for help. How to use scripts in roblox: a beginner’s guide to game development how to use scripts in roblox is a question many aspiring developers ask when the. Before jumping into writing scripts, it’s important to have a clear idea of what scripting in roblox actually means. roblox uses a programming language called lua, which is known for being beginner friendly yet powerful enough for complex game mechanics.
Comments are closed.