My objective is to get everything in the workspace, compare it to every player's name and if it doesn't match any of them output the name of the object.
this code will work if there is only 1 player in the server:
for _, v in pairs(game.Players:GetChildren()) do
for _, v2 in pairs (workspace:GetChildren()) do
if v2:FindFirstChild("Humanoid") then
if v2.Name ~= v.Name then
print(v.Name)
end
end
end
end
however if there are 2 or more then it will take 1 name and try comparing it to 2 characters in the workspace, which will output 1 player's name
i don't want this happening
any help?
aaaaaaaaaaaaaaaaaaaaahhhh |