script.Parent.Trigger.Touched:connect(function(d)if game.Players:GetPlayerFromCharacter(d.Parent)then local d=time()if d-last<1 then return end last=d GoTo(open)end end)
-- 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) < 1 then
			return
		end -- 1-second debounce (time-based)
		last = t
		GoTo(open)
	end
end)
