When you first add a module script, this is how it’ll look: local module = ” line and the “ return module” line. A new module script will open up in your workspace, ready to edit as you see fit.Click on the purple button labeled “Module Script.” Find the “Advanced” section in the top-right.Head to the “Model” tab in Roblox Studio.Here’s how to add a module script in only a few quick steps: Then, when you’re writing other scripts about battling enemies or going on adventures, you can call out to the module script to grab the data you need. For example, many games involve money or rewards given to the player when they do things, like beating enemies or winning quests.Ī module script can be used to store the function and relevant data for rewarding a player. In terms of their usage and purpose, module scripts are usually used for storing functions that appear repeatedly in your game.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |