How to Make a Elevator on Roblox
- 1). Visit your Roblox place and click the "Edit" button.
- 2). Open the "Insert" menu. In the drop-down menu, click "Bricks." Click on a brick of the desired color to add it to the game. This brick serves as the base for the elevator.
- 3). Drag and drop the brick to the desired location. Click on the brick to highlight it.
- 4). Open the "Insert" menu and click "Object." Click "BodyPosition" and click "OK." Open the "Insert" menu, click "Object," click "BodyGryo" and click "OK."
- 5). Add an invisible marker brick, next to the original brick. Click on the "Insert" menu, click "Bricks" and click on the clear brick. Drag the brick next to the original brick. Place your cursor over the brick and press the icon that resembles a platform. Wait for your cursor to resemble and anchor and click on the brick.
- 6). Right-click on the brick and scroll to "Properties." Click on "BodyGyro" and set the "Y" and "Z" values until they match the "X" value.
- 7). Open the "Properties" menu of the original brick. Click on the "BodyGyro" option and note the X, Y and Z values. Right-click on the clear brick and click on "BodyGyro". Set the values so that they match the values of the original brick.
- 8). Repeat this process for each level of the elevator.
- 9). Add a script that creates a button that moves the elevator. Click on the "Insert" menu and scroll to "Script." For example, this script explains the location of each block on a two-story elevator:
local block = script.Parent
local block1 = script.Parent.Parent.Part1
local position1 = script.Parent.Parent.pos1
local position2 = script.Parent.Parent.pos2 - 10
Expand the script. Write a function that instructs the place to raise the block when touched, such as this one:
function elevator(touch)
if debounce = true then
position1.BodyPosition.position = position1.Position
position1.Achored = false
wait
end - 11
Click on the "File" menu and scroll to "Save." - 12
Write a script for each level of the elevator. Replace the name "position1" with the level of the floor. For example, for the third floor, write "position3."