Mr_3242

Fully invisible part remover

Jun 22nd, 2026
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | Gaming | 0 0
  1. local function isCharacterOrNPC(obj)
  2.     local model = obj:FindFirstAncestorOfClass("Model")
  3.     return model and model:FindFirstChildOfClass("Humanoid")
  4. end
  5.  
  6. local function checkPart(obj)
  7.     if obj:IsA("BasePart") and obj.Transparency == 1 and not isCharacterOrNPC(obj) then
  8.         obj:Destroy()
  9.     end
  10. end
  11.  
  12. for _, obj in ipairs(workspace:GetDescendants()) do
  13.     checkPart(obj)
  14. end
  15.  
  16. workspace.DescendantAdded:Connect(checkPart)
Tags: delta
Advertisement
Add Comment
Please, Sign In to add comment