|
| 14 Dec 2015 11:11 AM |
I don't want to use:
script.Parent.Parent.Humanoid.Changed:connect(onChange) because I am changing other properties of the humanoid.
Is there a way to check if the Humanoid.Health has changed? Like this?
Self.Parent.Changed:connect(function(Health) |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2015 11:13 AM |
Forgot to add local Self = script.Parent |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 14 Dec 2015 11:20 AM |
1. Changed passed the name of the property that changed. 2. HealthChanged |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2015 11:46 AM |
Like this?
function onChange()
--- stuff here
end
Self.Parent.Humanoid.HealthChanged:connect(function(onChange) |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2015 12:23 PM |
Self.Parent.Changed:connect(function(Property) if Property =='Health' then ... end end) |
|
|
| Report Abuse |
|
|