generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: Changed:connect(function(Health) - help

Previous Thread :: Next Thread 
Kie413Games is not online. Kie413Games
Joined: 06 May 2010
Total Posts: 3896
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
Kie413Games is not online. Kie413Games
Joined: 06 May 2010
Total Posts: 3896
14 Dec 2015 11:13 AM
Forgot to add
local Self = script.Parent
Report Abuse
chimmihc is not online. 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
Kie413Games is not online. Kie413Games
Joined: 06 May 2010
Total Posts: 3896
14 Dec 2015 11:46 AM
Like this?

function onChange()

--- stuff here

end

Self.Parent.Humanoid.HealthChanged:connect(function(onChange)
Report Abuse
dearjournal is not online. dearjournal
Joined: 04 Nov 2012
Total Posts: 2289
14 Dec 2015 12:23 PM
Self.Parent.Changed:connect(function(Property)
if Property =='Health' then
...
end
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image