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
 

Health Loss Showing in This Script

Previous Thread :: Next Thread 
Reshaped is not online. Reshaped
Joined: 23 Oct 2013
Total Posts: 4110
17 Feb 2014 12:22 AM
I want to make it so that your health falling shows on the health gui? How?

bin = script.Parent

function onTouched(part)
part.BrickColor = BrickColor.new(11)
part.Transparency = .5
part.Anchored = true
wait(2)
part.Parent.Humanoid.Health = 0
part.Anchored = false
wait(2)
end

connection = bin.Touched:connect(onTouched)

~We Build on Each Other~
Report Abuse
Spectrabox is not online. Spectrabox
Joined: 29 Aug 2008
Total Posts: 6888
17 Feb 2014 01:07 AM
Not sure exactly if this is what you want, but this will make it decline from current to 0.

Replace: part.Parent.Humanoid.Health = 0

With this:

for i = part.Parent.Humanoid.Health, 0 do
wait()
part.Parent.Humanoid.Health = i
end
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