Hello all! I placed this code inside the part which is being clicked in order to change a decal someplace else! It's not showing failure, why won't the decal change and the others be removed?
local tigers = script.Parent.Parent.Tigers
function click()
script.Parent.Parent.RBHL.Transparency = 1
wait (0.1)
script.Parent.Parent.Huskies.Transparency = 1
wait(0.1)
script.Parent.Parent.Sharks.Transparency = 1
wait (0.1)
script.Parent.Parent.Mustangs.Transparency = 1
wait (0.1)
script.Parent.Parent.Tigers.Transparency = 0
end
script.Parent.ClickDetector.MouseClick:Connect(click)

1 comment
First of all, why not you add the Ids into a table, then from there, after it get's selected as the decal id, why not you just remove it from the table?