local ignorelist = {"HitBox","HitBox2","HumanoidRootPart"}
local Debris = game:GetService("Debris")
local module = {}
function module.Function(character,color,duration)
local OverlayParts = Instance.new("Folder")
OverlayParts.Name = "OverlayParts"
OverlayParts.Parent = character
for i,v in pairs(character:GetChildren()) do
if v:IsA("Part") or v:IsA("MeshPart") then
if not table.find(ignorelist,v.Name) then
local weld = Instance.new("WeldConstraint")
local clonedpart = Instance.new("Part")
clonedpart.Name = v.Name
clonedpart.Material = Enum.Material.SmoothPlastic
clonedpart.Size = v.Size * 1.25
clonedpart.Position = v.Position
clonedpart.BrickColor = color
clonedpart.CanCollide = false
clonedpart.Transparency = 0.6
weld.Part0 = v
weld.Part1 = clonedpart
clonedpart.Parent = OverlayParts
weld.Parent = OverlayParts
end
end
end
Debris:AddItem(OverlayParts,duration) --overlay duration
end
return module
https://gyazo.com/d21a43820dfb956362c704f191d41023
is there anyway to disable this overlapping effect?