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

How can I make a sliding door?

Asked by 10 years ago

Some developers use "Sliding Doors". Bad problem is, how to design the door to slide. and how to script it. Need more information. Here is some more Sliding door is simple thing, but I am having trouble making a sliding door, Like i said earlier how to design the door to slide. and how to script it.

4 answers

Log in to vote
1
Answered by 10 years ago

Sliding Doors can be fun, and hard to make.

The best solution is to use a Body Position object, because it makes the transition smooth and fluid. You can put the object in one part, and then weld the other parts of the door to that part.

Another solution is to use CFrame to manipulate the part. You can read up on that method here.

Ad
Log in to vote
0
Answered by
nate890 495 Moderation Voter
10 years ago

What you're looking for is something like this,

for i = 1, 100 do
    door.CFrame = door.CFrame + Vector3.new(0.1, 0, 0)
    wait()
end

Check out this post.

Log in to vote
0
Answered by 9 years ago

use a Touched script and body position use BodyPosition is the motion set and BodyGyro to keep it from moving everywhere Put the touched script in 1 long block so that the player can touch it and the door will open also make it so that when that part is touched that the door opens.

Log in to vote
0
Answered by 4 years ago

but what if

Answer this question