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