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

How to make a teleporting elevator script?

Asked by 6 years ago
Edited 6 years ago

How can I make an elevator that doesn't move but teleport you after closing the door?

Example: I walk into the elevator, press a button, the door closes and the door from the second floor closes as well. And I and other players teleport to the second floor after 4 seconds.

Type of door: A door like the ones from SCP: Containment Breach. Which means that there are a front and a back parts of the door. The front part of the door slide to the left and back part of the door slides to the right.

I have already made myself a model of the elevator, the button, and the door. I just need help to make a script so the elevator actually works.

If you need more information, then just ask me. Any help would be appreciated :)

0
Use Region3 to get the players inside of the elevator after a player clicks on the button. Then you move each character using :SetPrimaryPartCFrame() to the location you desire. Door animation can be done with tweening. xPolarium 1388 — 6y
0
How can I make the door on the first floor close and the door on the second floor open? Thank you for the reply :) oliwierpl11alt 20 — 6y

1 answer

Log in to vote
0
Answered by
DjMusa2 81
6 years ago

Hi Oli!

I had that question too and somebody told me you can use this site named CFframe

[CFframe](http:// wiki.roblox.com/index.php?title=CFrame)

http://wiki.roblox.com/index.php?title=CFrame

Or you can go see in the Lua Document for more information. I hope this was useful!

Sincerely,

DjMusa2

1
I'll take a look at that for sure, thanks for your answer! oliwierpl11alt 20 — 6y
0
No problem! DjMusa2 81 — 6y
Ad

Answer this question