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 » Scripters
Home Search
 

Changed event not firing when part is moved through physics?

Previous Thread :: Next Thread 
RA2lover is not online. RA2lover
Joined: 09 Nov 2008
Total Posts: 1254
23 Nov 2014 03:38 PM
I was trying to optimize a script calculating aerodynamic forces.

Instead of using wait(0.1) and wasting resources on idle parts, i was trying to calculate it whenever a part's velocity changed. it would be as simple as replacing "while wait(0.1) do" with "part.Changed:connect(function()" and adding a ) at the end of that function.

however, the event doesn't fire when the part's position is changed through normal physics interactions.

how do i go at solving this?
Report Abuse
cxcharlie is not online. cxcharlie
Joined: 26 Aug 2009
Total Posts: 1414
23 Nov 2014 04:21 PM
I think that's a bug .-.


U wot m8
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
23 Nov 2014 05:04 PM
Position, velocity, and related properties that describe physical states do not fire the changed function as they get updated constantly; wait(.1) runs 10 times a second, using changed would run at least at your framerate.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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