#destruction system won't work

1 messages · Page 1 of 1 (latest)

wide basin
#

hello, i've made a simple system so that some hitboxes in my game will enable a "destruct" script within parts that are named "destructable", however, nothing happens, and not even output will give me any errors

#
script.Parent.Touched:Connect(function(hit)
    if hit.Name == "Destructable" then
        hit.Destruct.Enabled = true
    end
    task.wait(0.01)
end)
#

this script goes inside of the hitbox

#

the part itself