I’m trying to make the Katana in the sheathe turn transparent when I press the keybind (E) to unsheathe it. (Equipping the actual weapon) I scripted a cloning process to add transparent SurfaceAppearance to each MeshPart but they load in really slow. Any way to fix this?
for _, v in pairs ((fakesword):GetChildren()) do
if v:IsA("MeshPart") then
transp:Clone().Parent = v
If they’re just a form of BasePart (MeshPart in this case), why not just use the Transparent property?
-- Make invisible
for _, v in pairs ((fakesword):GetChildren()) do
if v:IsA("MeshPart") then
v.Transparent = 1
end
end
-- Make visible
for _, v in pairs ((fakesword):GetChildren()) do
if v:IsA("MeshPart") then
v.Transparent = 0
end
end