generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How can I make BodyAngularVelocity work?

Previous Thread :: Next Thread 
ledger is not online. 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 is not online. ledger
Joined: 01 Mar 2008
Total Posts: 1924
06 Aug 2014 09:32 PM
bump


no seriously.
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
06 Aug 2014 09:34 PM
Is the part Anchored?
Report Abuse
kelvinwop is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image