Basically, I want to make a script where one brick is touched and goes transparent and becomes uncollideable, if another brick is hit it will detect that and change to a specific part, in this case, F1S1.
Keep in mind: The parts with the scripts are "hitboxes", and F1 and F1S1 are the bricks being affected.
function onTouched(hit)
if script.Parent.Parent.F1.Transparency == 0
then
script.Parent.Parent.F1S1.Transparency = 0
script.Parent.Parent.F1S1.CanCollide = true
script.Parent.Parent.F1.Transparency = 0
script.Parent.Parent.F1.CanCollide = false
end
end
script.Parent.Touched:connect(onTouched)
