Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I change the LookVector properties for this door script?

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

1 answer

✓ Accepted answer

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.

3 comments

0

Try the other 2 and see which one works for you.

1

Thanks! I didn't realize that I didn't have to change the numbers!

0

No problem! I would appreciate if you accept my answer <3

This discussion is preserved as it was. New answers, comments, and votes are closed.