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

How to make a teleporting elevator script?

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 :)

2 comments

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.

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 :)

1 answer

✓ Accepted answer

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

2 comments

1

I'll take a look at that for sure, thanks for your answer!

0

No problem!

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