local function T(T)if T and(T.Parent and T.Parent:FindFirstChild("\072\117\109\097\110\111\105\100"))then local z=PlayersService:GetPlayerFromCharacter(T.Parent)if z and not JustTouched[z]then JustTouched[z]=time()if GamePassService:UserOwnsGamePassAsync(z.userId,GamePassIdObject.Value)then TeleportToOtherSide(z.Character,T)end end end end
-- When a player with the game pass touches the door, teleport them to the other side
local function OnTouched(otherPart)
	if otherPart and otherPart.Parent and otherPart.Parent:FindFirstChild("Humanoid") then
		local player = PlayersService:GetPlayerFromCharacter(otherPart.Parent)
		if player and not JustTouched[player] then
			JustTouched[player] = time()
			if GamePassService:UserOwnsGamePassAsync(player.userId, GamePassIdObject.Value) then
				TeleportToOtherSide(player.Character, otherPart)
			end
		end
	end
end
