Trying to make this Local Script destroy scripts and is not working!
local access = {"player1","","","","","","","","","","","","","","","","","","","","","","","","","","",""} -- player
local Player = game.Players.LocalPlayer
for i = 1, #access do
if access[i]:lower() == Player.Name:lower() then
script.Parent:Destroy()
else
local Children = script.Parent.Parent:GetChildren()
for i = 1, #Children do
if Children[i]:IsA("Script") then
Children[i]:Destroy()
end
end
end
end

1 comment
How exactly isn't it working? What is it supposed to be doing? Is there any output?