Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
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

Creating a ladder

Roblox has a unique system that allows many different objects to function as ladders. In this recipe, we will be looking at three different methods to build a functional ladder. First, we will look at what the default truss object is and how it can be used as a climbable object. Next, we will create a rope with a part and then place an invisible truss over the top, allowing players to climb the rope. Lastly, we will use a primitive square part to build a realistic-looking and functioning ladder by using evenly spaced parts placed vertically.

How to do it…

We will first examine the truss part, which we will then use to create a climbable rope hanging from a wall. Next, we will create a ladder using blocks spaced apart vertically. Let’s dive in:

  1. To begin creating our first ladder, select the truss part provided in the Chapter 1 folder.
  2. Alternatively, open Toolbox to the Free Models section, search for truss, and then insert it onto the baseplate:
Figure 1.16: Truss part

Figure 1.16: Truss part

  1. Resize the truss 14 studs along the y axis.
  2. Next, anchor the truss by checking the Anchor checkbox located in the truss’s Properties box. As seen in Figure 1.17, you can see that players are able to climb the default truss without any modifications. This is the most basic type of Roblox ladder:
Figure 1.17: Player climbing a truss

Figure 1.17: Player climbing a truss

  1. To begin your second style of ladder, create a tall cylinder part the width of a rope. In this example, the cylinder is 14, 0.3, 0.2 studs and the Orientation value is set to 0, 0, -90. We will be using this part to represent a rope that the players can climb up.
  2. Next, create a large wall using a square part that is the same height as the rope – in this case, 14 studs tall.
  3. Move the rope so that it is against the wall.
  4. Now, we will create a rounded elbow like what we learned in step 7 of the Creating wooden crates recipe. To do so, insert a sphere part scaled to the diameter of your rope part. Keeping the diameter of the sphere the same as the rope cylinder will help ensure that the sphere fits seamlessly into the cylinder.
  5. Move the sphere along the rope until it correctly rounds the top cap.
  6. Duplicate the rope part and line it up horizontally to the sphere at the top of the rope, completing the elbow, as shown in Figure 1.18:
Figure 1.18: Rope hanging over the edge of the wall

Figure 1.18: Rope hanging over the edge of the wall

  1. Change the rope’s color to 150, 85, 85.
  2. Change the rope’s material to fabric.
  3. Next, move the truss from step 3 over the top of the rope so that the rope is inside of the truss.
  4. Change the transparency of the truss to 1, making it invisible.

    Now, your rope will appear to be climbable, though the player will be climbing the invisible truss inside of the rope.

  5. Group the parts of the scene together and rename the model Rope. This completes the second method of creating the ladder:
Figure 1.19: Player climbing the rope

Figure 1.19: Player climbing the rope

  1. For the third and final style of ladder, create a rectangle part. This example uses a 9.5, 1, 2 stud part.
  2. Next, duplicate the part and move it up roughly 2 studs above the preceding part. Continue to repeat this step until you reach your desired ladder height. These evenly spaced parts function as ladder rungs, which enables players to climb them like a ladder.
  3. Now, place vertical ends on both sides of the ladder using two square parts. Rescale the part just beyond the top of the ladder rungs.
  4. Select every other rung part on the ladder.
  5. Now, change the part color of the selected rungs to a slightly darker color tone than the other rungs. In this example, the lighter rungs are colored (99, 95, 98) and the darker rungs are colored (77, 74, 76). This creates a contrast in the colors by alternating the lighter and darker tones.

This completes the third method of creating ladders as well as this recipe:

Figure 1.20: Player climbing a ladder made of square parts

Figure 1.20: Player climbing a ladder made of square parts

You now have the understanding to create a variety of climbable surfaces.

There’s more…

Trusses can only be scaled in increments of 2 studs at a time. They have a minimum size of 2 x 2 x 2 and a maximum size of 64 studs.

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 $19.99/month. Cancel anytime
Banner background image