ChildAdded bug
#1
function killblock(part)
if (part~=nil) then
if (part.Type == "Box") then
if (part.Name == "Debris") then
sleep(4)
for i=1, 100 do
part.Transparency = i/100
sleep(0.01)
end
part:remove()
end
end
end
end

link(game.World.Stuff.ChildAdded, function(child)
thread = coroutine.create(killblock)
assert(coroutine.resume(thread, child))
end)

~~~~~~~~~~~~~~~~~~~~~~~~~~~

This script is used at my Tunnel Combat game to clear the grey stones that are created after excavating a block. However, it barely works, maybe 1 in 30 of every block created starts to turn a little transparent, then stops.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)