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
 

Re: Constantly taking health script

Previous Thread :: Next Thread 
Malew is not online. Malew
Joined: 18 Dec 2009
Total Posts: 216
11 Aug 2011 11:12 AM
If anyone can help, can someone make me a script that continuosly takes 1 Health from your Health bar as long your standing on it. Thank you. I know the basic killing brick script but I don't know what to do so that it keeps taking 1 Health


Report Abuse
huner2 is not online. huner2
Joined: 27 Apr 2008
Total Posts: 1681
11 Aug 2011 11:13 AM
Sorry,no requests.Read the rules.
Report Abuse
Malew is not online. Malew
Joined: 18 Dec 2009
Total Posts: 216
11 Aug 2011 11:14 AM
Well can a script be edited? I know the one that just takes your entire Health But I need it so it takes 1 as long as you are on it

If you can edit, please do. :)

function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
h.Health = 0
end
end
script.Parent.Touched:connect(onTouched)
Report Abuse
huner2 is not online. huner2
Joined: 27 Apr 2008
Total Posts: 1681
11 Aug 2011 11:15 AM
Well I could make it to where it keeps taking 1 away.But forever not just when your're standing on it.
Report Abuse
Malew is not online. Malew
Joined: 18 Dec 2009
Total Posts: 216
11 Aug 2011 11:16 AM
No it's alright. I'll just see what I can do. Thanks for the help anyways. :)
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