FANDOM


A class is said to be instantiated when a concrete occurrence of the class—that is, an instance or object—is created by calling its constructor. Instances on ROBLOX are created with the Instance.new function, which takes as arguments the name of the class to create an object of and the initial parent of the object.

For example, this code will create a ExplorerImageIndex 1Part and add it to the ExplorerImageIndex 19Workspace:

local part = Instance.new('Part', workspace)

Services and abstract items (such as an instance with inherited classes) cannot be created with Instance.new, but non-existent services can be created with the game:GetService() function.