Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

anti Workspace Theft protection ?

Asked by 3 years ago
Edited 3 years ago

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

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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

0
Thanks for the explanation so using this script will waste of script performance right ? CharaIsCominUpForYou 0 — 3y
0
In a way yes, there will always be a way around it. shadowstorm440 590 — 3y
Ad

Answer this question