Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.?

2 comments

0

Code please

0

you can use TweenService as I used it ALOT in my games

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.