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

How to make a script to open and close an elevator door?

Asked by 3 years ago
Edited 3 years ago

Here's the script:

while true do

game.Workspace.RDoor.CanCollide = true

game.Workspace.RDoor.Transparency = 0

wait(15)

game.Workspace.RDoor.CanCollide = false

game.Workspace.RDoor.Transparency = 1

wait(20)

end

I'm trying to change the transparency and turn cancollide on and off to make it seem like the door is opening and closing, but it's not working. What do I have to add to the script?

0
any errors? kkfilms_1 68 — 3y
0
Did any errors appear? Neatwyy 123 — 3y
0
No, it just didn't change anything. WhoTheHeckIsTimothy 0 — 3y
0
What is the script's parent? Neatwyy 123 — 3y
0
RDoor WhoTheHeckIsTimothy 0 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

maybe change game.Workspace.RDoor to workspace:FindFirstChild(“RDoor”,true) for each line

Ad

Answer this question