Is this script a virus

found this script in my game and i’m not sure what it does

wait(5)
for i,e in pairs(game.Workspace.build:GetChildren()) do
	e.Locked = false
end

It depends on what the purpose of the “build” model within your game’s workspace is. The script is basically unlocking every part inside of it, which would allow it to be edited within the game.

Is it the full script? There has to be something else.

image
It turns locked off. That’s all it does. I goes through EVERY and EACH individual part in your game and make their Locked property false (it should do something like that). You can verify it by changing “false” to “true”

This script gets all of the children parented to the model named “build” which itself is a child of the workspace and sets the value of the Locked property of each child to false. When an instance is locked it cannot be selected, scaled, rotated, moved etc. with the standard edit tools conversely when an instance is unlocked it can be selected, scaled, rotated, moved etc. as such if a user was to somehow obtain build tools in your game they would be able to modify all of the parts which are parented to the model named “build”. This doesn’t appear to be a “virus” as it likely came with the model named “build” originally, hence the specific name referenced in the script itself.

1 Like

It is the entire script.
There is nothing else

In that case, it isn’t a virus. Like the others said, it just unlocks every part in that selected model. Feel free to give one of us that checkmark so this gets solved.

Is this code copy and pasted directly from the script?

press ctrl + A inside the script and copy-paste it here, I once had a virus that hid in all my script by going into the bottom of the script

It doesn’t go through every part, if you look at the script it only gets the direct children of this “build” instance in the workspace.

I would not consider this as a virus, however if you inserted a model of out Toolbox with this script being inside, I would recommend removing it. I don’t see a reason for it to be in the game

I wouldn’t say this is a virus script as it literally does nothing and brings very little to no harm to your game. Typically virus scripts are obfuscated and require a bunch of other malicious modules that do harm to your game. All this script does is it turns the locked property to false on all the children under the build instance in workspace. All the locked does is determine whether the Roblox studio build tools can interact with the part or model.

If you were to leave this script in your game all that will probably happen is it could error if your remove the build instance from workspace. Your probably safe to remove this script from your game and would recommend doing so.

1 Like