I just want to check if this is right:
script.Parent.MouseClick:connect(function(click)
script.Parent.Parent.Rotation = Vector3.new(0, -45, 0)
wait(2)
script.Parent.Parent.Rotation = Vector3.new(0, -89.98, 0)
wait(2)
script.Parent.Parent.Rotation = Vector3.new(0, 0, 0)
end)
When you click the door do this: script>ClickDetector>Door and use Vector3 to rotate it. Will this work? (Checking with the master scripterz)
Well the one above was wrong! WIll this one work?
script.Parent.MouseClick:connect(function(click)
script.Parent.Parent.Rotation = CFrame.new(0, -45, 0)
wait(2)
script.Parent.Parent.Rotation = CFrame.new(0, -89.98, 0)
wait(2)
script.Parent.Parent.Rotation = CFrame.new(0, 0, 0)
end)
So the right was was:
script.Parent.MouseClick:connect(function(click)
script.Parent.Parent.CFrame = CFrame.Angles(0, -45, 0)
wait(2)
script.Parent.Parent.CFrame= CFrame.Angles(0, -89.98, 0)
wait(2)
script.Parent.Parent.CFrame = CFrame.Angles(0, 0, 0)
end)

5 comments
YAY! Thanks!
Wait, I edited the post
Okay. Now thanks!
Remember, CFrame.Angles
I edited the post, recheck it.