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
 

Re: Is there anyway to detect this

Previous Thread :: Next Thread 
Mehssi is not online. Mehssi
Joined: 15 Mar 2015
Total Posts: 599
08 Aug 2017 04:29 PM
Is there anyway to detect an object in motion without using a while loop?
something like Velocity.Changed but obviously that wouldn't work, are loops the only way to do this?
Report Abuse
Siccity is not online. Siccity
Joined: 21 Jun 2009
Total Posts: 14782
08 Aug 2017 04:34 PM
You could connect a function to (part).Changed, then check if the parts velocities ~= 0.

Unfortunately, that would cause the function to fire every time and of the part's properties are changed, but I don't think that's too much of a problem
Report Abuse
Siccity is not online. Siccity
Joined: 21 Jun 2009
Total Posts: 14782
08 Aug 2017 04:35 PM
*part's

*every time any

jesus so many mistakes
Report Abuse
haskjdfsask is not online. haskjdfsask
Joined: 08 Jun 2014
Total Posts: 810
08 Aug 2017 04:49 PM
VelocityChanged(Part)
--Your Code
end

YourPart.Changed:Connect(function(Property)
if tostring(Property) == "Velocity" then
VelocityChanged(YourPart)
end
end)
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