I'm trying to make a script to delete a bunch of other scripts inside parts called "AntiUnlock" Here is my script I put into command bar, it just turns black.
local anti = workspace:FindFirstAncestor("AntiUnlock")
if anti then
anti:Destroy()
end
For more information here it is: I've tried using :FindFirstChild and it does the same thing. When I execute it into command bar the whole thing doesn't run, it just turns black. I've tried :FindFirstDescendant(), unfortunately that isn't a real thing.

2 comments
Please elaborate more, then I may be able to assist you.
The workspace has no ancestor, except the game.. The correct code, I assume is FindFirstDescendant.