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

ItemAdded

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

Parameters

Name Type Default Description

Code Samples


CollectionService.ItemAdded1

game:GetService("CollectionService").ItemAdded:connect(function(instance)
  print(instance.ClassName .. " added to DataModel")
end)

Instance.new("Part", workspace) --// Doesn't fire because CollectionService doesn't watch Parts
Instance.new("Dialog", workspace) --> Dialog added to DataModel