I am trying to make an admin ranking system of sorts, and I want to know how to make it so if the target is not in the game, it will not error. Here is the code I am currently using that errors when OtherPart is not in the game.
local targets = {workspace.Part, workspace.OtherPart}
for i,target in pairs(targets) do
target:Destroy()
end
Any help?

1 comment
Thank you for the help.