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

Making a realistic C framed Door That'll open up?

Asked by 7 years ago

I'm trying to make a realistic Door where it will open up then close. I have the script written out I just can't seem to get the Cframe configuration right?

0
I've tried Constraints I find them to confusing lol DevJjinks 0 — 7y
0
I'd like to learn how to use hinge constraints. I think it might make answering this easier if you were to post your script. That way we could see how you are moving your door and maybe tell you if there are better ways to do such a thing. I use CFrame all the time. AZDev 590 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

if you put the script inside the door you can activate it when a person touches said door.

door = script.Parent
function touch()
    for i = 1, 100 do 
        door.CFrame = door.CFrame * CFrame.new(*Insert cords based on door position here*)
        wait()
    end
end
script.Parent.Touched:connect(touch)
Ad

Answer this question