IoIiderp
|
  |
| Joined: 05 Feb 2012 |
| Total Posts: 8613 |
|
|
| 09 May 2015 05:17 AM |
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) local humanoid = char:WaitForChild("Humanoid") humanoid.FreeFalling:connect(function(active) local falltime = 0 while true do if active then falltime = falltime + 1 wait() else break end end print(falltime) end) end) end)
No errors but it keeps printing 0... |
|
|
| Report Abuse |
|
|
|
| 09 May 2015 05:54 AM |
| whatever "active" is, is never true. |
|
|
| Report Abuse |
|
|
IoIiderp
|
  |
| Joined: 05 Feb 2012 |
| Total Posts: 8613 |
|
|
| 09 May 2015 07:32 AM |
| Yes its true when you are falling |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 09 May 2015 07:33 AM |
while active do falltime = falltime+wait(0.08); print("Falling") end |
|
|
| Report Abuse |
|
|
IoIiderp
|
  |
| Joined: 05 Feb 2012 |
| Total Posts: 8613 |
|
|
| 09 May 2015 07:49 AM |
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) local humanoid = char:WaitForChild("Humanoid") humanoid.FreeFalling:connect(function(active) local falltime = 0 while active do falltime = falltime+wait(0.08); end print(falltime) end) end) end)
Still prints 0... |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 09 May 2015 07:51 AM |
Then active is never not false or nil
print(active) right at the start of the connection. |
|
|
| Report Abuse |
|
|
IoIiderp
|
  |
| Joined: 05 Feb 2012 |
| Total Posts: 8613 |
|
|
| 09 May 2015 08:15 AM |
When you first join, it goes to true, and never goes to false. But when you jump, it goes to true and when you hit the ground, back to false. |
|
|
| Report Abuse |
|
|
voItages
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 677 |
|
|
| 09 May 2015 08:16 AM |
It's nil or false bro
=volty= |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 09 May 2015 08:16 AM |
| Are you sure? Because that's not what your script is saying. |
|
|
| Report Abuse |
|
|
IoIiderp
|
  |
| Joined: 05 Feb 2012 |
| Total Posts: 8613 |
|
|
| 09 May 2015 08:17 AM |
I don't know, try it out for yourself. And what do you mean that it isn't saying that? |
|
|
| Report Abuse |
|
|
voItages
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 677 |
|
| |
|
IoIiderp
|
  |
| Joined: 05 Feb 2012 |
| Total Posts: 8613 |
|
|
| 09 May 2015 08:17 AM |
| Oh yes, I already tested it before posting here... |
|
|
| Report Abuse |
|
|
udayk8139
|
  |
| Joined: 25 Aug 2013 |
| Total Posts: 622 |
|
|
| 09 May 2015 08:20 AM |
| Tried it, It doesn't really have a value.. Active is nil.. |
|
|
| Report Abuse |
|
|
IoIiderp
|
  |
| Joined: 05 Feb 2012 |
| Total Posts: 8613 |
|
|
| 09 May 2015 08:46 AM |
did you define active? I did
humanoid.FreeFalling:connect(function(active) |
|
|
| Report Abuse |
|
|