Search icon CANCEL
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
The Ultimate Roblox Game Building Cookbook

You're reading from   The Ultimate Roblox Game Building Cookbook Design immersive experiences with easy-to-follow recipes for world and game development

Arrow left icon
Product type Paperback
Published in Dec 2023
Publisher Packt
ISBN-13 9781805121596
Length 218 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Taylor Field-Draper Taylor Field-Draper
Author Profile Icon Taylor Field-Draper
Taylor Field-Draper
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Chapter 1: Getting Started with Studio Modeling FREE CHAPTER 2. Chapter 2: Introduction to Solid Modeling and CSG Tools 3. Chapter 3: Sculpting Terrain 4. Chapter 4: Learning to Use VFX 5. Chapter 5: Building a Multiplayer Obby 6. Chapter 6: Designing a House 7. Chapter 7: Single-Player Map Flow 8. Chapter 8: Building a PvP Map 9. Chapter 9: Monetizing Your Experience 10. Chapter 10: Extra Building Recipes 11. Index 12. Other Books You May Enjoy

Trailing behind players

The third available object that we will be going over in this chapter is Trail. The Trail object is like the beam effect as it has two points, though instead of the beam being statically placed, trails are emitted as the two points move within a space. This makes trails useful when creating things such as footprints, tracers, and moving objects. In this recipe, we will be looking at how to create a trail effect and then make it follow behind the players using a simple script.

How to do it…

We will start by inserting a Trail object into a part and then modifying its Lifetime and Color Sequence values to give it a fun gradient. We will then change the Max Length value and the ImageID texture. To finish, we will move the trail into the ServerStorage object and insert a script into the ServerScriptService object. To begin, follow these steps:

  1. Insert a Trail object into a part in Workspace.
  2. In the trail’s property box, change its Lifetime...
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