Talk:Clone (Method)
From Legacy Roblox Wiki
Jump to navigationJump to search
If some can be cloned, Camoy, perhaps you'd like to make a list of the ones that can't be cloned. --ArceusInator 21:54, 27 December 2010 (UTC)
Services that cannot be cloned: BadgeService, DataModel, PlayerGui, Players, StarterGui, Workspace
Services that can be cloned: ChangeHistoryService, Lighting, Selection, StarterPack, Teams, VirtualUser
[Auto Generated Mon Dec 27 17:01:35 2010] Camoy • Contribs (December 27 2010)
Example
local services, can, cant = {'BadgeService', 'ChangeHistoryService', 'DataModel', 'Debris', 'Lighting', 'PlayerGui', 'Players', 'Selection', 'StarterGui', 'StarterPack', 'Teams', 'VirtualUser', 'Workspace'}, {}, {} for i,v in pairs(services) do pcall(function() if game:service(v) and game:service(v):clone() then can[#can+1] = v else cant[#cant+1] = v end end) end print('Services that cannot be cloned: '..table.concat(cant, ', ')) print('Services that can be cloned: '..table.concat(can, ', '))