|
| 01 Nov 2011 11:25 PM |
Right, So I made this HopperBin Tool that rotates yourself forward, sort of like a forward roll animation. I used lookVector to make it rotate the same direction no matter where you're facing. The problem is that for some reason it's not rotation you forward instead sideways. Do I need to use Mathematical Operators or what?
Player = script.Parent.Parent.Parent
script.Parent.Selected:connect(function(m) m.Button1Down:connect(function() b = Instance.new('BodyAngularVelocity') b.maxTorque = Vector3.new(math.huge, math.huge, math.huge) b.angularvelocity = Player.Character.Torso.CFrame.lookVector * 20 b.Parent = Player.Character.Torso wait(1.5) b:Remove() end) end)
|
|
|
| Report Abuse |
|
|
|
| 01 Nov 2011 11:43 PM |
| Not the Body stuff, use for loops and CFraming. |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2011 02:07 AM |
maybe try
cframe=Torso.CFrame*CFrame.Angles(0,math.rad(90),0) bodyangularvelocity=cframe.lookVector |
|
|
| Report Abuse |
|
|