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

I'm making an elevator and I need help with the script?

Asked by 4 years ago
Edited 4 years ago

What I want the elevator to do is wait a bit then go down and then stop and then go up and stop ONLY when it gets touched by a player, please help. Sorry if there is not much script, It's just I don't really know about CFrame and new positions.

local model = script.Parent

local function onModelTouched(part)

end
1
I don't have an answer but for the move up thing and move down thing you could use TweenService() 123nabilben123 499 — 4y
0
ok DesiredToResign 10 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

As suggested by 123nabilben123, you'll want to look into the tween service. It's a very user friendly service that's incredibly simple to understand. You will need to understand about how to use CFrames and Positions a bit but most of what you'll need to know is basic math. For a great tutorial on the tweening service try this one by Alvinblox. It's short and VERY simple to understand.

https://www.youtube.com/watch?v=qgGDwTn0zgo

0
alright DesiredToResign 10 — 4y
Ad

Answer this question