Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Coding Roblox Games Made Easy, Second Edition

You're reading from   Coding Roblox Games Made Easy, Second Edition Create, Publish, and Monetize your games on Roblox

Arrow left icon
Product type Paperback
Published in Jun 2022
Publisher Packt
ISBN-13 9781803234670
Length 302 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Zander Brumbaugh Zander Brumbaugh
Author Profile Icon Zander Brumbaugh
Zander Brumbaugh
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface Section I: Introduction to Roblox Development FREE CHAPTER
Introducing Roblox Development Knowing Your Work Environment Section II: Programming in Roblox
Introduction to Luau Roblox Programming Scenarios Creating an Obby Creating a Battle Royale Game Section III: The Logistics of Game Production
The Three Ms 50 Cool Things to Do on Roblox Worksheet Answers Other Books You May Enjoy
Index

Setting up the backend

Similar to when creating the obby, the backend of the experience should be created to be modular. As before, we will be creating a main server-sided script called ServerHandler, which all server modules will be under. So you do not need to refer back to the previous chapter. The code that should be in the ServerHandler script is included here:

for _, module in pairs(script:GetChildren()) do 
    if module:IsA("ModuleScript") then
        task.spawn(function()
            require(module)
        end)
    end
end

Moving forward, we will be introducing the modules that should be added to the ServerHandler script to create the main functionalities of the experience. As with the previous chapter, you are encouraged to test each system you make, assuming said system is not dependent on one you haven’t yet made. Testing throughout the development process not only ensures you do not have bugs but is motivating as well! Next, we will set up...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime