Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I need help with creating an Elevator Movement script, anyone can help?

Asked by 4 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

Script that I was making have an error because the script doesn't verify The Part as a moveable entity.I want to make an Elevator that actually move. And for those people who think that I'm suck at scripting I know, I just started at scripting like two days ago so I'm sorry and I'll try improve.?

0
Code please Nguyenlegiahung 1091 — 4y
0
you can use TweenService as I used it ALOT in my games SpoostyGuy 18 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

So, here is how to make it : First, you need a part or union(model won't work)

Second, Duplicate the part and move it to where u want the part to go and copy its position

Third, Create a script and type this :

local TweenService = game:GetService("TweenService") -- You need this
local thing = --put what you want to move
local tweeening = TweenInfo.new(    
    0.5, --how fast you want the thing to move
    Enum.EasingStyle.Linear,
    Enum.EasingDirection.Out,
    0, 
    false,
    0
)
local up = {CFrame = CFrame.new(paste your position of the part here)} 
local tweenup = TweenService:Create(thing,tweeening,up)

tweenup:Play()

Lastly, delete the part used for step 2

You can duplicate tweening or up or tweenup

This method works I used it for alot of my games

Or you can use this model : https://www.roblox.com/library/3898573023/tween

Ad

Answer this question