Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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

Log in to vote
2
Answered by
sayer80 457 Moderation Voter
3 years ago

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.

0
Try the other 2 and see which one works for you. sayer80 457 — 3y
1
Thanks! I didn't realize that I didn't have to change the numbers! TheStarWarsMaster856 12 — 3y
0
No problem! I would appreciate if you accept my answer <3 sayer80 457 — 3y
Ad

Answer this question