PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

ItemRemoved

This function fires when a Configuration, CustomEvent, CustomEventReceiver, Dialog, or VehicleSeat is removed from the DataModel.

Parameters

Name Type Default Description

Code Samples


CollectionService.ItemRemoved1

game:GetService("CollectionService").ItemRemoved:Connect(function(instance)
  print(instance.ClassName .. " removed from the DataModel")
end)

Instance.new("Part", workspace):Destroy() --// Doesn't fire because CollectionService ignores Parts
Instance.new("Dialog", Workspace):Destroy() --> Dialog removed from the DataModel