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: How to check

Previous Thread :: Next Thread 
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
16 Mar 2015 06:51 PM
If a part if falling?

Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
16 Mar 2015 06:52 PM
is*
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
16 Mar 2015 06:52 PM
if part.Velocity.Y>10 then
print('Its going down fast so it's probably falling')
end
Report Abuse
LucasLua is not online. LucasLua
Joined: 18 Jun 2008
Total Posts: 7386
16 Mar 2015 06:54 PM
Plenty of different ways.

Try this:

if part.Velocity.Y < 0 then
print("FALLINGGGGG")
end
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
16 Mar 2015 06:54 PM
How do I check if the part is not falling?
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
16 Mar 2015 06:56 PM
if 2+2==4 then
print('2+2 is 4')
else
print('We broke math!')
end
Report Abuse
LucasLua is not online. LucasLua
Joined: 18 Jun 2008
Total Posts: 7386
16 Mar 2015 06:59 PM
If the part's velocity is greater than or equal to 1 it is going up, else if the part's velocity is less than or equal to 1 it is going down, else it is still or barely moving.

Make the numbers smaller if you want it to be more accurate.
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
16 Mar 2015 07:14 PM
tried
if part.Velocity.Y<0 then print("Part stopped.") end
didn't work
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
16 Mar 2015 07:18 PM
because your doing less than 0 which means it has to be moving
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
16 Mar 2015 07:28 PM
Tried this, didn't work.

Spawn(function() repeat wait() until h:WaitForChild("FrontTorso").Velocity.Y>0
h.FrontTorso.Anchored=true
end)
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
16 Mar 2015 07:48 PM
now your checking if its going up
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