Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

anti Workspace Theft protection ?

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

1 answer

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."

2 comments

0

Thanks for the explanation so using this script will waste of script performance right ?

0

In a way yes, there will always be a way around it.

This discussion is preserved as it was. New answers, comments, and votes are closed.