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
5 years ago
Edited 5 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

01Invisiblade = script.Parent
02Invisiblade.Equipped:connect(function()
03Player = script.Parent.Parent
04local children = Player:GetChildren()
05    for i = 1, #children do
06        local child = children[i]
07 
08        if child:IsA("Part") then
09            child.Transparency = 0.5 wait(0.1) Transparency = 1
10            end
11 
12    end
13end)

Answer this question