group:DisconnectAll(): void

Server & Client

Disconnects every listener currently registered in the group and clears it. The group remains usable afterward -- new listeners can be added again later.

Returns

voidNo return value.
humanoid.Died:Connect(function()
    group:DisconnectAll()
end)