i wanted check my old games then i found this whats the purpose of this piece of code its on Workspace script type Server Script
script.Parent = nil local protection = game.Workspace:GetChildren() for i,v in pairs(protection) do v.Archivable = false v.Changed:connect(function () v.Archivable = false end) end
The script attempts to constantly set the children of the workspace's 'archivable'
attribute to false so that exploiters cannot clone, however, this can probably be bypassed using some form of meta tables or them using saveinstance() which is mainly used for stealing games anyways. Also, when the ROBLOX character is spawned in ( anyone ) the character will automatically have archivable set to false.
Explaining archivable: documentation
Google Documentation ( if you'd understand it better ):
"This property determines whether an object should be included when the game is published or saved, or when Instance:Clone is called on one of the object's ancestors. Calling Clone directly on an object will return nil if the cloned object is not archivable."