--This script only activates when the ClickDetector's activation distance is over 0


function onClicked(p)
	script.Parent.Parent.Open.Transparency = 0 --Open the trap
	script.Parent.Parent.Close.Transparency = 1
	script.Parent.Captured.Value = false
	script.Parent.ClickDetector.MaxActivationDistance = 0 --Make it so that you can't click it
end
 
script.Parent.ClickDetector.MouseClick:connect(onClicked)
