local Coat = script.Parent.Parent
script.Parent.MouseClick:Connect(function()
for texture in pairs(Coat:GetDescendants()) do
if texture.Name == "MTP" then
if Coat.Transparency == 0 then
Coat.Transparency = 1
texture.Transparency = 1
else
if Coat.Transparency == 1 then
Coat.Transparency = 0
texture.Transparency = 0
end
end
end
end
end)
16:42:28.173 Workspace.CoatProp.ClickDetector.Script:5: attempt to index number with 'Name' - Server - Script:5
Iām not familiar with the error nor familiar with how to fix it