So I'm making this door script, and it has lookvector in it. Simple, right? not really. So the script below is the lookvector part, but the part being moved is going forward instead of to the sides. I just want to know how to configure it.
for i = 0.5,(door.Size.z / 0.014) do door.CFrame = door.CFrame - (door.CFrame.lookVector * 0.014) wait() end
LookVector, RightVector and UpVector
UpVector returns a direction facing upwards of a CFrame, RightVector returns a direction facing the right of a CFrame, and LookVector returns a direction facing forwards of a CFrame.