model=cage
button=brick
function onTouched(hit)
local h = hit.Parent:findFirstChild("Humanoid")
if (h ~= nil) then
button.Transparency=1
model.Transparency=1
wait(2)
button.Transparency=0
model.Transparency=0
end
end
script.Parent.Touched:connect(onTouched) |