2DWorlds Forums
If I change the Lava script - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13)
+--- Thread: If I change the Lava script (/showthread.php?tid=3597)



If I change the Lava script - Sazaho - 04-19-2011

Like this:

lava = script.Parent
function Kill(hit)
if hit.Name == "Body" then
hit.Parent.Health = -20
end
end

link(lava.Collided, Kill

will it damage a humanoid by 20 when touched, or do I need to change it some more?


RE: If I change the Lava script - Qwertygiy - 04-19-2011

It should work... assuming you put the final ) back in.


RE: If I change the Lava script - Anti - 04-19-2011

It would work
But not in the way you want it to.


That would insta-kill, since it tries to change your health to negative 20 =D


RE: If I change the Lava script - Sazaho - 04-19-2011

Yeah- I put that back in Tongue
oh noes D: