How to Make Conveyor Belts

From Legacy Roblox Wiki
Revision as of 12:21, 23 August 2008 by >Mindraker (TOC)
Jump to navigationJump to search

Introduction

A conveyor belt is an object that pulls other objects along on top of it. They are often used in assembly lines, in factories. This tutorial will teach you how to build a working conveyor belt.

How To Make One

There are two ways to make a conveyor belt. One way is to give a brick an OnTouch script that will give Velocity to any brick touching it. This is just needlessly complicated and useless. So, instead, we will make a brick, anchor it, and give it velocity.

Create The Brick

Start by a creating a brick. Its top surface should be smooth, so it doesn't form any connections. You can make the color whatever you want, though. Once you've created the brick, stretch it out, to the length of your conveyor belt. You should probably build some small walls on it, too, so that whatever rides on it won't fall off.

Give It Velocity

For the next step, we have to give it the ability to move/launch other bricks. So, in the Roblox Editor, highlight the brick and find the property 'Velocity'. Change its coordinates according to the direction of your conveyor belt. They're X, Y, Z coordinates, so you won't need the middle one, Y, -- the vertical direction. Negative numbers apply the same amount of force as positive numbers, but in the opposite direction. You MUST do this in edit mode or it won't work.

Final Step - Anchor It

The final step is to highlight the conveyor belt brick in the Roblox Editor. In its properties, there should be a checkbox labeled, 'Anchored'. Place a check here to lock it in place. Now that it's locked in place, it applies its velocity to whatever touches it.

See also

Cartesian Coordinate System