Previously in my old question, I managed to get of how to delete all models but except a couple. But now how do I print the names?
Heres the script:
for i, v in pairs(game.Workspace:GetChildren()) do if v.ClassName == "Model" then if v.Name ~= "name" or v.Name ~= "name" or v.Name ~= "name" then print(**What do I put here now?**) end end
[I know this isn't a request site but legit I tried so many ways but I don't know how.]
I have done print(v)
but it prints everything in workspace. I also tried print(v.Name)
and it doesn't work.
Try this, and use 'and' instead of 'or' because the 'or' will still print all of them
for i, v in pairs(game.workspace:GetChildren()) do if v:IsA("Model") then if v.Name ~= 'name' and v.Name ~= 'name' and v.Name ~= 'name' then print(v) end end end