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

How can i reverse upVector on this script?

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)
				

1 comment

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)

1 answer

(...upVector - Vector3.new(180,0,0))

maybe just rotate it 180 degrees?

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