Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
| |
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 16 Mar 2015 07:18 PM |
| because your doing less than 0 which means it has to be moving |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 16 Mar 2015 07:48 PM |
| now your checking if its going up |
|
|
| Report Abuse |
|
|