I'm new to CFrame and I'm slowly learning how to troubleshoot CFrame. So I was testing out my game because I added a new door in it then my door then the door went 90 Degrees and now I need help with it. I used a normal script with all of the other scripts as well.
wait()
for i = 1,100 do
script.Parent.CFrame = CFrame.new(script.Parent.Position + Vector3.new(0,.1,0))
wait()
end
wait(5)
for i = 1,100 do
script.Parent.CFrame = CFrame.new(script.Parent.Position - Vector3.new(0,.1,0))
wait()
end
That is the code for the CFrame and everything else is activated by a button and it worked perfectly before it happend.

5 comments
So what's your problem?
So my door when I click my button it goes 90 degrees but works correctly but it's just that
The positioning is off? For a begginer I reccomend making a ghost door, copying it's CFrame then setting the door CFrame to that of the ghost door.
Okay, I will try.
Worked, thanks.