of     1   

bourlo
#58920534Thursday, December 01, 2011 2:09 PM GMT

I've made a door which uses CFrame to open,however,the door parts are already rotated with CFrame,so when i change their position with CFrame,the rotation changes as well.Is it possible to keep the rotation unchanged?
Wrought_Bloxon
#58922498Thursday, December 01, 2011 4:27 PM GMT

What CFrame code are you using? To keep it the way it's supposed to be you need have the full matrix in your CFrame code.
bourlo
#58923654Thursday, December 01, 2011 5:36 PM GMT

I was changing its position with CFrame.new() so should i use this;CFrame.new(x, y, z, R00, R01, R02, R10, R11, R12, R20, R21, R22) ?
bourlo
#58923671Thursday, December 01, 2011 5:37 PM GMT

i mean i was using CFrame.new(x, y, z)
Wrought_Bloxon
#58927136Thursday, December 01, 2011 8:11 PM GMT

Yes you need the matrix to set the right angles. Then it should stay in place. If you use CFrame.new(x,y,z) the part always faces forward.
bourlo
#58927826Thursday, December 01, 2011 8:29 PM GMT

well thanks,i've also asked at the scripters forum but i can't find a way to add 1 stud at the y should i use something like this; part.CFrame = part.CFrame + CFrame.new(thepositionhere?) i mean this didnt seem to work
ItemKing
#58929605Thursday, December 01, 2011 9:14 PM GMT

It might Idk
Wrought_Bloxon
#58930036Thursday, December 01, 2011 9:24 PM GMT

for i = 1,#game.Selection:Get() do game.Selection:Get()[i].CFrame = game.Selection:Get()[i].CFrame * CFrame.new(0,0,0)* CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) end I believe this command is for a selected part. Change the numbers to position the selected part. I myself CFrame the same way you do I'm still learning ,and have yet to try myself. Sorry for delay I was trying to find the command. Try "theopfor's CFraming guide" in the Building Helpers Forum.
Wrought_Bloxon
#58941726Friday, December 02, 2011 12:31 AM GMT

I tried that sorry it doesn't work. Ask theopfor.
theopfor
#58942272Friday, December 02, 2011 12:39 AM GMT

If it's in a script then do something like this: script.Parent.CFrame=script.Parent.CFrame+Vector3.new(0,NUMBAH,0) I dunno so much about the keeping the angle though.

    of     1