ewewew35
|
  |
| Joined: 21 Mar 2010 |
| Total Posts: 93 |
|
|
| 15 Sep 2014 08:05 PM |
| can you make it so that when you're in a fire it damages you slowly? like takes off 5% of your life every second? |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2014 08:10 PM |
-- localscript in starterGui
plr = game.Players.LocalPlayer char = plr.Character
for _,v in pairs(plr:GetChildren()) do if v:IsA("BasePart") then v.ChildAdded:connect(function(child) if child:IsA("Fire") then coroutine.resume(coroutine.create(function(dam) for i = 1, math.random(20, 35) do wait(1) char.Humanoid:TakeDamage(math.random(1, 3)) end end))
else print(script:GetFullName()..": Attempted to index "..child.." as a fire object") end end) end end |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2014 08:11 PM |
Burns a character for a random set of seconds between 20 and 35.
Damages a character every second randomly from 1 and 3 damage |
|
|
| Report Abuse |
|
|
ewewew35
|
  |
| Joined: 21 Mar 2010 |
| Total Posts: 93 |
|
|
| 15 Sep 2014 08:24 PM |
| is there a way to only make it for 1 fire? |
|
|
| Report Abuse |
|
|
ewewew35
|
  |
| Joined: 21 Mar 2010 |
| Total Posts: 93 |
|
| |
|