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
 

A health bar that depletes overtime? Is it easy?

Previous Thread :: Next Thread 
ShredasaurusRex is not online. ShredasaurusRex
Joined: 12 Mar 2011
Total Posts: 25546
01 Jun 2013 05:53 PM
How would one go about that?
Report Abuse
Skythen is not online. Skythen
Joined: 31 May 2013
Total Posts: 432
01 Jun 2013 05:54 PM
Just for every second or minute or whatever, subtract a little bit of the humanoid health.

Not that difficult.
Report Abuse
dev1223 is not online. dev1223
Joined: 23 Aug 2009
Total Posts: 231
01 Jun 2013 05:55 PM
Ya it's not that difficult...
Report Abuse
neverhammer is not online. neverhammer
Joined: 13 Sep 2009
Total Posts: 963
01 Jun 2013 06:00 PM
Im too lazy to make it for you so let me just show you how I think it would be done

find all players
while true do
wait(time)
player's health = player's health -10
end
Report Abuse
Superburke1 is not online. Superburke1
Joined: 29 Mar 2009
Total Posts: 2704
01 Jun 2013 06:02 PM
would be done kinda like this:
script goes in the player.

while true do
wait(60)
script.Parent.Character.Humanoid.Health - 1
end
Report Abuse
AwsomeGuy6190 is not online. AwsomeGuy6190
Joined: 26 Nov 2010
Total Posts: 5842
01 Jun 2013 06:06 PM
So something like the Venomshake's Poison script
Report Abuse
LbpPlayer34 is not online. LbpPlayer34
Joined: 08 Jul 2012
Total Posts: 523
01 Jun 2013 06:27 PM
while true do
wait(60) -- Or whatever
FindFirstChild("Humanoid").Health - 1
end)
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
01 Jun 2013 06:31 PM
If you mean over time as in a long period of time, you are going to do a little more than that, due to the fact that humanoid health regenerates l0l.
Report Abuse
AwsomeGuy6190 is not online. AwsomeGuy6190
Joined: 26 Nov 2010
Total Posts: 5842
01 Jun 2013 06:32 PM
@above me

not if you set the wait to wait(0.01)
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
01 Jun 2013 06:43 PM
while wait(time) do
player.Character.Humanoid:TakeDamage(1)
end

~ Usering ~
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
01 Jun 2013 06:44 PM
@Awesome

'If you mean over time as in a long period of time'
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