|
| 23 Apr 2012 06:21 PM |
script.Parent.Touched:connect(function(hit) g = hit.Parent:findFirstChild("Humanoid") if (g ~= nil) then for i = 1,100 do g.Health = g.Health-1 wait() end
end end)
I tried uploading a lava brick, several times...
http://www.roblox.com/User.aspx?ID=26076488
http://www.roblox.com/The-Tales-of-The-Lost-City-RPG-New-place?id=75940803 |
|
|
| Report Abuse |
|
|
nopepng
|
  |
| Joined: 23 Oct 2011 |
| Total Posts: 2063 |
|
|
| 23 Apr 2012 06:25 PM |
why would you do it that way,
if you're putting in a wait(), why not just make it auto kill the character.
unnecessarily inefficient. |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2012 06:25 PM |
It slowly drains the health, wait() is one frame. For me it will drain the health in about 1-2 seconds.
http://www.roblox.com/The-Tales-of-The-Lost-City-RPG-New-place?id=75940803 |
|
|
| Report Abuse |
|
|
nopepng
|
  |
| Joined: 23 Oct 2011 |
| Total Posts: 2063 |
|
|
| 23 Apr 2012 06:27 PM |
still it's pretty unnecessary.
isn't wait() like .03 seconds?
but if you want to be fancy about it. |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2012 06:29 PM |
'What about this script makes it untrusted?'
http://www.roblox.com/The-Tales-of-The-Lost-City-RPG-New-place?id=75940803 |
|
|
| Report Abuse |
|
|
nopepng
|
  |
| Joined: 23 Oct 2011 |
| Total Posts: 2063 |
|
|
| 23 Apr 2012 06:31 PM |
i didn't even know scripts could be "trusted" or not.
there's a billion free modeled lava scripts out there. |
|
|
| Report Abuse |
|
|