Auto delete invisible barrier
Key RequiredUniversal

Auto delete invisible barrier

Universal Scriptstyearstyear 1.1K views 395 executesUpdated Mar 16, 2026
Unrated
00
Lua Script•27 lines (546 chars)
local function setNoCollide(p)
	p.CanCollide=false
	p.CanTouch=false
	p.CanQuery=false
end

local function isMeshPart(p)
	return p:IsA("MeshPart") or p:FindFirstChildOfClass("SpecialMesh")
end

local function process(v)
	if v:IsA("BasePart") and not isMeshPart(v) then
		if v.Transparency>=1 then
			if v.Parent and (v.Parent:IsA("Model") or v.Parent:IsA("Folder")) then
				setNoCollide(v)
			else
				v:Destroy()
			end
		end
	end
end

for _,v in ipairs(workspace:GetDescendants()) do
	process(v)
end

workspace.DescendantAdded:Connect(process)

Features & Information

Auto delete → deletes normal transparent parts Pass-through → transparent parts in Model/Folder can be walked through Ignore mesh → MeshPart / SpecialMesh not affected Auto detect → new parts in workspace are processed automatically
#StyearX

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts