Book Image

The Ultimate Roblox Game Building Cookbook

By : Taylor Field-Draper
Book Image

The Ultimate Roblox Game Building Cookbook

By: Taylor Field-Draper

Overview of this book

Roblox is a massively popular online gaming platform, but it can be challenging to maneuver for beginners who don’t know where to start, as well as seasoned developers who tend to struggle with limited scripting tools that make transitioning from other platforms such as Unity more difficult. The Ultimate Roblox Game Building Cookbook is an invaluable asset for any Roblox developer looking to take their skills to the next level. With a wide range of recipes, this Roblox book covers everything from the basics of game development on the platform to advanced techniques for creating immersive experiences. As you progress through the chapters, you'll gain a deep understanding of the proper workflow and building methods that will enable you to create extraordinary virtual worlds. You'll gain insights into creating complex game mechanics, such as multiplayer games, working with textures, and special effects in games. This cookbook will also provide you with tips from top Roblox developers, as well as valuable guidance on how to monetize your games and stay up to date with the latest trends in the Roblox development community. By the end of this book, you’ll have gained a comprehensive understanding of Roblox game development and design.
Table of Contents (13 chapters)

Creating an atmosphere with lighting

With our map now built out and filled with props, we can begin the process of adding volumetric lighting to the world space. We will use the provided Roblox lighting objects such as SurfaceLight and PointLight to illuminate the various regions of the map. We will use lanterns and fire to further create a sort of “flare” that will help lead players forward even in dark confined spaces.

How to do it…

We will create a light-emitting part using SurfaceLight, and then adjust the light object’s properties. We will then duplicate it around the map to illuminate large rooms. We will then add pointlights to the wall-mounted light fixtures and fire and spotlights to the ceiling light fixtures. To start, follow these steps:

  1. Create a large flat part positioned over the top of the starting room. It should be scaled roughly the width and length of the room.
  2. Disable the parts’ CanCollide property.
  3. Next,...