|
| 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 |
|
|
|
| 09 Aug 2015 11:43 AM |
| how fast do they lose health |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2015 11:45 AM |
| I'm thinking of like, just a slow 5 HP every 1 or 1.5 seconds. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 09 Aug 2015 11:46 AM |
| put that inside of the zone parts |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|