Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Which Part of This Script Kills You?

Asked by 11 years ago

I'm trying to make it so a Subspace Bomb is fixed (as in it won't suck you in and kill you) and I can't seem to find the part where it kills you. Here's the script without the part where it's getting bigger.

001function onTouched(part)
002 
003    local h = part.Parent:findFirstChild("Humanoid")
004 
005    if h~=nil then
006 
007wait(0.001)
008h.Health = 0
009children = h.Parent:children()
010 
011    for i=1,#children do
012 
013        if(children[i].className == "Part" and children[i].Name ~= "Torso") then stick(children[i], h.Parent.Torso) end
014 
015        if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.Torso) end
View all 101 lines...

Getting bigger...

01local min = 0
02 
03local max = 10
04 
05while true do
06 
07    wait()
08 
09    local n = 0
10 
11    while n < #childList do
12 
13        if n % 800 == 0 then
14 
15            wait()
View all 95 lines...

1 answer

Log in to vote
0
Answered by 11 years ago

I think it is h.Health = 0 where "h" refers to "humanoid"

So to explain more, h.Humanoid gets the health of the humanoid to change it. While number 0 changes the humanoid's health to 0 and kills him.

I am not sure about that, try it and tell me if it works.

0
It didn't work, but I found a solution. Stay at least 25 studs away or it will start to pull you in. DapperLink123 30 — 11y
0
Congratulations! kudorey619 138 — 11y
Ad

Answer this question