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 » Scripting Helpers
Home Search
 

HealthChanged

Previous Thread :: Next Thread 
MonsterSloth is not online. MonsterSloth
Joined: 21 Nov 2012
Total Posts: 131
08 Feb 2014 09:50 PM
how would i make this fire one time?

person.Character.Humanoid.HealthChanged:connect(function(perhealth)
if perhealth <=20 and perhealth >=11 then

stuff

end
end)
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
08 Feb 2014 10:02 PM
con = person.Character.Humanoid.HealthChanged:connect(function(perhealth)
print("once")
con:disconnect()
end)
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
08 Feb 2014 10:03 PM
**

con = person.Character.Humanoid.Changed:connect(function(perhealth)
print("once")
con:disconnect()
end)
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
08 Feb 2014 10:03 PM
game.Players.player.Character.Humanoid.Health.Changed:connect(function(perhealth)
if perhealth <=20 and perhealth >=11 then

stuff

end end)
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
08 Feb 2014 10:06 PM
I think I misunderstood what you wanted, but Goulstem, your event is wrong.
Report Abuse
MonsterSloth is not online. MonsterSloth
Joined: 21 Nov 2012
Total Posts: 131
08 Feb 2014 10:27 PM
thank you the :disconnect() function worked.i was not aware of it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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