

If the content you created breaks any subreddit rules, it may be removed without warning (this includes breaking Rule #3 by having referral links/codes in the description of your video)! If you abuse this privilege, expect your content to be removed. Peddling any content you created yourself is allowed to an extent. Read the FAQ/Living Sticky before posting! Posting questions that are answered in the FAQ or the Living Sticky will get your post removed.īegging for rewards codes (ex: xbox, gc codes, etc.) is not allowed. If you stand to make money from a website that you link in your post, it is not allowed. Posting referral links and codes of any sort is not allowed. Have you used module scripts much in Roblox Studio? Have you got any useful coding tips and tricks to help beginners? Share your wisdom and thoughts in the comments below.Posting personal information (real or fake) about yourself or anyone else is not allowed.įlaming/trolling/being a dick is not allowed. Once you’ve learned the basics and created your first module script, it should become easier to make more and reap the rewards, saving lots of time and getting your code organized and under control. But it’s strongly recommended to figure them out and make them a part of your coding skill set. If you’re just starting out with Roblox scripting, module scripts may seem tricky. Don’t try to add anything before or after these two areas, as it may cause confusion and lead to errors that are difficult to resolve.

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.
