|
| 03 Jul 2017 10:49 PM |
long story short, i have a function written out in a local script that fires when a player dies
player.Character.Humanoid.Died:connect(PlayerDie)
is there an alternative to writing this
please help! |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2017 10:51 PM |
player.Character.Humanoid:GetPropertyChangedSignal("Health"):connect(PlayerDie)
|
|
|
| Report Abuse |
|
|
|
| 03 Jul 2017 10:51 PM |
oops messed up
player.Character.Humanoid:GetPropertyChangedSignal("Health"):connect(function() if player.Character.Humanoid.Health == 0 then PlayerDie() end)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 03 Jul 2017 11:11 PM |
| you could probably also use CharacterAdded but it wouldn't be as accurate |
|
|
| Report Abuse |
|
|