Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Tool that makes specific parts invisible?

Asked by
G0ZZEN 17
4 years ago
Edited 4 years ago

I tried to do a tool that makes Parts that are in the Player's Character invisible. But when i equip it it doesn't do anything, and there's no error

Invisiblade = script.Parent
Invisiblade.Equipped:connect(function() 
Player = script.Parent.Parent
local children = Player:GetChildren()
    for i = 1, #children do
        local child = children[i]

        if child:IsA("Part") then 
            child.Transparency = 0.5 wait(0.1) Transparency = 1
            end

    end
end)

Answer this question