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

How can i reverse upVector on this script?

Asked by
KOK_E 12
6 years ago

i am trying to make this go other way not just right... inverse does not work it just applies power and clones the body-velocity and the - does not work as well :/

D = Instance.new("BodyVelocity")
            D.Parent = player.Character["Torso"]
                D.velocity = player.Character["Right Arm"].CFrame.upVector * 40 
                D.MaxForce = MaxForce   
                Debris:AddItem(D,0.3)

3
I do not know what you mean by reverse. but if you want to get a "DownVector" you just negate the UpVector (-cf.UpVector) User#24403 69 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
(...upVector - Vector3.new(180,0,0))

maybe just rotate it 180 degrees?

Ad

Answer this question