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 » Scripters
Home Search
 

Re: Killing Zone Script help?

Previous Thread :: Next Thread 
PoisonousNight is not online. PoisonousNight
Joined: 24 Dec 2014
Total Posts: 12
09 Aug 2015 11:38 AM
I'm looking for a script or brick that slowly drain's a player's health while they are in the block's zone, like. What I'm thinking is...

As long as you're outside of the zone, you're fine. As soon as a body part touches it, your health will slowly drain. But once you leave the zone it will stop. I had a brick like that before on another account but lost it, any help?
Report Abuse
killaman333 is not online. killaman333
Joined: 16 Jan 2013
Total Posts: 1143
09 Aug 2015 11:43 AM
how fast do they lose health
Report Abuse
PoisonousNight is not online. PoisonousNight
Joined: 24 Dec 2014
Total Posts: 12
09 Aug 2015 11:45 AM
I'm thinking of like, just a slow 5 HP every 1 or 1.5 seconds.
Report Abuse
killaman333 is not online. killaman333
Joined: 16 Jan 2013
Total Posts: 1143
09 Aug 2015 11:46 AM
function kill(hit)
local test = hit.Parent
if test:IsA("Model") then
local char = hit.Parent
local hum = char.Humanoid
local MaxHealth = hum.MaxHealth
local time = 1 -- How much health they lose per second
repeat
hum.Health = hum.Health - 5
wait(time)
until char == nil
end
end
script.Parent.Touched:connect(kill)
Report Abuse
killaman333 is not online. killaman333
Joined: 16 Jan 2013
Total Posts: 1143
09 Aug 2015 11:46 AM
put that inside of the zone parts
Report Abuse
PoisonousNight is not online. PoisonousNight
Joined: 24 Dec 2014
Total Posts: 12
09 Aug 2015 11:51 AM
Well, thank you. It's nice. But I have already tried brick's like these, they are like poisonous bricks. I'm mean a block that has the exact same effect, but it halt's when the player exit's the brick / zone so that they don't die or is doomed to die after a short amount of time as soon as they touch it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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