-- Set up the trigger event

script.Parent.Trigger.Touched:connect(function(obj)
	if (game.Players:GetPlayerFromCharacter(obj.Parent)) then
		local t = time()
		if ((t-last) < 3) then return end	-- 1-second debounce (time-based)
		last = t
		GoTo(open)
	end
end)
