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.
001 | function onTouched(part) |
002 |
003 | local h = part.Parent:findFirstChild( "Humanoid" ) |
004 |
005 | if h~ = nil then |
006 |
007 | wait( 0.001 ) |
008 | h.Health = 0 |
009 | children = 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 |
Getting bigger...
01 | local min = 0 |
02 |
03 | local max = 10 |
04 |
05 | while 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() |
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.