What a forward elevator does and why you need one
A forward elevator in Roblox is a platform that moves upward while also pushing the player forward in the direction they are facing. Unlike a straightforward vertical elevator, it combines vertical movement with horizontal momentum, so a player standing on it rises and travels across the map at the same time. This is useful for obstacle courses, parkour games, and any map where you want to move players smoothly from one area to another without them having to jump or walk.
The forward elevator works because Roblox platforms can have velocity — a property that makes objects move in a specific direction at a specific speed. By setting both the upward velocity and the forward velocity on a single platform, you create motion in two directions at once. The player's character sits on the platform and moves with it, the same way a passenger moves with an airplane.
Building one takes about ten minutes once you understand the pieces involved. You will need a part to stand on, a script to control its movement, and a way to reset the platform when it reaches the top. The script is short enough that even if you have never written one before, you can follow the steps and see how it works.
Key Takeaways
- A forward elevator is a platform that moves upward and forward at the same time by using velocity on both the Y axis (up) and Z axis (forward).
- You create the platform from a single part, anchor it so it does not fall, and place a script inside it to control the velocity.
- The script sets the platform's velocity when a player touches it and stops the velocity when the platform reaches a certain height.
- You can adjust the speed by changing the velocity numbers in the script, and you can change the direction by rotating the part before you add the script.
Creating the platform part
Open Roblox Studio and load a blank baseplate project. In the Explorer window on the left, right-click the Workspace folder and select Insert Object, then choose Part. A new gray cube will appear in the center of your map. This is the platform players will stand on.
Resize the part so it is wide enough to stand on comfortably. Click the part to select it, then in the Properties panel on the right, find the Size property. Change it to something like X: 6, Y: 1, Z: 6 so it is a flat platform about six studs wide. Next, find the Anchored property and set it to True. This prevents the platform from falling due to gravity — it will stay in place until the script tells it to move.
Give the part a name so you can find it easily later. In the Explorer window, right-click the part and select Rename, then type something like ForwardElevator. Position it somewhere on your map where you want the elevator to start — usually near the ground or at the bottom of a gap you want players to cross.
Writing the script that controls movement
Right-click the platform part in the Explorer and select Insert Object, then choose Script. A new script window will open with some default code already in it. Delete all of that and paste this code instead:
local platform = script.Parent local upwardSpeed = 50 local forwardSpeed = 50 local maxHeight = 100 local startPosition = platform.Position.Y platform.Touched:Connect(function(hit) local humanoid = hit.Parent:FindFirstChild("Humanoid") if humanoid then platform.Velocity = Vector3.new(0, upwardSpeed, forwardSpeed) end end) while true do if platform.Position.Y >= startPosition + maxHeight then platform.Velocity = Vector3.new(0, 0, 0) platform.Position = Vector3.new(platform.Position.X, startPosition, platform.Position.Z) end wait(0.1) end
This script does three things. First, it waits for a player to touch the platform. When someone does, it checks whether they are a real player (by looking for a Humanoid object, which all player characters have). If they are, it sets the platform's velocity to move upward at 50 studs per second and forward at 50 studs per second. Second, it constantly checks whether the platform has risen 100 studs above where it started. When it has, it stops the velocity and resets the platform back to its starting height so it is ready for the next player.
Adjusting speed and direction
The numbers in the script control how fast the elevator moves. upwardSpeed is how fast it rises (50 studs per second is a moderate pace). forwardSpeed is how fast it pushes the player forward. maxHeight is how far up the platform travels before resetting. You can change any of these to suit your map.
To change the direction the elevator pushes, rotate the platform before you add the script. Select the platform, then in the Properties panel find Rotation and change the Y value. A Y rotation of 0 pushes the player in the positive Z direction (forward on the map). A Y rotation of 90 pushes them in the negative X direction (to the left). A Y rotation of 180 pushes them backward. A Y rotation of 270 pushes them to the right. The script will always push in whatever direction the platform is facing.
If you want the elevator to move slower, lower the speed numbers. If you want it to rise higher before resetting, increase maxHeight. If you want it to push faster, increase forwardSpeed. Test each change by playing the game and standing on the platform to see how it feels.
Testing the elevator in play mode
Press the Play button at the top of Studio to test your elevator. Your character will spawn on the baseplate. Walk onto the platform and you should when ready start rising and moving forward. The platform will carry you upward and across the map until it reaches its maximum height, then it will stop and reset to the bottom.
If the elevator does not move, check that the platform is anchored (the Anchored property should be True). If it moves but feels too slow or too fast, adjust the speed numbers in the script and test again. If the platform resets before you reach the top, lower the maxHeight number. If it never resets, raise it.
Once the elevator works the way you want, press Stop to exit play mode. Your changes to the script are saved automatically, so you can publish the game whenever you are ready.
Common problems and how to fix them
If the platform does not move when you touch it, the most common cause is that it is not anchored. Check the Properties panel and make sure Anchored is set to True. If it is, check that the script is actually inside the platform part — it should appear as a child of the platform in the Explorer window, indented underneath it.
If the platform moves but the player does not move with it, the player character may have slid off the platform. Make sure the platform is wide enough and flat enough that a player can stand on it without falling. You can also increase the platform size or lower the forward speed so players have an easier time staying on.
If the elevator resets too quickly or too slowly, adjust the maxHeight number. If it resets before you reach the top, the number is too low. If it never resets, the number is too high. A good starting point is 100, but you can change it based on how tall your map is.
Making the elevator look better
Right now your elevator is a plain gray part. You can make it look more like an actual elevator by changing its color or material. Select the platform, then in the Properties panel find Color and click it to pick a new color. You can also find Material and change it from Plastic to Metal, Concrete, or another material to match your game's style.
If you want to add walls or a roof to make it look like an enclosed elevator, insert new parts around the platform and position them so they move with the elevator. To do this, select each new part and set its Parent property to the platform part. This makes the new parts children of the platform, so they will move whenever the platform moves.
Frequently Asked Questions
Can I make the elevator move in a different direction?
Yes. Rotate the platform part before you add the script. A Y rotation of 0 moves forward, 90 moves left, 180 moves backward, and 270 moves right. The script will always push in the direction the platform is facing.
What if I want the elevator to move diagonally instead of straight up and forward?
Change the script's velocity line to include a value for the X axis as well. For example, Vector3.new(25, upwardSpeed, forwardSpeed) will move the platform left and forward while rising. Experiment with different numbers to find the angle you want.
Can multiple players stand on the elevator at the same time?
Yes. The script checks for any player touching the platform and sets the velocity once. All players on the platform will move together. If you want to limit how many players can use it at once, you would need to add extra code to track how many players are on it.
How do I make the elevator move faster or slower?
Change the upwardSpeed and forwardSpeed numbers in the script. Higher numbers make it faster, lower numbers make it slower. A speed of 50 is moderate. Try 30 for slow, 70 for fast, and adjust from there.
What happens if the player jumps while on the elevator?
The player will jump off the platform and fall. The elevator only carries players who are standing on it. If you want to prevent players from jumping off, you would need to add code that detects when they leave the platform and pulls them back down.