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

Building a functional TV

In this recipe, we will create a large flat-screen TV model that can be mounted on any flat surface. After building the TV model as a static prop, we will insert a script into the screen that will allow us to insert our own image IDs. These images will display on the TV and change every few seconds. To do so, we will learn how to modify the script to play to the parameters that we will set.

How to do it…

We will begin by scaling a square part to the size and shape of our TV and attach a wall mount to the back of it. Next, we will create a border around the TV for the screen to sit in. We will create a neon screen, and then adjust the bloom intensity of the material. To finish, we will color the TV and then insert a script, which we will customize with our own values. Let’s begin:

  1. To begin this recipe, insert a square part, then scale it 11, 6, 0.5 studs.
  2. Add a smaller square part into the center of the back face. This part will attach to the walls so that the TV can hang.
  3. Next, create a border around the edges of the TV using square parts roughly 0.75 studs thick. The border should be flush at the back and overhang the front of the TV by 0.25 studs:
Figure 1.13: Front and back view of TV

Figure 1.13: Front and back view of TV

  1. Duplicate the rectangular body part of the TV and move it forward 0.1 studs to create the screen of the TV.
  2. Change the material of the part we just placed to Neon.
  3. Rename the neon screen part Screen.
  4. Select the neon screen, open the color wheel, and select a color shade that is not overly intense, such as (159, 158, 161). You can see the difference in bloom in Figure 1.14:
Figure 1.14: Front and back view of TV

Figure 1.14: Front and back view of TV

  1. Next, add two small square or cylinder neon parts to the bottom-right corner of the front of the TV. These represent the power buttons.
  2. Select all the parts and group them into a model.
  3. Rename your model Prop_Tv.
  4. Now, color the parts within the TV model to (35, 35, 28).

    You now have a finished static TV prop. If you would like to add functionality to your TV, continue to step 12.

  5. Insert into the screen part. The script is located inside the Chapter 1 folder.
  6. Double-click inside of the screen part to open Script Editor.
  7. Paste in your own image IDs in the place of 999999, such as 9900113573, 13572778873, or 13544130736. imageID is a string of numbers found in the Texture box if you upload the image onto a decal.

    To learn how to find an image ID, check the There’s more… section at the end of this recipe.

  8. Modify the number inside the parentheses of wait(10.0). The number represents the amount of time it takes to change slides. You can now exit the script.
  9. Lastly, select all of the parts in the TV model and anchor them.

This completes the recipe on how to make both a static and functioning TV:

Figure 1.15: Completed functioning TV

Figure 1.15: Completed functioning TV

There’s more…

To find an image ID, navigate to Roblox Studio Toolbox and find the Free Image search option. Insert an image onto the face of a part, then double-click the decal to view its properties in the Properties menu. Copy the numbers at the end of the Texture link.

You have been reading a chapter from
The Ultimate Roblox Game Building Cookbook
Published in: Dec 2023
Publisher: Packt
ISBN-13: 9781805121596
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