Tool transparancy when equipped

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Iam trying to achieve that when a player equips a tool(sword) the part of chest- accesoryimage gets transparancy of 1

  2. What is the issue? Include screenshots / videos if possible!
    The issue is I don’t know how to make it
    image
    that part on the image must go transparant when tool is equipped

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I looked in the developer hun but didn’t find anything useful yet : (

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

Does this work for you?

Tool.Equipped:Connect(function()
    for _, i in Backpac:GetChildren() do
        i.Transparency = 1
    end
end)

Tool.Unequipped:Connect(function()
    for _, i in Backpac:GetChildren() do
        i.Transparency = 0
    end
end)

I tried that but it still doesnt work : (

local Tool = script.Parent
local Backpack = game.ServerStorage.Morphs.THOFFICER.Backpack

Tool.Equipped:Connect(function()
	for _, i in Backpack:GetChildren() do
		i.Transparency = 1
	end
end)

Tool.Unequipped:Connect(function()
	for _, i in Backpack:GetChildren() do
		i.Transparency = 0
	end
end)

Please I still need help… anyone I can explain it better?

Use GetDescendantes instead of get children, the backpack variable should be the model of that thing (inside the player most likely) add an if statement check if it’s a base Part before changing transparency.