You can write your topic however you want, but you need to answer these questions:
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- accesory gets transparancy of 1
What is the issue? Include screenshots / videos if possible!
The issue is I don’t know how to make it
that part on the image must go transparant when tool is equipped
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!
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)
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)
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.