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?
COMMUNITY QUESTION
Making a realistic C framed Door That'll open up?
1 answer
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
It would be better if you use http://wiki.roblox.com/index.php?title=API:Class/HingeConstraint
I've tried Constraints I find them to confusing lol
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.