chase789
|
  |
| Joined: 03 Jun 2008 |
| Total Posts: 3486 |
|
|
| 06 Apr 2012 09:22 AM |
There is a problem in ROBLOX's physics and I wanna try something like a once a player trips onTouch, he automatically stands up.
Is it possible? |
|
|
| Report Abuse |
|
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
| |
|
Eyin
|
  |
| Joined: 10 Oct 2009 |
| Total Posts: 567 |
|
|
| 06 Apr 2012 09:40 AM |
| The FallingDown (event) can be useful as to tell when it actually trips. Then I would just reset the velocity after returning the Torso's CFrame to something normal. |
|
|
| Report Abuse |
|
|
sam4life
|
  |
| Joined: 17 Feb 2009 |
| Total Posts: 1733 |
|
|
| 06 Apr 2012 10:53 AM |
So you would do it like this or not?: if player.Character:FallingDown() then -reset stuff?
or
player.Character:FallingDown():connect(BlahBlah)? |
|
|
| Report Abuse |
|
|
chase789
|
  |
| Joined: 03 Jun 2008 |
| Total Posts: 3486 |
|
| |
|
sam4life
|
  |
| Joined: 17 Feb 2009 |
| Total Posts: 1733 |
|
| |
|
dino2306
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 1964 |
|
| |
|
sam4life
|
  |
| Joined: 17 Feb 2009 |
| Total Posts: 1733 |
|
| |
|
sam4life
|
  |
| Joined: 17 Feb 2009 |
| Total Posts: 1733 |
|
|
| 06 Apr 2012 02:36 PM |
Ok that didn't work. But I tried this in a local script inside the players character and got this output: 17:attempt to call field'FallingDown'(a userdata value)
player.Character.Humanoid.FallingDown():connect(Reset) -- line 17 |
|
|
| Report Abuse |
|
|
Eyin
|
  |
| Joined: 10 Oct 2009 |
| Total Posts: 567 |
|
|
| 06 Apr 2012 02:36 PM |
| player.Character.Humanoid.FallingDown:connect(Reset) |
|
|
| Report Abuse |
|
|
sam4life
|
  |
| Joined: 17 Feb 2009 |
| Total Posts: 1733 |
|
|
| 06 Apr 2012 02:36 PM |
Sorry the line is:
player.Character.Humanoid:FallingDown():connect(Reset) -- line 17 |
|
|
| Report Abuse |
|
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 06 Apr 2012 02:41 PM |
player.Character.Humanoid:FallingDown:connect(Reset)
~When life gives you lemons, you say 'I ain't even mad'.~ |
|
|
| Report Abuse |
|
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 06 Apr 2012 02:41 PM |
player.Character.Humanoid.FallingDown:connect(Reset)
~When life gives you lemons, you say 'I ain't even mad'.~ |
|
|
| Report Abuse |
|
|
sam4life
|
  |
| Joined: 17 Feb 2009 |
| Total Posts: 1733 |
|
|
| 06 Apr 2012 02:42 PM |
Dm, fixed.
player.Character.Humanoid.FallingDown:connect(Reset) -- line 17 |
|
|
| Report Abuse |
|
|
NASRI404
|
  |
| Joined: 14 Dec 2010 |
| Total Posts: 11 |
|
| |
|