ledger
|
  |
| Joined: 01 Mar 2008 |
| Total Posts: 1924 |
|
|
| 06 Aug 2014 08:46 PM |
I have this script so far:
-- seat = script.Parent MainPart = seat.Parent.MPart bav = MainPart.BodyAngularVelocity.angularvelocity
seat.Changed:connect(function() st = seat.Steer bav = Vector3.new(0,st*50,0) end --
It doesn't do anything to the angularvelocity Vector3, but when I print out st*50 it does exactly what it should.
no seriously. |
|
|
| Report Abuse |
|
|
ledger
|
  |
| Joined: 01 Mar 2008 |
| Total Posts: 1924 |
|
| |
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
| |
|
kelvinwop
|
  |
| Joined: 01 Sep 2010 |
| Total Posts: 39 |
|
|
| 06 Aug 2014 09:36 PM |
| maybe because you put it in the y axis? |
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 06 Aug 2014 09:38 PM |
I know why... You are reseting the bav Variable.
bav = MainPart.BodyAngularVelocity.angularvelocity --Defines it here
seat.Changed:connect(function() st = seat.Steer bav = Vector3.new(0,st*50,0) --Does not change AngularVelocity but Bav's Value
Do this instead.
seat.Changed:connect(function() st = seat.Steer MainPart.BodyAngularVelocity.angularvelocity = Vector3.new(0,st*50,0) |
|
|
| Report Abuse |
|
|
ledger
|
  |
| Joined: 01 Mar 2008 |
| Total Posts: 1924 |
|
|
| 06 Aug 2014 09:43 PM |
Thanks so much! Funny part is I did that in another place. 'st' was outside the function and I couldn't get that to work, ha. I guess that's what I get for shortening things.
no seriously. |
|
|
| Report Abuse |
|
|