How to Make And Script An Elevator in Roblox Studio 2020 (WORKING!)

Опубликовано: 10 Октябрь 2024
на канале: Owen3D RBLX
3,963
50

Hi guys, today I'm going to show you how to make an elevator in Roblox Studio! First of all make the walls and group them all and anchor them to avoid breaking apart, then make floor and buttons. Add script and click detector to the first button and script the buttons as instructed. Then duplicate it, then make the script. Change the button to Down Button or button 2 or any names you like, then copy and paste the y position of the floor in the script. Then test it out and see whether it worked really well!!! Hope this video helps! That's it for my explanation, please leave a like, a comment and Subscribe with the notification bell on and hope you enjoy this video. This should also help you in making horror elevator games and stay tuned for my most entertaining videos.
My profile: https://www.roblox.com/users/15501987...
Follow me on Twitter: Owen3dR
Hope this video reach 1k views!!!
SCRIPT:
Script for UpButton1:
local LiftFloor = script.Parent.Parent.LiftFloor
local TweenService = game:GetService ("TweenService")
local TweenStyle = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)

local LiftPositionUp = (CFrame = CFrame. new (COPY + PASTE THE POSITION OF THE LIFTFLOOR!))
local TweenFloorUp = TweenService:Create(LiftFloor,TweenStyle,LiftPositionUp)
script.Parent.ClickDetector.MouseClick:Connect(function()
TweenFloorUp:Play()
end)